Skip to content

Commit

Permalink
fix the entrypoint error
Browse files Browse the repository at this point in the history
  • Loading branch information
wahyd4 committed May 5, 2020
1 parent c25216e commit b8bb883
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ FROM dtzar/helm-kubectl:3.2.0

COPY run.sh .

ENTRYPOINT [ "/run.sh" ]
ENTRYPOINT [ "sh", "-c","./run.sh" ]
2 changes: 2 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh -eu

: "${KUBE_CONFIG_DATA?Must be specified}"

# Extract the base64 encoded config data and write this to the KUBECONFIG
echo "$KUBE_CONFIG_DATA" | base64 --decode > /tmp/config

Expand Down

0 comments on commit b8bb883

Please sign in to comment.