From 1404921b846f07e189b785bfddad8b53552ac9e5 Mon Sep 17 00:00:00 2001 From: Rory McNicholl Date: Tue, 9 Jan 2024 22:31:34 +0000 Subject: [PATCH] Symlink branding (#507) * make sure everyone can write to /app/samvera/branding * try another mount for branding * I forgot production * remove commented out line from Dockerfile --- Dockerfile | 2 -- ops/production-deploy.tmpl.yaml | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f58a2f0..b9b3a828 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,8 +92,6 @@ RUN sh -l -c " \ sed -i '/require .enumerator./d' /usr/local/bundle/gems/csl-1.6.0/lib/csl.rb" COPY --chown=1001:101 $APP_PATH/bin/db-migrate-seed.sh /app/samvera/ COPY --chown=1001:101 $APP_PATH /app/samvera/hyrax-webapp -#RUN ln -sf /app/samvera/branding /app/samvera/hyrax-webapp/public/branding - ARG HYKU_BULKRAX_ENABLED="true" RUN RAILS_ENV=production SECRET_KEY_BASE=`bin/rake secret` DB_ADAPTER=nulldb DATABASE_URL='postgresql://fake' bundle exec rake assets:precompile && yarn install diff --git a/ops/production-deploy.tmpl.yaml b/ops/production-deploy.tmpl.yaml index 49c58b5d..73e212b9 100644 --- a/ops/production-deploy.tmpl.yaml +++ b/ops/production-deploy.tmpl.yaml @@ -40,6 +40,9 @@ extraVolumeMounts: &volMounts - name: uploads mountPath: /app/samvera/hyrax-webapp/tmp/shared subPath: shared + - name: uploads + mountPath: /app/samvera/hyrax-webapp/public/branding + subPath: public-branding ingress: enabled: true