3dcitydb / citydb-tool

3D City Database 5.0 CLI to import/export city model data and to run database operations
Apache License 2.0
9 stars 2 forks source link

Docker #4

Closed BWibo closed 9 months ago

BWibo commented 9 months ago

This used to be #3.

This PR adds a build workflow and Dockerfile for a Docker image for the citydb-tool.

Features

Synopsis

docker run --rm --name citydb-tool [-i -t] \
    [-e CITYDB_HOST=the.host.de] \
    [-e CITYDB_PORT=5432] \
    [-e CITYDB_NAME=theDBName] \
    [-e CITYDB_SCHEMA=theCityDBSchemaName] \
    [-e CITYDB_USERNAME=theUsername] \
    [-e CITYDB_PASSWORD=theSecretPass] \
    [-v /my/data/:/data] \
  3dcitydb/citydb-tool[:TAG] COMMAND
clausnagel commented 9 months ago

I added auto-provisioning to the Gradle script in the main branch. Please check whether using a Java 17 base image works now. A Java 11 SDK for building the source should be automatically downloaded. This requires an internet connection, of course.

BWibo commented 9 months ago

@clausnagel I can confirm the build now works with JDK17 as baseimage.