Skip to content

Commit

Permalink
🎁 Adds symlink between samvera and hyrax-webapp branding directories
Browse files Browse the repository at this point in the history
The issue of branding, logo, and thumbnails not appearing has been solved before in other projects.
ref:
- scientist-softserv/atla-hyku#187

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.
  • Loading branch information
ShanaLMoore committed May 24, 2024
1 parent 9fc957b commit c73f387
Showing 1 changed file with 5 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 && \
mkdir -p /app/samvera/branding && \
ln -snf /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

0 comments on commit c73f387

Please sign in to comment.