-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile to use pre-built OpenSSH binary and fix test refere…
…nce to SSH binary (#522) * Update Dockerfile to use pre-built OpenSSH binary and fix test reference to SSH binary * Add support for multiple SSH binary versions in tests
- Loading branch information
Showing
2 changed files
with
53 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,9 @@ RUN --mount=target=/src,type=bind,source=. --mount=type=cache,target=/root/.cach | |
ADD entrypoint.sh /sshpiperd | ||
|
||
FROM builder as testrunner | ||
RUN apt update && apt install -y autoconf automake libssl-dev libz-dev | ||
|
||
RUN cd /tmp && \ | ||
curl -fsSL https://github.com/openssh/openssh-portable/archive/refs/tags/V_9_8_P1.tar.gz | tar xz && \ | ||
cd openssh-portable-V_9_8_P1 && \ | ||
autoreconf && \ | ||
./configure && \ | ||
make ssh && \ | ||
cp ssh /usr/bin/ssh-9.8.1p1 | ||
|
||
COPY --from=farmer1992/openssh-static:V_9_8_P1 /usr/bin/ssh /usr/bin/ssh-9.8p1 | ||
COPY --from=farmer1992/openssh-static:V_8_0_P1 /usr/bin/ssh /usr/bin/ssh-8.0p1 | ||
|
||
FROM docker.io/busybox | ||
# LABEL maintainer="Boshi Lian<[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters