From 536f956c9eda86d50fa9a24107da09a1ad2b91dd Mon Sep 17 00:00:00 2001 From: Alysia Broddrick Date: Tue, 26 Sep 2023 17:44:17 -0700 Subject: [PATCH 1/3] started sandbox creation --- ops/manifests/manifest-es.yaml | 29 +++++++++++++++++++++++++++++ src/registrar/config/settings.py | 1 + 2 files changed, 30 insertions(+) create mode 100644 ops/manifests/manifest-es.yaml diff --git a/ops/manifests/manifest-es.yaml b/ops/manifests/manifest-es.yaml new file mode 100644 index 000000000..f0b901958 --- /dev/null +++ b/ops/manifests/manifest-es.yaml @@ -0,0 +1,29 @@ +--- +applications: +- name: getgov-es + 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-es.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-es.app.cloud.gov + services: + - getgov-credentials + - getgov-es-database diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py index e272e6622..ceb215a4d 100644 --- a/src/registrar/config/settings.py +++ b/src/registrar/config/settings.py @@ -570,6 +570,7 @@ ALLOWED_HOSTS = [ "getgov-stable.app.cloud.gov", "getgov-staging.app.cloud.gov", + "getgov-es.app.cloud.gov", "getgov-nl.app.cloud.gov", "getgov-rh.app.cloud.gov", "getgov-za.app.cloud.gov", From f8e5f9ba0ee723a359431578c96c44df910a1c17 Mon Sep 17 00:00:00 2001 From: Alysia Broddrick Date: Tue, 26 Sep 2023 18:23:30 -0700 Subject: [PATCH 2/3] second try at migrations --- .github/workflows/migrate.yaml | 1 + .github/workflows/reset-db.yaml | 1 + ops/manifests/manifest-es.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/migrate.yaml b/.github/workflows/migrate.yaml index 705014af1..3b1035657 100644 --- a/.github/workflows/migrate.yaml +++ b/.github/workflows/migrate.yaml @@ -15,6 +15,7 @@ on: options: - stable - staging + - es - nl - rh - za diff --git a/.github/workflows/reset-db.yaml b/.github/workflows/reset-db.yaml index 0bf1af2d9..654fa27b5 100644 --- a/.github/workflows/reset-db.yaml +++ b/.github/workflows/reset-db.yaml @@ -16,6 +16,7 @@ on: options: - stable - staging + - es - nl - rh - za diff --git a/ops/manifests/manifest-es.yaml b/ops/manifests/manifest-es.yaml index f0b901958..c4847553f 100644 --- a/ops/manifests/manifest-es.yaml +++ b/ops/manifests/manifest-es.yaml @@ -11,6 +11,7 @@ applications: 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 From b41e8471503dd297ff2376a61701b4a62f402a07 Mon Sep 17 00:00:00 2001 From: Alysia Broddrick Date: Tue, 26 Sep 2023 18:27:41 -0700 Subject: [PATCH 3/3] added infa for es sandbox --- .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 5d9000401..01079a670 100644 --- a/.github/workflows/deploy-sandbox.yaml +++ b/.github/workflows/deploy-sandbox.yaml @@ -19,6 +19,7 @@ jobs: || startsWith(github.head_ref, 'rh/') || startsWith(github.head_ref, 'nl/') || startsWith(github.head_ref, 'dk/') + || startsWith(github.head_ref, 'es/') outputs: environment: ${{ steps.var.outputs.environment}} runs-on: "ubuntu-latest"