Skip to content

Commit f4ee7d3

Browse files
bdattomaopenshift-merge-bot[bot]
authored andcommitted
add dockerfile for running tests
1 parent 49ee4c1 commit f4ee7d3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

images/tests/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Use the official Go image as a base image
2+
FROM golang:1.21
3+
4+
# Set the working directory inside the container
5+
WORKDIR /distributed-workloads
6+
7+
# Copy the go mod and sum files
8+
COPY go.mod go.sum ./
9+
10+
# Download all dependencies
11+
RUN go mod download && \
12+
go install gotest.tools/gotestsum@latest
13+
# go install github.com/jstemmer/go-junit-report/v2@latest
14+
15+
WORKDIR /distributed-workloads/tests
16+
17+
# Copy the source from the current directory to the working directory inside the container
18+
COPY tests/ .
19+
20+
# Command to run the tests
21+
ENTRYPOINT [ "gotestsum"]

0 commit comments

Comments
 (0)