CsteerDevops1 / wiki-framework

6 stars 0 forks source link

Update deployment procedure. #92

Open orasul opened 4 years ago

orasul commented 4 years ago

Define two parts: preparation and application deployment.

Move docker installation to preparation part. Preparation script should be idempotent as much as possible: first check if docker is installed, and then install it if necessary. Between preparation and deployment step there should be one manual action: adding bots keys, probably the best they is to set them via ENV variables instead of placing on fs: export SEARCH_BOT_KEY="2432423:32423432" export EDITOR_BOT_KEY="324324234:324324"

In this case application deployment step should contain: checking ENV vars, permissions, packages, etc; and docker-compose up.

orasul commented 4 years ago

Some more thoughts - there is a short list environment related variables, not only bot keys:

Probably this should be populated as env vars, or even updated to docker-compose via jinja templates.