From c73f3873fa57fb3fe8a9bd2d0d421ccaf5093cfc Mon Sep 17 00:00:00 2001 From: Shana Moore Date: Fri, 24 May 2024 08:21:32 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=81=20Adds=20symlink=20between=20samve?= =?UTF-8?q?ra=20and=20hyrax-webapp=20branding=20directories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The issue of branding, logo, and thumbnails not appearing has been solved before in other projects. ref: - https://github.com/scientist-softserv/atla-hyku/pull/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. --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 325d61452b..3c990b9c51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \