This repository was archived by the owner on Sep 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ ENV PATH /google-cloud-sdk/bin:$PATH
29
29
RUN gcloud components install beta
30
30
RUN gcloud components install alpha
31
31
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
+
32
35
WORKDIR /gitpod
33
36
34
37
COPY . /gitpod
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ SHELL=/bin/bash -o pipefail -o errexit
6
6
IMG =ghcr.io/gitpod-io/gitpod-gke-guide:latest
7
7
8
8
build : # # Build docker image containing the required tools for the installation
9
- @docker build --quiet . -t ${IMG}
9
+ @docker build --squash -- quiet . -t ${IMG}
10
10
11
11
DOCKER_RUN_CMD = docker run -it \
12
12
--volume $$HOME/.config/gcloud:/root/.config/gcloud \
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
set -eo pipefail
4
-
4
+ set -x
5
5
DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd -P)
6
6
if [ ! -f " ${DIR} /.env" ]; then
7
7
echo " Missing ${DIR} /.env configuration file."
@@ -32,7 +32,7 @@ WORKSPACES_POOL="workload-workspaces"
32
32
33
33
GKE_VERSION=${GKE_VERSION:= " 1.20.8-gke.900" }
34
34
35
- GITPOD_VERSION=${GITPOD_VERSION:= " aledbf-mk3.55 " }
35
+ GITPOD_VERSION=${GITPOD_VERSION:= " aledbf-mk3.68 " }
36
36
37
37
function check_prerequisites() {
38
38
if [ -z " ${PROJECT_NAME} " ]; then
@@ -369,6 +369,11 @@ function install() {
369
369
--from-file=.dockerconfigjson=" ${IMAGE_PULL_SECRET_FILE} " \
370
370
--type=kubernetes.io/dockerconfigjson > /dev/null 2>&1 || true
371
371
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"
372
377
fi
373
378
374
379
install_cert_manager
You can’t perform that action at this time.
0 commit comments