mirror of
https://github.com/prometheus/prometheus
synced 2024-12-23 23:13:11 +00:00
upgrade go version on gitpod (#11335)
Signed-off-by: Augustin Husson <husson.augustin@gmail.com> Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
This commit is contained in:
parent
da42612dbd
commit
734772f828
8
.gitpod.Dockerfile
vendored
8
.gitpod.Dockerfile
vendored
@ -1,7 +1,15 @@
|
||||
FROM gitpod/workspace-full
|
||||
|
||||
ENV CUSTOM_NODE_VERSION=16
|
||||
ENV CUSTOM_GO_VERSION=1.19
|
||||
ENV GOPATH=$HOME/go-packages
|
||||
ENV GOROOT=$HOME/go
|
||||
ENV PATH=$GOROOT/bin:$GOPATH/bin:$PATH
|
||||
|
||||
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
|
||||
RUN curl -fsSL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar xzs \
|
||||
&& printf '%s\n' 'export GOPATH=/workspace/go' \
|
||||
'export PATH=$GOPATH/bin:$PATH' > $HOME/.bashrc.d/300-go
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user