mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Set Go version in go.mod go mod edit -go=1.19 * Fix formatting issues reported by gofmt * Fix SA1019 check (usage of deprecated "io/ioutil"), reported by golangci-lint SA1019: "io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck) * Use Go 1.19 in our Dockerfiles * Use Go 1.19 in the rpm-prepare.sh script * Update the tag for the IBM Cloud CI image
24 lines
1.1 KiB
Docker
24 lines
1.1 KiB
Docker
FROM golang:1.19
|
|
|
|
RUN curl -fsSL https://clis.cloud.ibm.com/install/linux | sh && \
|
|
curl -sLO https://github.com/cli/cli/releases/download/v2.1.0/gh_2.1.0_linux_amd64.deb && \
|
|
apt install ./gh_2.1.0_linux_amd64.deb && \
|
|
curl -sLO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
|
|
chmod +x kubectl && \
|
|
mv kubectl /usr/local/bin/ && \
|
|
curl -sLO https://raw.githubusercontent.com/cptmorgan-rh/install-oc-tools/master/install-oc-tools.sh > /dev/null && \
|
|
chmod +x install-oc-tools.sh && \
|
|
./install-oc-tools.sh --latest 4.11 && \
|
|
apt-get update -y && \
|
|
apt-get install -y sshpass jq colorized-logs && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create non-root user and associated home directory
|
|
RUN useradd -u 2001 --create-home tester
|
|
# Change to non-root privilege
|
|
USER tester
|
|
|
|
RUN go install github.com/kadel/odo-robot@965ea0dd848856691bfc76e6824a8b787b950045 && \
|
|
ibmcloud plugin install -f cloud-object-storage && \
|
|
ibmcloud plugin install -f kubernetes-service
|