Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for the workspace mounting #226

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions d4science-storage/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM eclipse-temurin:11
FROM openjdk:11

RUN apt-get update \
&& apt-get install -y --no-install-recommends libfuse2 fuse \
&& rm -rf /var/lib/apt/lists/*

ARG FUSE_JAR=https://nexus.d4science.org/nexus/content/repositories/gcube-snapshots/org/gcube/data-access/sh-fuse-integration/3.0.0-SNAPSHOT/sh-fuse-integration-3.0.0-20241129.111221-1.jar
ARG FUSE_JAR=https://nexus.d4science.org/nexus/content/repositories/gcube-snapshots/org/gcube/data-access/sh-fuse-integration/3.0.0-SNAPSHOT/sh-fuse-integration-3.0.0-20241201.110429-3.jar

RUN curl $FUSE_JAR > /sh-fuse-integration-jar-with-dependencies.jar

Expand All @@ -13,6 +13,8 @@ COPY mount.sh /mount.sh
RUN groupadd -o -g 100 jovyan \
&& useradd -o -u 1000 -g 100 jovyan

USER jovyan
RUN mkdir /workspace && chown 1000:100 /workspace

USER 1000

CMD ["/mount.sh"]
2 changes: 2 additions & 0 deletions d4science-storage/mount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ FUSE_JAR="/sh-fuse-integration-jar-with-dependencies.jar"

echo "Mounting filesystem at $MNTPATH"

cd /tmp

java -jar "$FUSE_JAR" "$D4SCIENCE_TOKEN" "$MNTPATH"