Skip to content
Snippets Groups Projects
Commit c19e3ede authored by qweqweasdasd's avatar qweqweasdasd
Browse files

Added gvm to Dockerfile and added build file

parent 8effb233
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,21 @@ FROM jenkins/ssh-agent ...@@ -3,7 +3,21 @@ FROM jenkins/ssh-agent
ARG ORCHENT_VERSION=1.2.9.rc1 ARG ORCHENT_VERSION=1.2.9.rc1
RUN DEBIAN_FRONTEND=noninteractive apt-get update \ 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 \ && wget https://github.com/indigo-dc/orchent/releases/download/v${ORCHENT_VERSION}/orchent_${ORCHENT_VERSION}_amd64.deb \
&& dpkg -i 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/* && 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
TAG=jgvino/jenkins-paas-slave:latest
docker build -t $TAG .
docker push $TAG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment