From c204e0e3f4a505c010727ccd3805b10f19b9028d Mon Sep 17 00:00:00 2001 From: Alysia Broddrick Date: Thu, 2 May 2024 09:11:18 -0700 Subject: [PATCH 1/2] Add new developer sandbox 'cb' infrastructure --- .github/workflows/migrate.yaml | 1 + .github/workflows/reset-db.yaml | 1 + ops/manifests/manifest-cb.yaml | 32 ++++++++++++++++++++++++++++++++ src/registrar/config/settings.py | 1 + 4 files changed, 35 insertions(+) create mode 100644 ops/manifests/manifest-cb.yaml diff --git a/.github/workflows/migrate.yaml b/.github/workflows/migrate.yaml index 825ab04d7..f5815012c 100644 --- a/.github/workflows/migrate.yaml +++ b/.github/workflows/migrate.yaml @@ -16,6 +16,7 @@ on: - stable - staging - development + - cb - bob - meoward - backup diff --git a/.github/workflows/reset-db.yaml b/.github/workflows/reset-db.yaml index 05eb963c3..06638aa05 100644 --- a/.github/workflows/reset-db.yaml +++ b/.github/workflows/reset-db.yaml @@ -16,6 +16,7 @@ on: options: - staging - development + - cb - bob - meoward - backup diff --git a/ops/manifests/manifest-cb.yaml b/ops/manifests/manifest-cb.yaml new file mode 100644 index 000000000..b9be98d27 --- /dev/null +++ b/ops/manifests/manifest-cb.yaml @@ -0,0 +1,32 @@ +--- +applications: +- name: getgov-cb + buildpacks: + - python_buildpack + path: ../../src + instances: 1 + memory: 512M + stack: cflinuxfs4 + timeout: 180 + command: ./run.sh + health-check-type: http + health-check-http-endpoint: /health + health-check-invocation-timeout: 40 + env: + # Send stdout and stderr straight to the terminal without buffering + PYTHONUNBUFFERED: yup + # Tell Django where to find its configuration + DJANGO_SETTINGS_MODULE: registrar.config.settings + # Tell Django where it is being hosted + DJANGO_BASE_URL: https://getgov-cb.app.cloud.gov + # Tell Django how much stuff to log + DJANGO_LOG_LEVEL: INFO + # default public site location + GETGOV_PUBLIC_SITE_URL: https://get.gov + # Flag to disable/enable features in prod environments + IS_PRODUCTION: False + routes: + - route: getgov-cb.app.cloud.gov + services: + - getgov-credentials + - getgov-cb-database diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py index 9817476bb..d5a4f203f 100644 --- a/src/registrar/config/settings.py +++ b/src/registrar/config/settings.py @@ -642,6 +642,7 @@ ALLOWED_HOSTS = [ "getgov-stable.app.cloud.gov", "getgov-staging.app.cloud.gov", "getgov-development.app.cloud.gov", + "getgov-cb.app.cloud.gov", "getgov-bob.app.cloud.gov", "getgov-meoward.app.cloud.gov", "getgov-backup.app.cloud.gov", From e17931517137f5da8e8e9179d7c43df71539edfd Mon Sep 17 00:00:00 2001 From: Alysia Broddrick Date: Thu, 2 May 2024 09:21:41 -0700 Subject: [PATCH 2/2] added cb to deploy --- .github/workflows/deploy-sandbox.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-sandbox.yaml b/.github/workflows/deploy-sandbox.yaml index d9d7cbe14..1c486bdf7 100644 --- a/.github/workflows/deploy-sandbox.yaml +++ b/.github/workflows/deploy-sandbox.yaml @@ -24,6 +24,7 @@ jobs: || startsWith(github.head_ref, 'backup/') || startsWith(github.head_ref, 'meoward/') || startsWith(github.head_ref, 'bob/') + || startsWith(github.head_ref, 'cb/') outputs: environment: ${{ steps.var.outputs.environment}} runs-on: "ubuntu-latest"