Skip to content

Commit 6181474

Browse files
author
Shana Moore
committed
🎁 This commit is required to resolve the issue with uploading images 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
1 parent 41b0107 commit 6181474

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ RUN ln -sf /usr/lib/libmediainfo.so.0 /app/fits/tools/mediainfo/linux/libmediain
8383

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

86+
# Ensure the directory exists and create the symbolic link
87+
RUN mkdir -p /app/samvera/hyrax-webapp/public/branding && \
88+
ln -sf /app/samvera/branding /app/samvera/hyrax-webapp/public/branding
89+
8690
ONBUILD ARG APP_PATH=.
8791
ONBUILD COPY --chown=1001:101 $APP_PATH/Gemfile* /app/samvera/hyrax-webapp/
8892
ONBUILD RUN git config --global --add safe.directory /app/samvera && \

ops/demo-deploy.tmpl.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ extraVolumeMounts: &volMounts
3535
- name: uploads
3636
mountPath: /app/samvera/hyrax-webapp/storage/files
3737
subPath: storage-files
38+
- name: uploads
39+
mountPath: /app/samvera/hyrax-webapp/public/branding
40+
subPath: branding
3841

3942
ingress:
4043
enabled: true

ops/staging-deploy.tmpl.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ extraVolumeMounts: &volMounts
3535
- name: uploads
3636
mountPath: /app/samvera/hyrax-webapp/storage/files
3737
subPath: storage-files
38+
- name: uploads
39+
mountPath: /app/samvera/hyrax-webapp/public/branding
40+
subPath: branding
3841

3942
ingress:
4043
enabled: true

0 commit comments

Comments
 (0)