Skip to content

Commit

Permalink
fix: fix ssh not available in registry.werf.io/werf images
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
distorhead committed Nov 29, 2022
1 parent c2035c4 commit 5045493
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/werf-in-image/alpine.Dockerfile
@@ -1,6 +1,6 @@
FROM alpine:3.15

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

# Fix messed up setuid/setgid capabilities.
RUN setcap cap_setuid+ep /usr/bin/newuidmap && \
Expand Down
2 changes: 1 addition & 1 deletion scripts/werf-in-image/centos.Dockerfile
@@ -1,6 +1,6 @@
FROM quay.io/centos/centos:stream9

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

# Fix messed up setuid/setgid capabilities.
Expand Down
2 changes: 1 addition & 1 deletion scripts/werf-in-image/fedora.Dockerfile
@@ -1,6 +1,6 @@
FROM fedora:35

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

# Fix messed up setuid/setgid capabilities.
Expand Down
2 changes: 1 addition & 1 deletion scripts/werf-in-image/ubuntu.Dockerfile
@@ -1,7 +1,7 @@
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND="noninteractive"

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

# Fix messed up setuid/setgid capabilities.
Expand Down

0 comments on commit 5045493

Please sign in to comment.