mirror of
https://github.com/containers/podman-compose.git
synced 2025-02-16 18:31:34 +01:00
Fixes #705: Add support for ssh property in the build command Signed-off-by: Domenico Salvatore <banditopazzo@gmail.com>
17 lines
388 B
Docker
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
|