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

Valkyrie staging #186

Merged
merged 4 commits into from
Mar 25, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/build-test-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
build:
uses: scientist-softserv/actions/.github/workflows/build.yaml@knapsack-support
uses: scientist-softserv/actions/.github/workflows/build.yaml@v0.0.17
secrets: inherit
with:
platforms: 'linux/amd64'
Expand All @@ -26,7 +26,7 @@ jobs:

test:
needs: build
uses: scientist-softserv/actions/.github/workflows/test.yaml@knapsack-support
uses: scientist-softserv/actions/.github/workflows/test.yaml@v0.0.17
with:
confdir: '/app/samvera/hyrax-webapp/solr/conf'
webTarget: hyku-web
Expand All @@ -35,7 +35,7 @@ jobs:

lint:
needs: build
uses: scientist-softserv/actions/.github/workflows/lint.yaml@knapsack-support
uses: scientist-softserv/actions/.github/workflows/lint.yaml@v0.0.17
with:
webTarget: hyku-web
workerTarget: hyku-worker
Expand Down
44 changes: 26 additions & 18 deletions ops/staging-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
replicaCount: 2

resources:
limits:
memory: "4Gi"
cpu: "500m"
requests:
memory: "2Gi"
cpu: "250m"

livenessProbe:
enabled: false
readinessProbe:
enabled: false

brandingVolume:
storageClass: aws-efs
storageClass: efs-sc
derivativesVolume:
storageClass: aws-efs
storageClass: efs-sc
uploadsVolume:
storageClass: aws-efs
storageClass: efs-sc
size: 200Gi

imagePullSecrets:
Expand All @@ -36,10 +44,10 @@ extraVolumeMounts: &volMounts
ingress:
enabled: true
hosts:
- host: REPLACE_ME
- host: "staging.hykuup.com"
paths:
- path: /
- host: "*.REPLACE_ME"
- host: "*.staging.hykuup.com"
paths:
- path: /
annotations: {
Expand All @@ -49,8 +57,8 @@ ingress:
}
tls:
- hosts:
- REPLACE_ME
- "*.REPLACE_ME"
- "staging.hykuup.com"
- "*.staging.hykuup.com"
secretName: staging-tls

extraEnvVars: &envVars
Expand Down Expand Up @@ -95,7 +103,7 @@ extraEnvVars: &envVars
- name: GOOGLE_OAUTH_PRIVATE_KEY_VALUE
value: $GOOGLE_OAUTH_PRIVATE_KEY_VALUE
- name: GOOGLE_OAUTH_CLIENT_EMAIL
value: hyku-demo@REPLACE_ME
value: hyku-demo@staging.hykuup.com
- name: INITIAL_ADMIN_EMAIL
value: [email protected]
- name: INITIAL_ADMIN_PASSWORD
Expand All @@ -107,7 +115,7 @@ extraEnvVars: &envVars
- name: PASSENGER_APP_ENV
value: production
- name: RAILS_CACHE_STORE_URL
value: redis://:$REDIS_PASSWORD@staging-redis-master:6379/staging
value: redis://:$REDIS_PASSWORD@hykuup-knapsack-staging-redis-master:6379/staging
- name: RAILS_ENV
value: production
- name: RAILS_LOG_TO_STDOUT
Expand All @@ -117,35 +125,35 @@ extraEnvVars: &envVars
- name: RAILS_SERVE_STATIC_FILES
value: "true"
- name: REDIS_HOST
value: staging-redis-master
value: hykuup-knapsack-staging-redis-master
- name: REDIS_URL
value: redis://:$REDIS_PASSWORD@staging-redis-master:6379/staging
value: redis://:$REDIS_PASSWORD@hykuup-knapsack-staging-redis-master:6379/staging
- name: HYRAX_ACTIVE_JOB_QUEUE
value: sidekiq
- name: HYRAX_ANALYTICS
value: "true"
value: "false"
- name: HYKU_BULKRAX_ENABLED
value: "true"
- name: HYKU_CONTACT_EMAIL
value: REPLACE_ME
value: [email protected]
- name: HYKU_CONTACT_EMAIL_TO
value: REPLACE_ME
value: [email protected]
- name: HYKU_FILE_ACL
value: "false"
- name: HYRAX_FITS_PATH
value: /app/fits/fits.sh
- name: HYKU_ADMIN_HOST
value: RPLACEME
value: staging.hykuup.com
- name: HYKU_ADMIN_ONLY_TENANT_CREATION
value: "false"
- name: HYKU_ALLOW_SIGNUP
value: "false"
- name: HYKU_DEFAULT_HOST
value: "%{tenant}.REPLACE_ME"
value: "%{tenant}.staging.hykuup.com"
- name: HYKU_MULTITENANT
value: "true"
- name: HYKU_ROOT_HOST
value: REPLACE_ME
value: staging.hykuup.com
- name: NEGATIVE_CAPTCHA_SECRET
value: $NEGATIVE_CAPTCHA_SECRET
- name: SMTP_ENABLED
Expand Down Expand Up @@ -221,7 +229,7 @@ externalFcrepoHost: fcrepo.staging-fcrepo.svc.cluster.local
externalPostgresql:
host: pg-postgresql.staging-postgres.svc.cluster.local
username: postgres
password: $POSTGRES_PASSWORD
password: $DB_PASSWORD

externalSolrHost: solr.staging-solr.svc.cluster.local
externalSolrUser: admin
Expand Down