podman-compose/tests/integration/build_ssh/context/Dockerfile
banditopazzo ab33954f6c add ssh support for build command
Fixes #705: Add support for ssh property in the build command

Signed-off-by: Domenico Salvatore <banditopazzo@gmail.com>
2024-10-15 00:35:10 +02:00

17 lines
388 B
Docker

# Base image
FROM alpine:latest
# Install OpenSSH client
RUN apk add openssh
# Test the SSH agents during the build
RUN echo -n "default: " >> /result.log
RUN --mount=type=ssh ssh-add -L >> /result.log
RUN echo -n "id1: " >> /result.log
RUN --mount=type=ssh,id=id1 ssh-add -L >> /result.log
RUN echo -n "id2: " >> /result.log
RUN --mount=type=ssh,id=id2 ssh-add -L >> /result.log