Skip to content
Snippets Groups Projects
Dockerfile 856 B
FROM jenkins/ssh-agent

ARG ORCHENT_VERSION=1.2.9.rc1

RUN DEBIAN_FRONTEND=noninteractive \ 
    && apt-key adv --keyserver hkp://pgp.surfnet.nl --recv-keys ACDFB08FDC962044D87FF00B512839863D487A87 \
    && apt-get update \
    && apt-get install -y wget git ansible python3-pip openssh-client iproute2 net-tools oidc-agent\
    && 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 \
    && chown gmp:gmp /etc/environment

USER gmp
WORKDIR /home/gmp