FROM jenkins/ssh-agent:4.1.0

ARG ORCHENT_VERSION=1.2.9

RUN DEBIAN_FRONTEND=noninteractive apt-get update \
    && apt-get install -y --no-install-recommends wget git ansible python3-pip \
    && wget https://github.com/indigo-dc/orchent/releases/download/v${ORCHENT_VERSION}/orchent_${ORCHENT_VERSION}_amd64.deb \
    && dpkg -i orchent_${ORCHENT_VERSION}_amd64.deb \
    && rm orchent_${ORCHENT_VERSION}_amd64.deb \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

RUN pip install gvm-tools jq yq

ENTRYPOINT ["/usr/local/bin/setup-sshd"]