playground/docker-jenkins/build-initial-centos6.sh

12 lines
416 B
Bash
Raw Normal View History

cd /tmp
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 \
gcc gcc-c++ gcc-gnat gcc-java make autoconf automake libtool vim-enhanced &&
useradd -m -s /bin/bash jenkins &&
2021-09-02 10:50:47 +00:00
ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_dsa_key &&
ssh-keygen -q -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key &&
mkdir -p /var/run/sshd