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:
Andrea Spacca 2021-12-11 20:47:40 +01:00 committed by GitHub
parent dbb4a69bdd
commit 26814db8d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 2 deletions

View file

@ -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

View file

@ -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'

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: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

View 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