Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/1945 - Merge manifest files #1311

Merged
merged 6 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions manifests/manifest-dev-api.yml

This file was deleted.

36 changes: 0 additions & 36 deletions manifests/manifest-dev-migrator.yml

This file was deleted.

37 changes: 0 additions & 37 deletions manifests/manifest-dev-scheduler.yml

This file was deleted.

24 changes: 0 additions & 24 deletions manifests/manifest-dev-web-services.yml

This file was deleted.

59 changes: 59 additions & 0 deletions manifests/manifest-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
defaults: &defaults
instances: 1
stack: cflinuxfs4
buildpacks:
- python_buildpack
memory: 1G
services:
- fecfile-api-rds
- fecfile-api-s3
- fecfile-api-redis
- fecfile-api-creds-dev
env:
DISABLE_COLLECTSTATIC: 1
DJANGO_SETTINGS_MODULE: fecfiler.settings.production
FFAPI_COOKIE_DOMAIN: fecfile.fec.gov
LOGIN_REDIRECT_CLIENT_URL: https://dev.fecfile.fec.gov
LOGIN_REDIRECT_SERVER_URL: https://dev-api.fecfile.fec.gov/api/v1/oidc/login-redirect
LOGOUT_REDIRECT_URL: https://dev-api.fecfile.fec.gov/api/v1/oidc/logout-redirect
PRODUCTION_OPEN_FEC_API: https://api.open.fec.gov/v1/
STAGE_OPEN_FEC_API: https://api-stage.open.fec.gov/v1/
FEC_AGENCY_ID: FEC
SESSION_COOKIE_AGE: 64800
BP_PIP_VERSION: latest
LOG_FORMAT: KEY_VALUE
MOCK_EFO: True
SYSTEM_STATUS_CACHE_AGE: 60
INITIAL_POLLING_INTERVAL: 10
INITIAL_POLLING_DURATION: 900
SECONDARY_POLLING_INTERVAL: 3600
SECONDARY_POLLING_DURATION: 86400
# ---- FEATURE FLAGS ----
FLAG__COMMITTEE_DATA_SOURCE: TEST # Values are PRODUCTION, TEST, MOCKED
ENABLE_DEVELOPER_COMMANDS: True

applications:
- name: fecfile-web-api
<<: *defaults
instances: 2
routes:
- route: fecfile-web-api-dev.apps.internal
command: bin/run-api.sh
memory: 2G
- name: fecfile-web-services
<<: *defaults
instances: 2
no-route: true
health-check-type: process
command: bin/run-celery-worker.sh
- name: fecfile-api-migrator
<<: *defaults
command: bin/run-api.sh
memory: 2G
no-route: true
- name: fecfile-scheduler
<<: *defaults
no-route: true
health-check-type: process
command: bin/run-scheduler.sh
37 changes: 0 additions & 37 deletions manifests/manifest-prod-api.yml

This file was deleted.

36 changes: 0 additions & 36 deletions manifests/manifest-prod-migrator.yml

This file was deleted.

37 changes: 0 additions & 37 deletions manifests/manifest-prod-scheduler.yml

This file was deleted.

24 changes: 0 additions & 24 deletions manifests/manifest-prod-web-services.yml

This file was deleted.

57 changes: 57 additions & 0 deletions manifests/manifest-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
defaults: &defaults
instances: 0
stack: cflinuxfs4
buildpacks:
- python_buildpack
memory: 1G
services:
- fecfile-api-rds
- fecfile-api-s3
- fecfile-api-redis
- fecfile-api-creds-prod
env:
DISABLE_COLLECTSTATIC: 1
DJANGO_SETTINGS_MODULE: fecfiler.settings.production
FFAPI_COOKIE_DOMAIN: fecfile.fec.gov
LOGIN_REDIRECT_CLIENT_URL: https://fecfile.fec.gov
LOGIN_REDIRECT_SERVER_URL: https://api.fecfile.fec.gov/api/v1/oidc/login-redirect
LOGOUT_REDIRECT_URL: https://api.fecfile.fec.gov/api/v1/oidc/logout-redirect
PRODUCTION_OPEN_FEC_API: https://api.open.fec.gov/v1/
STAGE_OPEN_FEC_API: https://api-stage.open.fec.gov/v1/
FEC_FILING_API: https://efoservices.stage.efo.fec.gov
FEC_AGENCY_ID: FEC
SESSION_COOKIE_AGE: 64800
BP_PIP_VERSION: latest
LOG_FORMAT: KEY_VALUE
SYSTEM_STATUS_CACHE_AGE: 60
INITIAL_POLLING_INTERVAL: 10
INITIAL_POLLING_DURATION: 900
SECONDARY_POLLING_INTERVAL: 3600
SECONDARY_POLLING_DURATION: 86400
# ---- FEATURE FLAGS ----
FLAG__COMMITTEE_DATA_SOURCE: PRODUCTION # Values are PRODUCTION, TEST, and MOCKED
ENABLE_DEVELOPER_COMMANDS: False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add FEC_AGENCY_ID: FEC from the old web-services environment varaibles. All the other environment variables are good

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated for all environments.


applications:
- name: fecfile-web-api
<<: *defaults
routes:
- route: fecfile-web-api-prod.apps.internal
command: bin/run-api.sh
memory: 2G
- name: fecfile-web-services
<<: *defaults
no-route: true
health-check-type: process
command: bin/run-celery-worker.sh
- name: fecfile-api-migrator
<<: *defaults
command: bin/run-api.sh
memory: 2G
no-route: true
- name: fecfile-scheduler
<<: *defaults
no-route: true
health-check-type: process
command: bin/run-scheduler.sh
Loading