datatracker/dev/deploy-to-container
Robert Sparks 912c7b5ee3
fix: simplify migrations when building postgres db image (#4889)
* chore: remove the effectively unused DATABASE_TEST_OPTIONS setting

* fix: simplify default settings_local so that db-include-fix.py is not needed in CI

* fix: simplify migrations in db-pg-migrate.sh
2022-12-13 17:37:24 -05:00
..
.editorconfig ci: deploy-to-container tool 2022-10-26 00:04:02 -04:00
.gitignore ci: deploy-to-container tool 2022-10-26 00:04:02 -04:00
.npmrc ci: deploy-to-container tool 2022-10-26 00:04:02 -04:00
cli.js ci: add hostname label to sandbox container 2022-12-06 18:03:00 -05:00
package-lock.json ci: deploy to sandbox - fix nanoid-dictionary import 2022-10-26 23:05:23 -04:00
package.json ci: deploy to sandbox - fix nanoid-dictionary import 2022-10-26 23:05:23 -04:00
README.md ci: deploy to container tool cleanup + docs 2022-10-26 00:10:29 -04:00
settings_local.py fix: simplify migrations when building postgres db image (#4889) 2022-12-13 17:37:24 -05:00
start.sh feat: stop supporting pre-tzaware migration database dumps. (#4782) 2022-11-28 10:17:22 -06:00

Datatracker Deploy to Container Tool

This tool takes a release.tar.gz build file and deploys it as a container, along with its own database container.

Requirements

  • Node 16.x or later
  • Docker

Usage

  1. From the dev/deploy-to-container directory, run the command:
npm install
  1. Make sure you have a release.tar.gz tarball in the project root directory.
  2. From the project root directory (back up 2 levels), run the command: (replacing the branch and domain arguments)
node ./dev/deploy-to-container/cli.js --branch main --domain something.com

A container named dt-app-BRANCH and dt-db-BRANCH (where BRANCH is the argument provided above) will be created.