added some dockers for building jenkins agents

This commit is contained in:
hyung-hwan 2021-08-24 14:04:31 +00:00
commit d1049204bc
5 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,6 @@
FROM debian:latest
COPY build-initial.sh /tmp
RUN /tmp/build-initial.sh && rm -rf /tmp/*
CMD ["/usr/sbin/sshd -D"]

View File

@ -0,0 +1,6 @@
FROM centos:centos6
COPY build-initial-centos6.sh /tmp
RUN /tmp/build-initial-centos6.sh && rm -rf /tmp/*
CMD ["/usr/sbin/sshd -D"]

8
docker-jenkins/Makefile Normal file
View File

@ -0,0 +1,8 @@
all:
@echo "Error: Specify the specific target."
centos6-jenkins:
docker build -t centos6-jenkins -f Dockerfile.centos6 .
debian-jenkins:
docker build -t debian-jenkins -f Dockerfile .

View File

@ -0,0 +1,8 @@
cd /tmp
apt-get update &&
yum install -y
openssh-server openssh-client openjdk-11-jdk openjdk-11-jre \
gcc gcc-c++ gcc-gnat gcc-java make autoconf automake libtool vim-enhanced &&
useradd -m -s /bin/bash jenkins &&
mkdir -p /var/run/sshd

View File

@ -0,0 +1,8 @@
cd /tmp
apt-get update &&
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
openssh-server openssh-client openjdk-11-jdk openjdk-11-jre \
gcc make autoconf automake libtool vim &&
useradd -m -s /bin/bash jenkins &&
mkdir -p /var/run/sshd