From ed53ef3400f1ecd0a6f3c8de47d3dc68460eb6fa Mon Sep 17 00:00:00 2001 From: Alysia Broddrick Date: Mon, 12 Jun 2023 12:17:10 -0700 Subject: [PATCH 1/2] Add new developer sandbox 'rb' infrastructure --- .github/workflows/migrate.yaml | 1 + .github/workflows/reset-db.yaml | 1 + ops/manifests/manifest-rb.yaml | 29 +++++++++++++++++++++++++++++ src/registrar/config/settings.py | 1 + 4 files changed, 32 insertions(+) create mode 100644 ops/manifests/manifest-rb.yaml diff --git a/.github/workflows/migrate.yaml b/.github/workflows/migrate.yaml index 820c219fd..54ae2c17c 100644 --- a/.github/workflows/migrate.yaml +++ b/.github/workflows/migrate.yaml @@ -14,6 +14,7 @@ on: description: Which environment should we run migrations for? options: - stable + - rb - ab - bl - rjm diff --git a/.github/workflows/reset-db.yaml b/.github/workflows/reset-db.yaml index 5d863e6d6..ee53b0bd4 100644 --- a/.github/workflows/reset-db.yaml +++ b/.github/workflows/reset-db.yaml @@ -15,6 +15,7 @@ on: description: Which environment should we flush and re-load data for? options: - stable + - rb - ab - bl - rjm diff --git a/ops/manifests/manifest-rb.yaml b/ops/manifests/manifest-rb.yaml new file mode 100644 index 000000000..b228980e0 --- /dev/null +++ b/ops/manifests/manifest-rb.yaml @@ -0,0 +1,29 @@ +--- +applications: +- name: getgov-rb + 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 + 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-rb.app.cloud.gov + # Tell Django how much stuff to log + DJANGO_LOG_LEVEL: INFO + # default public site location + GETGOV_PUBLIC_SITE_URL: https://beta.get.gov + routes: + - route: getgov-rb.app.cloud.gov + services: + - getgov-credentials + - getgov-rb-database diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py index b8b32df41..efa3db4a4 100644 --- a/src/registrar/config/settings.py +++ b/src/registrar/config/settings.py @@ -564,6 +564,7 @@ SECURE_SSL_REDIRECT = True # web server configurations. ALLOWED_HOSTS = [ "getgov-stable.app.cloud.gov", + "getgov-rb.app.cloud.gov", "getgov-ab.app.cloud.gov", "getgov-bl.app.cloud.gov", "getgov-rjm.app.cloud.gov", From c4ac3099c35f0f892e57e347fbd880aa234223f4 Mon Sep 17 00:00:00 2001 From: Alysia Broddrick Date: Mon, 12 Jun 2023 15:31:25 -0700 Subject: [PATCH 2/2] updated deploy variables with rb --- .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 7c2a0fe6a..29ef02f24 100644 --- a/.github/workflows/deploy-sandbox.yaml +++ b/.github/workflows/deploy-sandbox.yaml @@ -17,6 +17,7 @@ jobs: || startsWith(github.head_ref, 'ab/') || startsWith(github.head_ref, 'bl/') || startsWith(github.head_ref, 'rjm/') + || startsWith(github.head_ref, 'rb/') outputs: environment: ${{ steps.var.outputs.environment}} runs-on: "ubuntu-latest"