diff options
| author | chrislu <chris.lu@gmail.com> | 2025-06-23 10:55:02 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-06-23 10:55:02 -0700 |
| commit | 0347212b6417074cd6727c3981ee5f54f5373206 (patch) | |
| tree | 826a36445ba497b7afbe767c2989e61bbe37df0b /test/mq/Dockerfile.test | |
| parent | 7324cb71717f87cd0cc957d983d2ad2e0ca82695 (diff) | |
| download | seaweedfs-0347212b6417074cd6727c3981ee5f54f5373206.tar.xz seaweedfs-0347212b6417074cd6727c3981ee5f54f5373206.zip | |
init version
Diffstat (limited to 'test/mq/Dockerfile.test')
| -rw-r--r-- | test/mq/Dockerfile.test | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/mq/Dockerfile.test b/test/mq/Dockerfile.test new file mode 100644 index 000000000..dfd6b799c --- /dev/null +++ b/test/mq/Dockerfile.test @@ -0,0 +1,37 @@ +FROM golang:1.21-alpine + +# Install necessary tools +RUN apk add --no-cache \ + curl \ + netcat-openbsd \ + bash \ + git \ + build-base + +# Set working directory +WORKDIR /app + +# Copy go mod files first for better caching +COPY go.mod go.sum ./ +RUN go mod download + +# Copy the entire source code +COPY . . + +# Install test dependencies +RUN go install github.com/onsi/ginkgo/v2/ginkgo@latest +RUN go install github.com/stretchr/testify@latest + +# Build the weed binary for testing +RUN go build -o weed weed/weed.go + +# Create test results directory +RUN mkdir -p /test-results + +# Set up environment +ENV CGO_ENABLED=1 +ENV GOOS=linux +ENV GO111MODULE=on + +# Entry point for running tests +ENTRYPOINT ["/bin/bash"]
\ No newline at end of file |
