Skip to content

Commit 5045493

Browse files
committed
fix: fix ssh not available in registry.werf.io/werf images
Fix problem with git submodules fetching over ssh when running werf in the registry.werf.io/werf/werf image. Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
1 parent c2035c4 commit 5045493

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scripts/werf-in-image/alpine.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM alpine:3.15
22

3-
RUN apk add --no-cache fuse-overlayfs git shadow-uidmap libcap
3+
RUN apk add --no-cache fuse-overlayfs git shadow-uidmap libcap openssh-client
44

55
# Fix messed up setuid/setgid capabilities.
66
RUN setcap cap_setuid+ep /usr/bin/newuidmap && \

scripts/werf-in-image/centos.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM quay.io/centos/centos:stream9
22

3-
RUN dnf -y install fuse-overlayfs git && \
3+
RUN dnf -y install fuse-overlayfs git openssh-clients && \
44
dnf clean all && rm -rf /var/cache /var/log/dnf* /var/log/yum.*
55

66
# Fix messed up setuid/setgid capabilities.

scripts/werf-in-image/fedora.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM fedora:35
22

3-
RUN dnf -y install fuse-overlayfs git && \
3+
RUN dnf -y install fuse-overlayfs git openssh-clients && \
44
dnf clean all && rm -rf /var/cache /var/log/dnf* /var/log/yum.*
55

66
# Fix messed up setuid/setgid capabilities.

scripts/werf-in-image/ubuntu.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ubuntu:20.04
22
ENV DEBIAN_FRONTEND="noninteractive"
33

4-
RUN apt-get -y update && apt-get -y install fuse-overlayfs git uidmap libcap2-bin && \
4+
RUN apt-get -y update && apt-get -y install fuse-overlayfs git uidmap libcap2-bin openssh-client && \
55
rm -rf /var/cache/apt/* /var/lib/apt/lists/* /var/log/*
66

77
# Fix messed up setuid/setgid capabilities.

0 commit comments

Comments
 (0)