Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 1b6ce26

Browse files
Simon Emmsmrsimonemms
authored andcommitted
Update the guide to use the Gitpod installer to generate the Kubernetes config
1 parent c5d174c commit 1b6ce26

File tree

8 files changed

+66
-479
lines changed

8 files changed

+66
-479
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.env
22
.kubeconfig*
33
*.json
4+
gitpod.yaml
5+
gitpod-config.yaml

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
ARG GITPOD_VERSION="main.1838"
2+
3+
FROM eu.gcr.io/gitpod-core-dev/build/installer:$GITPOD_VERSION as installer
4+
15
FROM alpine:3.14
26

37
RUN apk add --no-cache \
@@ -32,6 +36,8 @@ RUN gcloud components install alpha
3236
RUN curl -fsSL https://github.com/mikefarah/yq/releases/download/v4.12.2/yq_linux_amd64 -o /usr/local/bin/yq \
3337
&& chmod +x /usr/local/bin/yq
3438

39+
COPY --from=installer /app/installer /usr/local/bin/gitpod-installer
40+
3541
WORKDIR /gitpod
3642

3743
COPY . /gitpod

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ build: ## Build docker image containing the required tools for the installation
99
@docker build --squash --quiet . -t ${IMG}
1010

1111
DOCKER_RUN_CMD = docker run -it \
12-
--pull always \
1312
--volume $$HOME/.config/gcloud:/root/.config/gcloud \
14-
--volume $$HOME/.kube/config:/root/.kube/config \
13+
--volume $$HOME/.kube:/root/.kube \
1514
--volume $$PWD:/gitpod \
1615
${IMG} $(1)
1716

1817
install: ## Install Gitpod
1918
@echo "Starting install process..."
20-
@test $(shell gcloud info --format="value(config.account)") || { echo "GCP dredentials do not exist. Run [gcloud auth login] to configure them"; exit 1; }
19+
@test $(shell gcloud info --format="value(config.account)") || { echo "GCP credentials do not exist. Run [gcloud auth login] to configure them"; exit 1; }
2120
@$(call DOCKER_RUN_CMD, --install)
2221

2322
uninstall: ## Uninstall Gitpod

0 commit comments

Comments
 (0)