Please recommend a deployment method in a Linux box on a LAN

Have you struggled with deploying Linux before?

I need to deploy the application in a separate Linux box without external network access. The configuration should be as simple as possible, reliable for different configurations (missing libraries and build tools), and preferably automatically. Another difficulty I need to consider is that I need to connect to an Oracle database.

What would you recommend as the best way to deploy? I have some ideas, but not sure which one is better.

  • I can use java
    • I will need to install JDK, and this solves basically everything
    • Another big problem is that the code we now have in Java is poorly written and slow.
    • I'm not sure that I need to install InstantClient to connect to Oracle under Linux.
  • I can use C (I have the source code for a very well-written LGPL program)
    • And use dpkg to deploy
      • The Linux box is most likely the Ubuntu server, but I'm not sure which version is installed.
      • I can’t use apt-get, but I can copy all the packages I need.
      • I know what I can use dpkg -sto check which packages they are, but I'm really not sure if I can skip the dependencies.
      • I assume that I will need the necessary for assembly and pcap or such
    • And use static links
      • I configured it with ./configure LDFLAGS=-staticno errors, and now it works on my computer.
      • chroot , , ?
      • Linux-, ,
    • Statifier
      • stackoverflow , .
      • , .
      • , .
  • C
    • , , C.
    • InstantClient,
  • Perl
    • CPAN
    • , , , , ,
    • Perl
    • InstantClient

.

+3
1

C . , , , - , ldd , . , 100% Linux-, Oracle instantclient , .

: , apt . .deb , , apt-get myApplication, . apt- , . , dvd, debs, , apt-get, .

+1

Source: https://habr.com/ru/post/1731136/


All Articles