mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add YugabyteDB CI testing. (#141)
This commit is contained in:
parent
bf58a22fe9
commit
42b3e6dab5
4 changed files with 60 additions and 0 deletions
1
.github/workflows/docker-build-test.yml
vendored
1
.github/workflows/docker-build-test.yml
vendored
|
@ -15,6 +15,7 @@ jobs:
|
||||||
- docker-compose.yml
|
- docker-compose.yml
|
||||||
- testing/docker-compose.hsqldb.yml
|
- testing/docker-compose.hsqldb.yml
|
||||||
- testing/docker-compose.cockroachdb.yml
|
- testing/docker-compose.cockroachdb.yml
|
||||||
|
- testing/docker-compose.yugabytedb.yml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2.4.0
|
||||||
with:
|
with:
|
||||||
|
|
18
testing/config.yugabytedb.properties
Normal file
18
testing/config.yugabytedb.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://yb-tserver:5433/yugabyte
|
||||||
|
hibernate.connection.driver_class: org.postgresql.Driver
|
||||||
|
hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
|
||||||
|
hibernate.connection.username: yugabyte
|
||||||
|
hibernate.connection.password: yugabyte
|
|
@ -6,6 +6,8 @@ services:
|
||||||
- "127.0.0.1:8080:8080"
|
- "127.0.0.1:8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.cockroachdb.properties:/app/config.properties
|
- ./config.cockroachdb.properties:/app/config.properties
|
||||||
|
depends_on:
|
||||||
|
- cockroachdb
|
||||||
cockroachdb:
|
cockroachdb:
|
||||||
image: cockroachdb/cockroach:latest-v21.2
|
image: cockroachdb/cockroach:latest-v21.2
|
||||||
command: start-single-node --insecure
|
command: start-single-node --insecure
|
||||||
|
|
39
testing/docker-compose.yugabytedb.yml
Normal file
39
testing/docker-compose.yugabytedb.yml
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
services:
|
||||||
|
piped:
|
||||||
|
image: 1337kavin/piped:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:8080:8080"
|
||||||
|
volumes:
|
||||||
|
- ./config.yugabytedb.properties:/app/config.properties
|
||||||
|
depends_on:
|
||||||
|
- yb-tserver
|
||||||
|
yb-master:
|
||||||
|
image: yugabytedb/yugabyte:latest
|
||||||
|
command:
|
||||||
|
[
|
||||||
|
"/home/yugabyte/bin/yb-master",
|
||||||
|
"--fs_data_dirs=/mnt/master",
|
||||||
|
"--master_addresses=yb-master:7100",
|
||||||
|
"--rpc_bind_addresses=yb-master:7100",
|
||||||
|
"--replication_factor=1"
|
||||||
|
]
|
||||||
|
environment:
|
||||||
|
SERVICE_7000_NAME: yb-master
|
||||||
|
yb-tserver:
|
||||||
|
image: yugabytedb/yugabyte:latest
|
||||||
|
command:
|
||||||
|
[
|
||||||
|
"/home/yugabyte/bin/yb-tserver",
|
||||||
|
"--fs_data_dirs=/mnt/tserver",
|
||||||
|
"--start_pgsql_proxy",
|
||||||
|
"--rpc_bind_addresses=yb-tserver:9100",
|
||||||
|
"--tserver_master_addrs=yb-master:7100"
|
||||||
|
]
|
||||||
|
environment:
|
||||||
|
SERVICE_5433_NAME: ysql
|
||||||
|
SERVICE_9042_NAME: ycql
|
||||||
|
SERVICE_6379_NAME: yedis
|
||||||
|
SERVICE_9000_NAME: yb-tserver
|
||||||
|
depends_on:
|
||||||
|
- yb-master
|
Loading…
Reference in a new issue