From 97fae9f6b462a7d32eaa13614dcfb2750c77ae7d Mon Sep 17 00:00:00 2001 From: Stefan - Zipkid - Goethals Date: Thu, 3 Oct 2024 14:33:39 +0200 Subject: [PATCH] Add libssh2 to give rugged for R10K ssh capabilities Compile / Install rugged with ssh support --- puppetserver/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/puppetserver/Dockerfile b/puppetserver/Dockerfile index 2c61a26a..76782480 100644 --- a/puppetserver/Dockerfile +++ b/puppetserver/Dockerfile @@ -7,8 +7,8 @@ ARG UBUNTU_CODENAME=jammy FROM ubuntu:22.04 AS base -ARG PACKAGES="ca-certificates git netbase openjdk-17-jre-headless ruby3.0 openssh-client" -ARG BUILD_PKGS="ruby3.0-dev gcc make cmake pkg-config libssl-dev libc6-dev" +ARG PACKAGES="ca-certificates git netbase openjdk-17-jre-headless ruby3.0 openssh-client libssh2-1" +ARG BUILD_PKGS="ruby3.0-dev gcc make cmake pkg-config libssl-dev libc6-dev libssh2-1-dev" ARG DUMB_INIT_VERSION="1.2.5" ARG TARGETARCH @@ -79,7 +79,7 @@ RUN chmod +x /docker-entrypoint.sh /healthcheck.sh /docker-entrypoint.d/*.sh && apt-get update && \ apt-get install -y --no-install-recommends $PACKAGES $BUILD_PKGS && \ gem install --no-doc r10k -v $R10K_VERSION && \ - gem install --no-doc rugged -v $RUGGED_VERSION && \ + gem install --no-doc rugged -v $RUGGED_VERSION -- --with-ssh && \ dpkg -i dumb-init_"$DUMB_INIT_VERSION"_"$TARGETARCH".deb && \ rm dumb-init_"$DUMB_INIT_VERSION"_"$TARGETARCH".deb && \ apt remove -y $BUILD_PKGS && \