Skip to content

Commit b8bb883

Browse files
committed
fix the entrypoint error
1 parent c25216e commit b8bb883

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ FROM dtzar/helm-kubectl:3.2.0
22

33
COPY run.sh .
44

5-
ENTRYPOINT [ "/run.sh" ]
5+
ENTRYPOINT [ "sh", "-c","./run.sh" ]

run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh -eu
22

3+
: "${KUBE_CONFIG_DATA?Must be specified}"
4+
35
# Extract the base64 encoded config data and write this to the KUBECONFIG
46
echo "$KUBE_CONFIG_DATA" | base64 --decode > /tmp/config
57

0 commit comments

Comments
 (0)