You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Based on https://github.com/gitpod-io/workspace-images/blob/master/base/Dockerfile and https://github.com/gitpod-io/workspace-images/blob/master/full/Dockerfile
4
5
5
-
FROM alpine:${BASE_IMAGE_VERSION} as FETCHER
6
+
FROM alpine:${FETCHER_IMAGE_VERSION} as FETCHER
7
+
8
+
RUN apk --no-cache add unzip
6
9
7
10
USER root
8
11
9
-
ARG KUSTOMIZE_VERSION=v4.4.1
10
-
ARG KUSTIMIZE_HELM_PLUGIN=v0.9.2
12
+
ENV KUSTOMIZE_VERSION=v4.4.1
13
+
ENV KUSTIMIZE_HELM_PLUGIN=v0.9.2
14
+
ENV STARSHIP_VERSION=v1.1.1
15
+
ENV DOCKER_VERSION=20.10.9
11
16
12
17
RUN mkdir /tmp/completion
13
18
@@ -18,53 +23,55 @@ RUN kustomize completion zsh > /tmp/completion/_kustomize
18
23
19
24
# Khelm https://github.com/mgoltzsche/khelm
20
25
RUN mkdir -p /root/.config/kustomize/plugin/helm.kustomize.mgoltzsche.github.com/v1/chartrenderer && \
RUN wget -O- https://github.com/starship/starship/releases/download/${STARSHIP_VERSION}/starship-x86_64-unknown-linux-gnu.tar.gz | tar xvz -C /usr/local/bin/
36
+
RUN chmod +x /usr/local/bin/starship
37
+
38
+
# Docker https://github.com/moby/moby
39
+
RUN wget -O- https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz | tar xvz -C /usr/local/bin/
40
+
RUN chmod +x /usr/local/bin/docker
41
+
42
+
# AWS CLI
43
+
RUN wget https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip
44
+
RUN unzip awscli-exe-linux-x86_64.zip -d /tmp
45
+
RUN /tmp/aws/install --bin-dir /tmp/aws-cli-bin
29
46
30
47
RUN chmod 644 /tmp/completion/*
31
48
32
-
FROM alpine:${BASE_IMAGE_VERSION}
49
+
################################################
50
+
FROM gitpod/workspace-base:${BASE_IMAGE_VERSION}
51
+
52
+
ENV RUN_AS_USER=gitpod
33
53
34
54
USER root
35
-
ARG RUN_AS_USER=gitpod
36
-
ENV LANG=en_US.UTF-8
37
-
38
-
### Packages ###
39
-
RUN apk add --no-cache \
40
-
zsh \
41
-
git \
42
-
curl \
43
-
make \
44
-
jq \
45
-
python3 \
46
-
py3-pip \
47
-
docker \
48
-
starship \
49
-
terraform \
50
-
musl \
51
-
libc6-compat \
52
-
libgcc \
53
-
libstdc++
55
+
56
+
## Packages ###
57
+
RUN apt-get update && apt-get install -y \
58
+
python3-pip \
59
+
docker.io \
60
+
&& rm -rf /var/lib/apt/lists/*
54
61
55
62
### PIP ###
56
63
RUN pip3 install --no-cache-dir awscli
57
64
58
-
### Gitpod user ###
59
-
RUN adduser --disabled-password --shell /bin/zsh --uid 33333 ${RUN_AS_USER}
0 commit comments