We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9a2ada + a0c05e1 commit aea7978Copy full SHA for aea7978
images/tests/Dockerfile
@@ -0,0 +1,22 @@
1
+# Use the official Go image as a base image
2
+FROM golang:1.21
3
+
4
+ENV KUBECONFIG=/distributed-workloads/tests/.kube/config
5
6
+# Set the working directory inside the container
7
+WORKDIR /distributed-workloads
8
9
+# Copy the go mod and sum files
10
+COPY go.mod go.sum ./
11
12
+# Download all dependencies
13
+RUN go mod download && \
14
+ go install gotest.tools/gotestsum@latest
15
16
+WORKDIR /distributed-workloads/tests
17
18
+# Copy the source from the current directory to the working directory inside the container
19
+COPY tests/ .
20
21
+# Command to run the tests
22
+ENTRYPOINT [ "gotestsum"]
0 commit comments