1
0
Fork 0

Add kubectl and hide dockerfile

main
Ambrose Chua 2018-04-01 21:12:22 +08:00
parent 14519d66b3
commit 2895ba9ff4
8 changed files with 38 additions and 1 deletions

View File

@ -19,7 +19,11 @@ RUN ./.install/yadm.sh
RUN ./.install/golang.sh
RUN ./.install/node.sh
RUN ./.install/python.sh
# setup global PATH for system programs
# tools
RUN ./.install/kubectl.sh
# setup global PATH for system tools
ENV PATH=/usr/local/go/bin:$PATH
# create user
@ -29,8 +33,10 @@ USER ambrose
# install user programs
# shell, editor
RUN ./.install/zsh-pure.sh
RUN ./.install/plug.sh
# tools
RUN ./.install/vgo.sh
RUN ./.install/packr.sh
RUN ./.install/caddy.sh

View File

@ -3,6 +3,7 @@ pipeline:
image: plugins/docker
registry: registry.labs.0x.no
repo: registry.labs.0x.no/env
dockerfile: .dockerfile
tags:
- latest

View File

@ -3,3 +3,5 @@
[user]
name = Ambrose Chua
useConfigOnly = true
[core]
editor = nvim

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.ssh/known_hosts
.kube/cache
.kube/http-cache

16
.install/kubectl.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
set -e
source ./.versions
echo
echo "Installing kubectl $KUBECTL_VERSION..."
echo
apk add --no-cache --virtual .build-deps \
curl
curl -fLo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v$KUBECTL_VERSION/bin/linux/amd64/kubectl
chmod a+x /usr/local/bin/kubectl
apk del .build-deps

View File

@ -7,9 +7,14 @@ echo
echo "Installing yadm..."
echo
apk add --no-cache --virtual .build-deps \
curl
apk add --no-cache \
git \
bash
curl -fLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm
chmod a+x /usr/local/bin/yadm
apk del .build-deps

View File

@ -7,5 +7,7 @@ export GOLANG_VERSION=1.10
export NODE_VERSION=9.10.1
export YARN_VERSION=1.5.1
export KUBECTL_VERSION=1.10.0
export CADDY_VERSION=0.10.12

2
.yadm/encrypt Normal file
View File

@ -0,0 +1,2 @@
.ssh/*.key
.kube/config