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

Commit 5b7338e

Browse files
authored
Merge pull request #4 from gitpod-io/aledbf/squash
Sync upstream version
2 parents a3714cd + c707ba6 commit 5b7338e

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ ENV PATH /google-cloud-sdk/bin:$PATH
2929
RUN gcloud components install beta
3030
RUN gcloud components install alpha
3131

32+
RUN curl -fsSL https://github.com/mikefarah/yq/releases/download/v4.12.2/yq_linux_amd64 -o /usr/local/bin/yq \
33+
&& chmod +x /usr/local/bin/yq
34+
3235
WORKDIR /gitpod
3336

3437
COPY . /gitpod

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SHELL=/bin/bash -o pipefail -o errexit
66
IMG=ghcr.io/gitpod-io/gitpod-gke-guide:latest
77

88
build: ## Build docker image containing the required tools for the installation
9-
@docker build --quiet . -t ${IMG}
9+
@docker build --squash --quiet . -t ${IMG}
1010

1111
DOCKER_RUN_CMD = docker run -it \
1212
--volume $$HOME/.config/gcloud:/root/.config/gcloud \

setup.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
set -eo pipefail
4-
4+
set -x
55
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)
66
if [ ! -f "${DIR}/.env" ]; then
77
echo "Missing ${DIR}/.env configuration file."
@@ -32,7 +32,7 @@ WORKSPACES_POOL="workload-workspaces"
3232

3333
GKE_VERSION=${GKE_VERSION:="1.20.8-gke.900"}
3434

35-
GITPOD_VERSION=${GITPOD_VERSION:="aledbf-mk3.55"}
35+
GITPOD_VERSION=${GITPOD_VERSION:="aledbf-mk3.68"}
3636

3737
function check_prerequisites() {
3838
if [ -z "${PROJECT_NAME}" ]; then
@@ -369,6 +369,11 @@ function install() {
369369
--from-file=.dockerconfigjson="${IMAGE_PULL_SECRET_FILE}" \
370370
--type=kubernetes.io/dockerconfigjson >/dev/null 2>&1 || true
371371
fi
372+
373+
yq e -i '.components.imageBuilderMk3.registry.secretName = "gitpod-image-pull-secret"' "${DIR}/charts/assets/gitpod-values.yaml"
374+
else
375+
# ensure the chart installation does not fail without a secret.
376+
yq e -i '.components.imageBuilderMk3.registry = {}' "${DIR}/charts/assets/gitpod-values.yaml"
372377
fi
373378

374379
install_cert_manager

0 commit comments

Comments
 (0)