Files
spoolman2/tests_integration/docker-compose-cockroachdb.yml
Donkie 205574fa2c Fixed timezone being returned incorrectly
Happened if you've set TZ to non-UTC.

Apparently astimezone and replace doesn't do the same thing even if tzinfo is None.
2023-10-02 21:36:50 +02:00

42 lines
943 B
YAML

version: '3.9'
services:
db:
image: cockroachdb/cockroach:v23.1.2
command: start-single-node --insecure
environment:
- COCKROACH_USER=john
- COCKROACH_DATABASE=spoolman
- TZ=Asia/Seoul
healthcheck:
test:
[
"CMD",
"curl",
"-f",
"http://localhost:8080/health?ready=1"
]
interval: 5s
timeout: 10s
retries: 5
spoolman:
image: donkie/spoolman:test
environment:
- SPOOLMAN_DB_TYPE=cockroachdb
- SPOOLMAN_DB_HOST=db
- SPOOLMAN_DB_PORT=26257
- SPOOLMAN_DB_NAME=spoolman
- SPOOLMAN_DB_USERNAME=john
- SPOOLMAN_LOGGING_LEVEL=INFO
- TZ=Europe/Stockholm
depends_on:
db:
condition: service_healthy
tester:
image: donkie/spoolman-tester:latest
volumes:
- ./tests:/tester/tests
environment:
- DB_TYPE=cockroachdb
depends_on:
- spoolman