Hello,
I finally decided to see if Trellis runs on my machine using docker-compose.
I started with the example compose yaml configuration, but changed it to use the Quarkus based database app and, following the list of environment variables, ended up with:
version: "3"
services:
trellis:
image: trellisldp/trellis-database:latest
environment:
# QUARKUS_DATASOURCE_DRIVER: org.postgresql.Driver
QUARKUS_DATASOURCE_URL: "jdbc:postgresql://trellisdb:5432/trellisdb"
QUARKUS_DATASOURCE_USERNAME: trellis
QUARKUS_DATASOURCE_PASSWORD: changeme
QUARKUS_FLYWAY_MIGRATE_AT_START: "true"
ports:
- 8088:8080
depends_on:
- trellisdb
volumes:
- /Users/companjenba/trellis/data:/opt/trellis/data
- /Users/companjenba/trellis/log:/opt/trellis/log
# Please see note below about the ./etc directory
- /Users/companjenba/trellis/conf:/opt/trellis/etc
trellisdb:
image: postgres
environment:
POSTGRES_DB: trellisdb
POSTGRES_PASSWORD: changeme
POSTGRES_USER: trellis
PGDATA: /var/lib/postgresql/data/pgdata/mydata
volumes:
- /Users/companjenba/trellis/database:/var/lib/postgresql/data/pgdata/mydata
I put the default config.yml in the directory mounted to /opt/trellis/etc, decided that the config looked okay and ran `docker-compose up -d`.
However, the trellis service fails with the message: Driver does not support the provided URL: jdbc:postgresql://trellisdb:5432/trellisdb
https://github.com/agroal/agroal/blob/master/agroal-pool/src/main/java/io/agroal/pool/ConnectionFactory.java#L215 is the line that throws the exception.
It looks like the connection is null, but I'm not sure why. Incorrect credentials? I checked.
Does this situation look familiar to anyone? What am I missing?
Thanks for all the hard work!
Regards,
Ben
Ben Companjen
Digital Scholarship Librarian
Centre for Digital Scholarship
Leiden University Libraries (UBL)
Web https://www.universiteitleiden.nl/en/staffmembers/ben-companjen
--
You received this message because you are subscribed to the Google Groups "Trellis LDP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trellis-ldp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trellis-ldp/4A82197E-B74D-4E9E-ABE1-A930424779EA%40library.leidenuniv.nl.
Hi Aaron,
Thanks for your help, but it didn't solve it. In fact, I did have the environment variable set before.
I put the Compose file and the log of trying to start in a Gist: https://gist.github.com/bencomp/d31c3bf0f3b81aabab1d98d847245686
According to the JDBC API, a Driver should indeed return null when it doesn't understand the JDBC URL, even though the URL I use should be supported by the PostgreSQL JDBC driver.
I would love more examples of running Trellis. I am very impressed by the build quality of the project, but have been struggling a bit to understand how to configure what components (and in which locations) to run the application. If I can help with documentation, please let me know.
Regards,
Ben
To view this discussion on the web visit
https://groups.google.com/d/msgid/trellis-ldp/CAD4uyLdgBgjv3LZ%3DEMeBC2X5--V018e9ZBTB8aOAHjtU9cF5qA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trellis-ldp/57ACDC1C-C4F9-4DDA-B3BF-605ED949648F%40library.leidenuniv.nl.
Hi Aaron,
After trying your suggestions I went looking for the configuration as well and came to the same conclusion (but had to sleep first). Thanks for your help in figuring this out!
To view this discussion on the web visit
https://groups.google.com/d/msgid/trellis-ldp/CAD4uyLeXxqYeqyYmh6cQaD4Mj%3DMrOS7BPPmNaSF7hEHptj4t3w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trellis-ldp/CAF84DC2-E342-462B-A9C8-A923059AE554%40library.leidenuniv.nl.
Hi Aaron,
That is great! I will try it out then.
Looking at the repository and PR 860 in particular, I think you meant to say the new image name will be trellis-postgresql, not trellis-postgres, didn't you?
I wanted to ask if you could update the Dockerized Trellis wiki page, as the main README mentions the
databasepostgresql image and refers to the wiki page, but the wiki page only builds on the trellis-ext-db image. I am not in a hurry and can create an issue for it as well if you like.
Groeten van Ben
To view this discussion on the web visit
https://groups.google.com/d/msgid/trellis-ldp/CAD4uyLeMfwv6tG-8P2ftMSCLcp0BkfzEmF6DGOV9QRj7K3Dqwg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trellis-ldp/AFD96DDD-BCEE-4C95-9273-681FDFC8ACEC%40library.leidenuniv.nl.