Add CockroachDB CI testing (#140)

This commit is contained in:
Kavin 2021-12-11 13:20:59 -07:00 committed by GitHub
parent 26814db8d9
commit bf58a22fe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 0 deletions

View file

@ -14,6 +14,7 @@ jobs:
docker-compose-file:
- docker-compose.yml
- testing/docker-compose.hsqldb.yml
- testing/docker-compose.cockroachdb.yml
steps:
- uses: actions/checkout@v2.4.0
with:

View file

@ -0,0 +1,18 @@
# The port to Listen on.
PORT: 8080
# Proxy
PROXY_PART: https://pipedproxy-ams.kavin.rocks
# Public API URL
API_URL: https://pipedapi.kavin.rocks
# Public Frontend URL
FRONTEND_URL: https://piped.kavin.rocks
# Hibernate properties
hibernate.connection.url: jdbc:postgresql://cockroachdb:26257/defaultdb?sslmode=disable
hibernate.connection.driver_class: org.postgresql.Driver
hibernate.dialect: org.hibernate.dialect.CockroachDB201Dialect
hibernate.connection.username: root
hibernate.connection.password: root

View file

@ -0,0 +1,11 @@
services:
piped:
image: 1337kavin/piped:latest
restart: unless-stopped
ports:
- "127.0.0.1:8080:8080"
volumes:
- ./config.cockroachdb.properties:/app/config.properties
cockroachdb:
image: cockroachdb/cockroach:latest-v21.2
command: start-single-node --insecure