Code Monkey home page Code Monkey logo

Comments (3)

prasadtalasila avatar prasadtalasila commented on June 12, 2024

Typical *NIX installation scripts require configuration, compilation copying to target directories and cleaning up of temporary files. We do not need compilation.

I found a tutorial on nodejs site which does packaging of node.js applications for Docker. Here is another tutorial on the Docker site.

Seems a suitable way forward for us.

from autolabjs.

rajat503 avatar rajat503 commented on June 12, 2024

We are already doing what is mentioned in the tutorial in the container building step. I followed this tutorial while writing the Dockerfiles. The configuration of the execution node has to be done after starting the container because of the parameters involved. Other configs can be done before the build.

from autolabjs.

prasadtalasila avatar prasadtalasila commented on June 12, 2024

The existing Docker files are not taking complete advantage of RUN, WORKDIR, COPY commands. We can use these commands to completely automate the installation process.

For example, see the load balancer installation instructions. Steps 5 to 7 of the load balancer installation can be completed using COPY and WORKDIR commands. Ofcourse, appropriate json settings file must be generated apriori using a shell script or a node.js program or any configuration program.

I can forsee one way to make this possible. Have a text file for configuration. The install shell script or node.js program reads the central configuration file and generates all the required json configuration files. We can have the central configuration file in json format. Given the existing knowledge of node.js ecosystem in the team, it may be better to just have a web page with form to be filled by the administrator installing the application. The node.js application generates the required configuration files and spreads them into correct directories. After that, a shell script can bind together all the SSL key generation steps and the microservices start up steps.

The only place where a manual intervention is required is database manipulation. For this, we can use DB restore to restore default users and passwords. Or we can use GitLab API to accomplish automation of this step as well.

from autolabjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.