mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add CockroachDB CI testing (#140)
This commit is contained in:
parent
26814db8d9
commit
bf58a22fe9
3 changed files with 30 additions and 0 deletions
1
.github/workflows/docker-build-test.yml
vendored
1
.github/workflows/docker-build-test.yml
vendored
|
@ -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:
|
||||
|
|
18
testing/config.cockroachdb.properties
Normal file
18
testing/config.cockroachdb.properties
Normal 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
|
11
testing/docker-compose.cockroachdb.yml
Normal file
11
testing/docker-compose.cockroachdb.yml
Normal 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
|
Loading…
Reference in a new issue