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

Commit

Permalink
Update the guide to use the Gitpod installer to generate the Kubernet…
Browse files Browse the repository at this point in the history
…es config
  • Loading branch information
Simon Emms committed Nov 6, 2021
1 parent c5d174c commit 8f219a0
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 479 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.env
.kubeconfig*
*.json
gitpod.yaml
gitpod-config.yaml
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
ARG GITPOD_VERSION="main.1792"

FROM eu.gcr.io/gitpod-core-dev/build/installer:$GITPOD_VERSION as installer

FROM alpine:3.14

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

COPY --from=installer /app/installer /usr/local/bin/gitpod-installer

WORKDIR /gitpod

COPY . /gitpod
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ build: ## Build docker image containing the required tools for the installation
@docker build --squash --quiet . -t ${IMG}

DOCKER_RUN_CMD = docker run -it \
--pull always \
--volume $$HOME/.config/gcloud:/root/.config/gcloud \
--volume $$HOME/.kube/config:/root/.kube/config \
--volume $$HOME/.kube:/root/.kube \
--volume $$PWD:/gitpod \
${IMG} $(1)

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

uninstall: ## Uninstall Gitpod
Expand Down
Loading

0 comments on commit 8f219a0

Please sign in to comment.