added some dockers for building jenkins agents
This commit is contained in:
commit
d1049204bc
6
docker-jenkins/Dockerfile
Normal file
6
docker-jenkins/Dockerfile
Normal 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"]
|
6
docker-jenkins/Dockerfile.centos6
Normal file
6
docker-jenkins/Dockerfile.centos6
Normal 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
8
docker-jenkins/Makefile
Normal 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 .
|
8
docker-jenkins/build-initial-centos6.sh
Normal file
8
docker-jenkins/build-initial-centos6.sh
Normal 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
|
8
docker-jenkins/build-initial.sh
Normal file
8
docker-jenkins/build-initial.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user