Skip to content

Commit 77edf27

Browse files
committed
Make tests/integration/Dockerfile.test more secure
Signed-off-by: Manuel Buil <mbuil@suse.com>
1 parent 9701c74 commit 77edf27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integration/Dockerfile.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM golang:buster
33
# Enables integration tests to run on existing cluster via Sonobuoy plugin
44

55
RUN apt update && \
6-
apt install -y curl git lsof bash openssh-server gcc g++ make ca-certificates && \
7-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
6+
apt install -y --no-install-recommends git lsof bash openssh-server gcc g++ make ca-certificates && \
7+
rm -rf /var/lib/apt/lists/*
88

99
WORKDIR $GOPATH/src/github.com/k3s-io/k3s-io/k3s/
1010

@@ -13,5 +13,5 @@ COPY ./tests/integration/test-runner.sh .
1313
COPY ./dist/artifacts/k3s /usr/local/bin
1414
COPY ./dist/artifacts/k3s-integration-* ./tests/
1515

16-
RUN go install -u github.com/onsi/gomega
17-
RUN go install -u github.com/onsi/ginkgo
16+
RUN go install github.com/onsi/ginkgo/v2/ginkgo@v2.17.1
17+
RUN go install github.com/onsi/gomega@v1.32.0

0 commit comments

Comments
 (0)