Comments (3)
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.
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.
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)
- ansible playbook for setup.sh HOT 3
- ansible playbook for keys.sh HOT 1
- Coding idiom to pass env variables to a JS function HOT 1
- Clean export environment variables HOT 1
- Main server uses stale DB connection
- Drop socket.io from main server? HOT 1
- Mysql behaviour unpredicatable HOT 2
- Congestion Avoidance HOT 5
- Update install script to control docker image builds HOT 2
- Update docker containers HOT 2
- Installation procedure fails due to mysql HOT 9
- Add Ansible task for crontab addition HOT 2
- Deployment Tests Fail
- Correct use of hostnames in Ansible scripts HOT 1
- Integrate glances with install setup HOT 1
- Mainserver configure hyperlink fails HOT 2
- Correct SSL config HOT 1
- Error in Vagrantfile
- Install bug in dependencies.yml
- config page load HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autolabjs.