refactor: 💡 Added TODO comment to fix alpine image, still not working doing that later
All checks were successful
andreas-personal/jenkins-ssh-docker-agent/pipeline/head This commit looks good

This commit is contained in:
2025-06-06 05:40:52 +02:00
parent 355dcb3816
commit 5944805d27

View File

@ -15,9 +15,11 @@ RUN apk add --no-cache openssl
RUN apk add --no-cache git-lfs RUN apk add --no-cache git-lfs
RUN git lfs install --system RUN git lfs install --system
# TODO: doesnt work still, something about not finding the java binary over ssh
# Configure SSH to behave more like Debian - load environment properly # Configure SSH to behave more like Debian - load environment properly
RUN echo 'PermitUserEnvironment yes' >> /etc/ssh/sshd_config #RUN echo 'PermitUserEnvironment yes' >> /etc/ssh/sshd_config
RUN echo 'UsePAM yes' >> /etc/ssh/sshd_config #RUN echo 'UsePAM yes' >> /etc/ssh/sshd_config
# Add Java to environment file that SSH will read # Add Java to environment file that SSH will read
RUN echo 'PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' >> /etc/environment #RUN echo 'PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' >> /etc/environment