Skip to content

Commit cabf060

Browse files
committed
Install openssh-client, restore php-ssh2
The bookworm base has no /etc/ssh, unlike the stretch base, so appending the IdentityFile line to /etc/ssh/ssh_config failed the PHP build: /bin/sh: 1: cannot create /etc/ssh/ssh_config: Directory nonexistent Install openssh-client, which ships that file. The compose file mounts the SSH agent socket into the nodejs container too, so add it there as well. Also restore php8.5-ssh2, dropped from the extension list by mistake during the migration; unlike the removed extensions it is still published for PHP 8.x. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QNkYkDFukA7kdCTsnWLrCD
1 parent 11c114d commit cabf060

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎nodejs/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LABEL maintainer="Milan Sulc <sulcmil@gmail.com>"
66
ENV NODE_VERSION=24.19.0
77

88
RUN apt-get update && apt-get dist-upgrade -y && \
9-
apt-get install -y wget curl git bash-completion gnupg2 && \
9+
apt-get install -y wget curl git bash-completion gnupg2 openssh-client && \
1010
curl -fsSLo /tmp/node.tar.gz "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz" && \
1111
tar -xzf /tmp/node.tar.gz -C /usr/local --strip-components=1 --no-same-owner && \
1212
rm /tmp/node.tar.gz /usr/local/CHANGELOG.md /usr/local/LICENSE /usr/local/README.md && \

‎php/8.5-fpm/Dockerfile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ENV BLACKFIRE_AGENT=tcp://blackfire:8707
3434
RUN apt-get update && apt-get dist-upgrade -y && \
3535
# DEPENDENCIES #############################################################
3636
apt-get install -y --no-install-recommends \
37-
wget curl git bash-completion ca-certificates gnupg && \
37+
wget curl git bash-completion ca-certificates gnupg openssh-client && \
3838
mkdir -p /etc/apt/keyrings && \
3939
# COMPLETION ###############################################################
4040
cp /etc/skel/.bashrc ~/ && \
@@ -69,6 +69,7 @@ RUN apt-get update && apt-get dist-upgrade -y && \
6969
php${PHP_VERSION}-redis \
7070
php${PHP_VERSION}-soap \
7171
php${PHP_VERSION}-sqlite3 \
72+
php${PHP_VERSION}-ssh2 \
7273
php${PHP_VERSION}-xsl \
7374
php${PHP_VERSION}-zip \
7475
php${PHP_VERSION}-xdebug \

‎php/8.5/Dockerfile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ENV BLACKFIRE_AGENT=tcp://blackfire:8707
3232
RUN apt-get update && apt-get dist-upgrade -y && \
3333
# DEPENDENCIES #############################################################
3434
apt-get install -y --no-install-recommends \
35-
wget curl git bash-completion ca-certificates gnupg && \
35+
wget curl git bash-completion ca-certificates gnupg openssh-client && \
3636
mkdir -p /etc/apt/keyrings && \
3737
# COMPLETION ###############################################################
3838
cp /etc/skel/.bashrc ~/ && \
@@ -66,6 +66,7 @@ RUN apt-get update && apt-get dist-upgrade -y && \
6666
php${PHP_VERSION}-redis \
6767
php${PHP_VERSION}-soap \
6868
php${PHP_VERSION}-sqlite3 \
69+
php${PHP_VERSION}-ssh2 \
6970
php${PHP_VERSION}-xsl \
7071
php${PHP_VERSION}-zip \
7172
php${PHP_VERSION}-xdebug \

0 commit comments

Comments
 (0)