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
All checks were successful
andreas-personal/jenkins-ssh-docker-agent/pipeline/head This commit looks good
This commit is contained in:
@ -15,9 +15,11 @@ RUN apk add --no-cache openssl
|
||||
RUN apk add --no-cache git-lfs
|
||||
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
|
||||
RUN echo 'PermitUserEnvironment yes' >> /etc/ssh/sshd_config
|
||||
RUN echo 'UsePAM yes' >> /etc/ssh/sshd_config
|
||||
#RUN echo 'PermitUserEnvironment yes' >> /etc/ssh/sshd_config
|
||||
#RUN echo 'UsePAM yes' >> /etc/ssh/sshd_config
|
||||
|
||||
# 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
|
Reference in New Issue
Block a user