mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 00:10:31 +05:30
Add dependecies for hsqldb (#132)
* add dependecies for h2 db * Attempt to test h2 with docker-compose. * bump h2 to 2.0.202 * add dependecies for h2 db * use pgsql mode * switch to hsqldb * fix hibernate dialect Co-authored-by: FireMaskterK <20838718+FireMasterK@users.noreply.github.com>
This commit is contained in:
parent
dbb4a69bdd
commit
26814db8d9
9
.github/workflows/docker-build-test.yml
vendored
9
.github/workflows/docker-build-test.yml
vendored
@ -9,6 +9,11 @@ on:
|
||||
jobs:
|
||||
build-hotspot-test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
docker-compose-file:
|
||||
- docker-compose.yml
|
||||
- testing/docker-compose.hsqldb.yml
|
||||
steps:
|
||||
- uses: actions/checkout@v2.4.0
|
||||
with:
|
||||
@ -16,6 +21,6 @@ jobs:
|
||||
- name: Build Locally
|
||||
run: docker build . -t 1337kavin/piped:latest
|
||||
- name: Start Docker-Compose services
|
||||
run: docker-compose up -d && sleep 5
|
||||
run: docker-compose -f ${{ matrix.docker-compose-file }} up -d && sleep 5
|
||||
- name: Run tests
|
||||
run: ./api-test.sh
|
||||
run: ./testing/api-test.sh
|
||||
|
@ -31,6 +31,7 @@ dependencies {
|
||||
implementation 'io.activej:activej-boot:5.0'
|
||||
implementation 'io.activej:activej-specializer:5.0'
|
||||
implementation 'io.activej:activej-launchers-http:5.0'
|
||||
implementation 'org.hsqldb:hsqldb:2.6.1'
|
||||
implementation 'org.postgresql:postgresql:42.3.1'
|
||||
implementation 'org.hibernate:hibernate-core:5.6.1.Final'
|
||||
implementation 'org.hibernate:hibernate-hikaricp:5.6.1.Final'
|
||||
|
18
testing/config.hsqldb.properties
Normal file
18
testing/config.hsqldb.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:hsqldb:mem:memdb;sql.syntax_pgs=true
|
||||
hibernate.connection.driver_class: org.hsqldb.jdbcDriver
|
||||
hibernate.dialect: org.hibernate.dialect.HSQLDialect
|
||||
hibernate.connection.username: piped
|
||||
hibernate.connection.password: changeme
|
8
testing/docker-compose.hsqldb.yml
Normal file
8
testing/docker-compose.hsqldb.yml
Normal file
@ -0,0 +1,8 @@
|
||||
services:
|
||||
piped:
|
||||
image: 1337kavin/piped:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080"
|
||||
volumes:
|
||||
- ./config.hsqldb.properties:/app/config.properties
|
Loading…
x
Reference in New Issue
Block a user