Skip to content

Commit d0a03f5

Browse files
committed
feat: add entrypoint to container for pulling github known hosts
1 parent 60bfe5c commit d0a03f5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ ENV SSH_KNOWN_HOSTS="/etc/ssh/ssh_known_hosts"
66

77
RUN apk add --no-cache openssh-client && ssh-keyscan -H github.com >> /etc/ssh/ssh_known_hosts
88

9-
ENTRYPOINT ["/gitops-commit"]
9+
COPY entrypoint.sh .
10+
11+
ENTRYPOINT ["/entrypoint.sh"]
1012
COPY gitops-commit /

entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#/bin/sh
2+
set -e
3+
4+
ssh-keyscan -H github.com >> /etc/ssh/ssh_known_hosts
5+
6+
exec "$@"

0 commit comments

Comments
 (0)