Skip to content

Commit

Permalink
🎁 This commit is required to resolve the issue with uploading images …
Browse files Browse the repository at this point in the history
…from the Collections' branding tab. Because the symlink wasn't established, a user would not be able to see the images they uploaded even though the path correctly exists.

ref:
- notch8/atla-hyku#187
  • Loading branch information
ShanaLMoore committed May 23, 2024
1 parent 41b0107 commit a84c186
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ RUN ln -sf /usr/lib/libmediainfo.so.0 /app/fits/tools/mediainfo/linux/libmediain

COPY --chown=1001:101 ./bin/db-migrate-seed.sh /app/samvera/

# Ensure the directory exists and create the symbolic link
RUN mkdir -p /app/samvera/hyrax-webapp/public/branding && \
mkdir -p /app/samvera/branding && \
ln -sf /app/samvera/branding /app/samvera/hyrax-webapp/public/branding

ONBUILD ARG APP_PATH=.
ONBUILD COPY --chown=1001:101 $APP_PATH/Gemfile* /app/samvera/hyrax-webapp/
ONBUILD RUN git config --global --add safe.directory /app/samvera && \
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: 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: branding

ingress:
enabled: true
Expand Down

0 comments on commit a84c186

Please sign in to comment.