Skip to content

Commit ef1aaf7

Browse files
committed
feature: initial commit
0 parents  commit ef1aaf7

File tree

5 files changed

+81
-0
lines changed

5 files changed

+81
-0
lines changed

Dockerfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
############################################################
2+
# Dockerfile
3+
############################################################
4+
5+
# Set the base image
6+
FROM alpine:3.8
7+
8+
############################################################
9+
# Configuration
10+
############################################################
11+
ENV VERSION "2.3.0"
12+
ENV FILENAME=helm-v${VERSION}-linux-amd64.tar.gz
13+
14+
############################################################
15+
# Entrypoint
16+
############################################################
17+
COPY docker-entrypoint.sh /usr/local/bin/
18+
19+
############################################################
20+
# Installation
21+
############################################################
22+
23+
RUN apk add --no-cache ca-certificates bash git curl tar gzip coreutils &&\
24+
# Install Helm
25+
curl -L http://storage.googleapis.com/kubernetes-helm/${FILENAME}> ${FILENAME} &&\
26+
tar zxv -C /tmp -f ${FILENAME} &&\
27+
rm -f ${FILENAME} &&\
28+
mv /tmp/linux-amd64/helm /bin/helm &&\
29+
chmod +x /usr/local/bin/docker-entrypoint.sh &&\
30+
# CleanUp
31+
apk del curl tar gzip
32+
33+
############################################################
34+
# Execution
35+
############################################################
36+
ENTRYPOINT [ "docker-entrypoint.sh" ]
37+
CMD ["helm", "--help"]

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Philipp Heuer
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Helm
2+
3+
Docker image containing the Kubernetes Helm Client.
4+
5+
## Features
6+
7+
* Tillerless Helm Plugin - [helm-tiller](https://github.com/rimusz/helm-tiller) by @rimusz
8+
* Overwrite the KubeCTL Config with a base64 encoded file by setting the env variable `KUBECONFIG_CONTENT`. Can be usefull for automated deployments from gitlab/travis/...

docker-entrypoint.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -e
3+
4+
if [ -n "$KUBECONFIG_CONTENT" ]; then
5+
# overwrite kubectl config file (useful for ci/cd)
6+
mkdir -p /root/.kube
7+
echo $KUBECONFIG_CONTENT | base64 --decode > /root/.kube/config
8+
fi
9+
10+
exec "$@"

updater.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Upstream Repository
2+
---
3+
repositoryNamespace: helm
4+
repositoryName: helm
5+
pattern: "(master|develop|v(?<VERSION>[0-9]+.[0-9]+.[0-9]+))"

0 commit comments

Comments
 (0)