2021-08-30 15:27:59 +00:00
|
|
|
FROM golang:buster
|
|
|
|
|
2021-12-22 22:48:21 +00:00
|
|
|
# Enables integration tests to run on existing cluster via Sonobuoy plugin
|
2021-08-30 15:27:59 +00:00
|
|
|
|
|
|
|
RUN apt update && \
|
|
|
|
apt install -y curl git lsof bash openssh-server gcc g++ make ca-certificates && \
|
|
|
|
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
|
|
|
|
|
|
|
WORKDIR $GOPATH/src/github.com/rancher/k3s-io/k3s/
|
|
|
|
|
|
|
|
COPY ./tests/testdata ./testdata
|
|
|
|
COPY ./tests/integration/test-runner.sh .
|
|
|
|
COPY ./dist/artifacts/k3s /usr/local/bin
|
|
|
|
COPY ./dist/artifacts/k3s-integration-* ./tests/
|
|
|
|
|
|
|
|
RUN go get -u github.com/onsi/gomega
|
|
|
|
RUN go get -u github.com/onsi/ginkgo
|