Skip to content

Commit aea7978

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents a9a2ada + a0c05e1 commit aea7978

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

images/tests/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)