diff --git a/utils/Dockerfile b/utils/Dockerfile index 2d443266d2ecd932ea9afe12a03522b330d72b65..5dbd524755443169ac0034e9e7214c6e6cc9e4b4 100644 --- a/utils/Dockerfile +++ b/utils/Dockerfile @@ -3,7 +3,21 @@ FROM jenkins/ssh-agent ARG ORCHENT_VERSION=1.2.9.rc1 RUN DEBIAN_FRONTEND=noninteractive apt-get update \ - && apt-get install -y wget git ansible \ + && apt-get install -y wget git ansible python3-pip openssh-client iproute2 \ && wget https://github.com/indigo-dc/orchent/releases/download/v${ORCHENT_VERSION}/orchent_${ORCHENT_VERSION}_amd64.deb \ && dpkg -i orchent_${ORCHENT_VERSION}_amd64.deb \ + && pip install gvm-tools \ && apt-get clean && rm -rf /var/lib/apt/lists/* + +RUN useradd -ms /bin/bash gmp \ + && mkdir /home/gmp/.ssh \ + +COPY id_rsa /home/gmp/.ssh +COPY known_hosts /home/gmp/.ssh + +RUN chown -R gmp:gmp /home/gmp \ + && chmod 0600 /home/gmp/.ssh/id_rsa + +USER gmp +WORKDIR /home/gmp + diff --git a/utils/build b/utils/build new file mode 100644 index 0000000000000000000000000000000000000000..622cfc50b118ad226b4a473df76b9ae9a6028873 --- /dev/null +++ b/utils/build @@ -0,0 +1,4 @@ +TAG=jgvino/jenkins-paas-slave:latest + +docker build -t $TAG . +docker push $TAG