bug(gitpod): change Kubebuilder curl (#9097) (#9197)

* bug(gitpod): change Kubebuilder curl (#9097)

Signed-off-by: Joseph Casey <me@josephmcasey.com>

* bug(gitpod): Use go build cache permission

* Targets path that user has permission to use

Signed-off-by: Joseph Casey <me@josephmcasey.com>

Co-authored-by: Michael Crenshaw <michael@crenshaw.dev>
This commit is contained in:
Joseph Michael Casey 2022-05-24 01:54:20 -04:00 committed by GitHub
parent 15adda970b
commit 8635af3d16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
.gitpod.Dockerfile vendored
View file

@ -5,13 +5,15 @@ USER root
RUN curl -o /usr/local/bin/kubectl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
chmod +x /usr/local/bin/kubectl
RUN curl -L https://go.kubebuilder.io/dl/2.3.1/$(go env GOOS)/$(go env GOARCH) | \
RUN curl -L https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.3.1/kubebuilder_2.3.1_$(go env GOOS)_$(go env GOARCH).tar.gz | \
tar -xz -C /tmp/ && mv /tmp/kubebuilder_2.3.1_$(go env GOOS)_$(go env GOARCH) /usr/local/kubebuilder
ENV GOCACHE=/go-build-cache
RUN apt-get install redis-server -y
RUN go install github.com/mattn/goreman@latest
USER gitpod
ENV ARGOCD_REDIS_LOCAL=true
ENV KUBECONFIG=/tmp/kubeconfig
ENV KUBECONFIG=/tmp/kubeconfig