Skip to content

Commit

Permalink
use alpine instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tmehlinger authored Apr 24, 2020
1 parent 78486a5 commit 475bbc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/addons/registry-aliases/node-etc-hosts-update.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
initContainers:
- name: update
image: ubuntu:bionic
image: alpine:3.11
volumeMounts:
- name: etchosts
mountPath: /host-etc/hosts
Expand All @@ -39,7 +39,7 @@ spec:
for H in $REGISTRY_ALIASES; do
echo "$HOSTS" | grep "$H" || HOSTS="$HOSTS$NL$REGISTRY_SERVICE_HOST$TAB$H";
done;
echo "$HOSTS" | diff -u /host-etc/hosts - || echo "$HOSTS" > /host-etc/hosts
echo "$HOSTS" | diff -U 3 /host-etc/hosts - || echo "$HOSTS" > /host-etc/hosts
echo "Done."
containers:
- name: pause-for-update
Expand Down

0 comments on commit 475bbc4

Please sign in to comment.