20 lines
646 B
Docker
20 lines
646 B
Docker
FROM golang:1.24-alpine
|
|
RUN apk add --no-cache ca-certificates git
|
|
WORKDIR /app
|
|
|
|
# Install gotestsum for JUnit XML output
|
|
RUN go install gotest.tools/gotestsum@latest
|
|
|
|
COPY . .
|
|
|
|
# Generate go.mod from source imports (go.mod is not checked in so that
|
|
# different developer Go versions don't fight over the go directive).
|
|
RUN go mod init floci-sdk-test-go && go mod tidy && go mod download
|
|
|
|
ENV FLOCI_ENDPOINT=http://floci:4566
|
|
ENV AWS_ACCESS_KEY_ID=test
|
|
ENV AWS_SECRET_ACCESS_KEY=test
|
|
ENV AWS_DEFAULT_REGION=us-east-1
|
|
|
|
ENTRYPOINT ["gotestsum", "--format", "testname", "--junitfile", "/results/junit.xml", "./tests/...", "./internal/testutil/..."]
|