Skip to content

Commit

Permalink
🎁 Add branding persistent volumes to deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore committed May 23, 2024
1 parent 41b0107 commit d6f9429
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ ONBUILD RUN git config --global --add safe.directory /app/samvera && \
bundle install --jobs "$(nproc)"

ONBUILD COPY --chown=1001:101 $APP_PATH /app/samvera/hyrax-webapp
RUN ln -sf /app/samvera/branding /app/samvera/hyrax-webapp/public/branding

FROM hyku-base as hyku-web
RUN RAILS_ENV=production SECRET_KEY_BASE=`bin/rake secret` DB_ADAPTER=nulldb DB_URL='postgresql://fake' bundle exec rake assets:precompile && yarn install
Expand Down
3 changes: 3 additions & 0 deletions ops/demo-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ extraVolumeMounts: &volMounts
- name: uploads
mountPath: /app/samvera/hyrax-webapp/storage/files
subPath: storage-files
- name: uploads
mountPath: /app/samvera/hyrax-webapp/public/branding
subPath: public-branding

ingress:
enabled: true
Expand Down
3 changes: 3 additions & 0 deletions ops/staging-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ extraVolumeMounts: &volMounts
- name: uploads
mountPath: /app/samvera/hyrax-webapp/storage/files
subPath: storage-files
- name: uploads
mountPath: /app/samvera/hyrax-webapp/public/branding
subPath: public-branding

ingress:
enabled: true
Expand Down

0 comments on commit d6f9429

Please sign in to comment.