Skip to content

Commit

Permalink
add ssh exec
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeliton committed Oct 12, 2024
1 parent 3d4d135 commit 1b2cba9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions images/rstudio-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,27 @@ ENV PATH="${PATH}:/usr/lib/rstudio-server/bin" \
LD_LIBRARY_PATH="/opt/conda/lib:/usr/lib/x86_64-linux-gnu"

### OpenSSL Conda Workarounds
# Move the original binary
# ssh-keygen
RUN mv /usr/bin/ssh-keygen /usr/bin/ssh-keygen.orig
# Create a wrapper script
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

# git
RUN mv /usr/bin/git /usr/bin/git.orig
RUN echo '#!/bin/bash' > /usr/bin/git && \
echo 'export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu' >> /usr/bin/git && \
echo 'exec /usr/bin/git.orig "$@"' >> /usr/bin/git && \
chmod +x /usr/bin/git

# ssh
RUN mv /usr/bin/ssh /usr/bin/ssh.orig
RUN echo '#!/bin/bash' > /usr/bin/ssh && \
echo 'export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu' >> /usr/bin/ssh && \
echo 'exec /usr/bin/git.orig "$@"' >> /usr/bin/ssh && \
chmod +x /usr/bin/ssh

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

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

0 comments on commit 1b2cba9

Please sign in to comment.