diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..21dd39a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +sudo: required + +services: + - docker + +script: + - bash ./build.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f485fb6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,39 @@ +FROM alpine:edge + +# variable "VERSION" must be passed as docker environment variables during the image build +# docker build --no-cache --build-arg VERSION=2.12.0 -t alpine/helm:2.12.0 . + +ARG HELM_VERSION=2.14.3 +ARG KUBECTL_VERSION=1.13.10 +ARG AWS_IAM_AUTH_VERSION=0.4.0 + +# Install helm (latest release) +# ENV BASE_URL="https://storage.googleapis.com/kubernetes-helm" +ENV BASE_URL="https://get.helm.sh" +ENV TAR_FILE="helm-v${HELM_VERSION}-linux-amd64.tar.gz" +RUN apk add --update --no-cache curl ca-certificates && \ + curl -L ${BASE_URL}/${TAR_FILE} |tar xvz && \ + mv linux-amd64/helm /usr/bin/helm && \ + chmod +x /usr/bin/helm && \ + rm -rf linux-amd64 && \ + apk del curl && \ + rm -f /var/cache/apk/* + +# Install kubectl (same version of aws esk) +RUN apk add --update --no-cache curl && \ + curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \ + mv kubectl /usr/bin/kubectl && \ + chmod +x /usr/bin/kubectl && \ + apk del curl && \ + rm -f /var/cache/apk/* + + +# Install aws-iam-authenticator (latest version) +RUN apk add --update --no-cache curl && \ + curl -LO https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_IAM_AUTH_VERSION}/aws-iam-authenticator_0.4.0_linux_amd64 && \ + mv aws-iam-authenticator_0.4.0_linux_amd64 /usr/bin/aws-iam-authenticator && \ + chmod +x /usr/bin/aws-iam-authenticator && \ + apk del curl && \ + rm -f /var/cache/apk/* + +WORKDIR /apps diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ab60297 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.