Skip to content

Commit

Permalink
workaround ssh-keygen
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeliton authored Oct 9, 2024
1 parent ffdf237 commit f0640d6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions images/rstudio-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ ENV PATH="${PATH}:/usr/lib/rstudio-server/bin" \
SHELL=/bin/bash \
LD_LIBRARY_PATH="/opt/conda/lib:/usr/lib/x86_64-linux-gnu"

# Move the original ssh-keygen binary
RUN mv /usr/bin/ssh-keygen /usr/bin/ssh-keygen.orig

# Create a wrapper script for ssh-keygen
RUN echo '#!/bin/bash' > /usr/bin/ssh-keygen && \
echo 'export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu' >> /usr/bin/ssh-keygen && \
echo 'exec /usr/bin/ssh-keygen.orig "$@"' >> /usr/bin/ssh-keygen && \
chmod +x /usr/bin/ssh-keygen

COPY ./lib /opt/k8s-support/lib

COPY ./test ./integration_tests /home/jovyan/
Expand Down

0 comments on commit f0640d6

Please sign in to comment.