From cb3a7ba2f2d3facf6682757708d90113691a1f89 Mon Sep 17 00:00:00 2001 From: Rory McNicholl Date: Tue, 9 Jan 2024 18:59:20 +0000 Subject: [PATCH] make sure everyone can write to /app/samvera/branding (#505) * make sure everyone can write to /app/samvera/branding * try another mount for branding --- Dockerfile | 3 ++- ops/staging-deploy.tmpl.yaml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 634b9ce4..2f58a2f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,7 +92,8 @@ 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 +#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/staging-deploy.tmpl.yaml b/ops/staging-deploy.tmpl.yaml index 4a914475..5f57bcf7 100644 --- a/ops/staging-deploy.tmpl.yaml +++ b/ops/staging-deploy.tmpl.yaml @@ -40,6 +40,10 @@ 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