From 160fc4144151d7f77d3395cfc860d3a7b5551957 Mon Sep 17 00:00:00 2001 From: Augustin Husson Date: Thu, 16 Sep 2021 13:19:11 +0200 Subject: [PATCH 1/2] add gitpod dockerfile to upgrade node and npm version Signed-off-by: Augustin Husson --- .gitpod.Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .gitpod.Dockerfile diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 000000000..22df08f68 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,7 @@ +FROM gitpod/workspace-full + +ENV CUSTOM_NODE_VERSION=16 + +RUN bash -c ". .nvm/nvm.sh && nvm install ${CUSTOM_NODE_VERSION} && nvm use ${CUSTOM_NODE_VERSION} && nvm alias default ${CUSTOM_NODE_VERSION}" + +RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix From 722eb4bd640f150685c73232bb6320fae407cec2 Mon Sep 17 00:00:00 2001 From: Augustin Husson Date: Thu, 16 Sep 2021 13:19:54 +0200 Subject: [PATCH 2/2] fix gitpod by using custome dockerfile and accurate npm ui path Signed-off-by: Augustin Husson --- .gitpod.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 6dbc6c206..bb38f6d2c 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,4 +1,5 @@ ---- +image: + file: .gitpod.Dockerfile tasks: - init: make build @@ -6,7 +7,7 @@ tasks: gp sync-done build ./prometheus --config.file=documentation/examples/prometheus.yml - command: | - cd web/ui/react-app + cd web/ui/ gp sync-await build unset BROWSER export DANGEROUSLY_DISABLE_HOST_CHECK=true