argo-cd/.gitpod.Dockerfile
Joseph Michael Casey 8635af3d16
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>
2022-05-23 22:54:20 -07:00

19 lines
659 B
Docker

FROM gitpod/workspace-full
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://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