3Multi-staging Deployment Manager (DM). MD consists of the client and server parts (DMC and DMS accordingly).
10curl https://nixos.org/nix/install | sh
22$ result/bin/dmc-exe --help
25Usage: dmc-exe (create | list | edit | destroy | update | info)
28 -h,--help Show this help text
42$ result/bin/dms-exe --help
45Usage: dms-exe --port INT --db TEXT --db-pool-size INT
48 -h,--help Show this help text
51# How to deploy a new staging
54dmc create --name STAGING_NAME -t DOCKER_IMAGE_TAG -e b2b-app.env.ENV_VAR1=env_val1 -e b2b-app.env.ENV_VAR2=env_val2
57Note that in our ECR(hosted docker registry) we use a convention of
58DOCKER_IMAGE_TAG = GIT_SHA. So, if this build was successfully built on github
59actions CI and docker image was pushed to ECR, you can deploy it without any
62# How to override an environment variable in an application
65dmc edit --name STAGING_NAME
68`dmc edit` opens an `$EDITOR` where you can override staging variables. To
69override an environment variable `FOO` with a value `foo`, add a line like this:
75To commit the changes, save the file and quit your default `$EDITOR`. `:wq` in
76vim. Note that to discard your changes, you have to exit your `$EDITOR` with a
77not-zero exit code. You can do this by typing `:cq` in vim.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list