mirror of
https://github.com/versity/versitygw.git
synced 2026-01-06 03:44:51 +00:00
Adds a GitHub Actions workflow to run the `host-style` tests inside Docker containers. The tests are executed in a Docker environment using `Docker Compose` with three containers: one for running the tests, one for setting up the server, and one using the `dnsmasq` image for `DNS` server configuration.
28 lines
430 B
Docker
28 lines
430 B
Docker
FROM golang:latest
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod ./
|
|
RUN go mod download
|
|
|
|
COPY ./ ./
|
|
|
|
WORKDIR /app/cmd/versitygw
|
|
ENV CGO_ENABLED=0
|
|
RUN go build -o versitygw
|
|
|
|
FROM alpine:latest
|
|
|
|
# These arguments can be overriden when building the image
|
|
ARG IAM_DIR=/tmp/vgw
|
|
ARG SETUP_DIR=/tmp/vgw
|
|
|
|
RUN mkdir -p $IAM_DIR
|
|
RUN mkdir -p $SETUP_DIR
|
|
|
|
COPY --from=0 /app/cmd/versitygw/versitygw /app/versitygw
|
|
|
|
WORKDIR /app
|
|
|
|
ENTRYPOINT [ "/app/versitygw" ]
|