Skip to content

Commit

Permalink
Wrap git exec
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeliton authored Oct 9, 2024
1 parent efc815f commit c0596c1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions images/rstudio-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,21 @@ 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
### OpenSSL Conda Workarounds
# Move the original binary
RUN mv /usr/bin/ssh-keygen /usr/bin/ssh-keygen.orig

# Create a wrapper script for ssh-keygen
# 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

RUN mv /usr/bin/git /usr/bin/git.org
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

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

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

0 comments on commit c0596c1

Please sign in to comment.