Skip to content
Snippets Groups Projects
Dockerfile 685 B
Newer Older
  • Learn to ignore specific revisions
  • Marica Antonacci's avatar
    Marica Antonacci committed
    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 python3-pip openssh-client iproute2 \
    
    Marica Antonacci's avatar
    Marica Antonacci committed
        && 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 \
    
    Marica Antonacci's avatar
    Marica Antonacci committed
        && 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