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 #3

Closed BWibo closed 9 months ago

BWibo commented 9 months ago

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

Features

BWibo commented 9 months ago

@clausnagel I don't have any rights on this repo jet. That's why the PR is coming from a fork.

@clausnagel @yaozhihang @thomashkolbe

The image works the same way the old impexp image did:

docker run --rm --name impexp [-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

You can use these images for testing already:

There are some points to discuss:

clausnagel commented 9 months ago

Hi @BWibo, thanks for this PR. I try to answer all your questions below.

yaozhihang commented 9 months ago

The docker image build and running the citydb-tool work very nice in my tests on a WIN10 PC.

BWibo commented 9 months ago

From my side this is ready. I added a workflow to build release images too. To make it work, we need to use versioning conforming to semver. E.g. 0.5.0-beta, 0.5.0

It works like this:

Note: The workflow does not apply to existing tags. So we need to create a new release to build a first release image.

BWibo commented 9 months ago

Ah wait, there is one small thing to fix.

BWibo commented 9 months ago

@clausnagel @yaozhihang Oh damn, I just accidentally pushed to main. Two remotes are the core of all evil! ;-) I force pushed main back to where I believe it was. Can you please check it's the correct commit? And sry.

BWibo commented 9 months ago

I could not manage to re-open this. It is now: #4