https://github.com/eventstore/eventstore-client-grpc-testdata
Server container with pre-populated data set for testing Event Store gRPC Client SDKs
https://github.com/eventstore/eventstore-client-grpc-testdata
Last synced: 12 months ago
JSON representation
Server container with pre-populated data set for testing Event Store gRPC Client SDKs
- Host: GitHub
- URL: https://github.com/eventstore/eventstore-client-grpc-testdata
- Owner: EventStore
- Created: 2020-01-13T12:58:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-21T06:13:14.000Z (12 months ago)
- Last Synced: 2025-02-21T07:22:53.338Z (12 months ago)
- Language: Dockerfile
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 29
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Event Store gRPC Client Integration Test Container
This repository contains a known data set and Dockerfile to build a test container against which integration tests for Event Store gRPC-based clients can run.
The container is built automatically based on the version specified in the `Dockerfile`, and pushed to the GitHub Package Repository.
## Usage
The data set is located in `/var/lib/eventstore` in the image. Consequently, the same image can be used to provision either a new, blank, ephemeral database, or to start with the known data set.
For example, the following Docker Compose file is used for `EventStore-Client-Java` to start with the known data set:
```yaml
version: '3'
services:
eventstore:
image: ghcr.io/eventstore/testdata:ci
ports:
- 1113:1113/tcp
- 1114:1114/tcp
- 2113:2113/tcp
- 2114:2114/tcp
healthcheck:
interval: 1s
timeout: 1s
retries: 10
volumes:
- ./src/test/resources/server1.pfx:/opt/eventstore/certs/server1.pfx
environment:
EVENTSTORE_DB: /data/integration-tests
EVENTSTORE_CERTIFICATE_FILE: /opt/eventstore/certs/server1.pfx
EVENTSTORE_CERTIFICATE_PASSWORD: changeit
```
## Rebuilding
The Event Store Server image from which this test image is constructed has a source version specified in the `Dockerfile`, which should be modified when a new build is needed. To publish with GitHub actions, [run the action manually](https://github.com/EventStore/EventStore-Client-gRPC-TestData/actions/workflows/build.yml) and specify the base tag, e.g., `ci` or `21.10.0-buster-slim`.