Skip to content

Commit 82fc6dd

Browse files
committed
Update eksctl and add Gitpod installer
1 parent 6e7b702 commit 82fc6dd

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
FROM alpine:3.14
1+
ARG GITPOD_VERSION="sje-external-db.2"
2+
3+
FROM eu.gcr.io/gitpod-core-dev/build/installer:$GITPOD_VERSION as installer
4+
5+
FROM alpine:edge
26

37
RUN apk add --no-cache \
48
bash \
@@ -8,6 +12,7 @@ RUN apk add --no-cache \
812
py3-pip \
913
yarn \
1014
jq \
15+
npm \
1116
yq \
1217
&& pip3 install --upgrade pip \
1318
&& pip3 install \
@@ -17,25 +22,23 @@ RUN apk add --no-cache \
1722
RUN curl -fsSL https://github.com/mikefarah/yq/releases/download/v4.12.0/yq_linux_amd64 -o /usr/local/bin/yq \
1823
&& chmod +x /usr/local/bin/yq
1924

20-
RUN curl -fsSL https://github.com/weaveworks/eksctl/releases/download/0.62.0/eksctl_Linux_amd64.tar.gz | tar -xz -C /usr/local/bin
25+
RUN curl -fsSL https://github.com/weaveworks/eksctl/releases/download/v0.74.0/eksctl_Linux_amd64.tar.gz | tar -xz -C /usr/local/bin
2126

2227
RUN curl -fsSL "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" -o /usr/local/bin/kubectl \
2328
&& chmod +x /usr/local/bin/kubectl
2429

2530
RUN curl -fsSL https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.5.3/aws-iam-authenticator_0.5.3_linux_amd64 -o /usr/local/bin/aws-iam-authenticator \
2631
&& chmod +x /usr/local/bin/aws-iam-authenticator
2732

33+
COPY --from=installer /app/installer /usr/local/bin/gitpod-installer
34+
2835
WORKDIR /gitpod
2936

30-
COPY package.json /gitpod/
31-
COPY yarn.lock /gitpod/
37+
COPY . /gitpod
3238

3339
RUN yarn --pure-lockfile --non-interactive \
3440
&& rm -rf /usr/local/share/.cache/yarn
3541

36-
RUN yarn global add aws-cdk npx \
37-
&& rm -rf /usr/local/share/.cache/yarn
38-
39-
COPY . /gitpod
42+
RUN npm install -g aws-cdk ts-node
4043

4144
ENTRYPOINT ["/gitpod/setup.sh"]

0 commit comments

Comments
 (0)