2021-08-24 14:04:31 +00:00
|
|
|
cd /tmp
|
|
|
|
|
2021-08-24 15:57:01 +00:00
|
|
|
rm -f /etc/yum.repos.d/CentOS-*.repo &&
|
|
|
|
yum -y update &&
|
|
|
|
yum -y install \
|
|
|
|
openssh-server openssh-clients java-1.8.0-openjdk java-1.8.0-openjdk-devel \
|
2021-08-24 14:04:31 +00:00
|
|
|
gcc gcc-c++ gcc-gnat gcc-java make autoconf automake libtool vim-enhanced &&
|
|
|
|
useradd -m -s /bin/bash jenkins &&
|
2021-08-24 15:57:01 +00:00
|
|
|
sed -i 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' /etc/pam.d/sshd &&
|
|
|
|
RUN ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_dsa_key &&
|
|
|
|
RUN ssh-keygen -q -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key &&
|
2021-08-24 14:04:31 +00:00
|
|
|
mkdir -p /var/run/sshd
|