-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (37 loc) · 1.41 KB
/
Dockerfile
File metadata and controls
40 lines (37 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM alpine:3
COPY container-root/ /
RUN apk --nocache upgrade --available \
&& apk add --no-cache \
bash \
bind-tools \
coreutils \
curl \
gawk \
git \
gzip \
jq \
minio-client \
openssh-client \
openssl \
restic \
rsync \
sed \
yq \
zip \
&& curl -s https://raw.githubusercontent.com/scaleway/scaleway-cli/master/scripts/get.sh | sh \
&& LASTK8S=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) \
&& curl -sL https://storage.googleapis.com/kubernetes-release/release/${LASTK8S}/bin/linux/amd64/kubectl -o kubectl \
&& install -m 755 kubectl /usr/local/bin/kubectl \
&& curl -sL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash \
&& TMPD=$(mktemp -d) && cd $TMPD \
&& OS="$(uname | tr '[:upper:]' '[:lower:]')" \
&& ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" \
&& KREW="krew-${OS}_${ARCH}" \
&& curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" \
&& tar zxvf "${KREW}.tar.gz" \
&& ./"${KREW}" install krew \
&& cd && rm -rf $TMPD \
&& export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" \
&& kubectl krew install neat get-all slice \
&& mkdir -p /root/.ssh /root/.kube /cli
WORKDIR /cli