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

added in dockerfile oidc-agent installation

parent 0ca2e17a
No related branches found
No related tags found
No related merge requests found
FROM jenkins/ssh-agent
ARG ORCHENT_VERSION=1.2.9.rc1
ARG LIBQRENCODE_PATH=/tmp/libqrencode.deb
RUN DEBIAN_FRONTEND=noninteractive \
&& apt-get update && apt-get install -y gnupg2 \
RUN DEBIAN_FRONTEND=noninteractive
&& apt-get update && apt-get install -y gnupg2 apt-utils software-properties-common wget \
&& wget -O ${LIBQRENCODE_PATH} wget http://archive.ubuntu.com/ubuntu/pool/universe/q/qrencode/libqrencode3_3.4.4-1build1_amd64.deb \
&& dpkg -i ${LIBQRENCODE_PATH} && rm -f ${LIBQRENCODE_PATH} \
&& apt-key adv --keyserver hkp://pgp.surfnet.nl --recv-keys ACDFB08FDC962044D87FF00B512839863D487A87 \
&& add-apt-repository "deb http://repo.data.kit.edu/ubuntu/bionic ./" \
&& apt-get update \
&& apt-get install -y wget git ansible python3-pip openssh-client iproute2 net-tools oidc-agent\
&& 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 \
......@@ -18,10 +22,13 @@ RUN useradd -ms /bin/bash gmp \
COPY id_rsa /home/gmp/.ssh
COPY known_hosts /home/gmp/.ssh
RUN chown -R gmp:gmp /home/gmp \
RUN chown -R gmp:gmp /home/gmp /tmp \
&& chmod 0600 /home/gmp/.ssh/id_rsa \
&& chown gmp:gmp /etc/environment
USER gmp
RUN eval `oidc-agent-service start`
WORKDIR /home/gmp
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