Sign inSign up

fic2/ocdb

By fic2

Updated almost 11 years ago

Open CIty Database by Fraunhofer FOKUS

Image
0

325

fic2/ocdb repository overview

Docker image for the Open City Database by Fraunhofer Fokus

This directory contains a Dockerfile of OCDB.

Usage

The ocdb endpoint is exposed internally on the port 443. The webservice can be launched and made accessible on the host's port 8080 with the command:

docker run -d -p 8080:443 fic2/ocdb:latest

You can now test the service by opening in your browser: https://localhost:8080/v1/frontend/index.html

The service API can be consumed with:

curl -k -X GET 'https://localhost:8080/v1/cities' -H 'Accept: application/json'
Use specific ssl certificates

During the launch process, a random ssl certificate is created. Overwriting the /root/.ocdb directory allows to inject private certificates:

docker run -d -p 8080:443 -v  -v "/tmp:/root/.ocdb" fic2/ocdb:latest

The directory must follow this naming convention:

root@af8beaea4e69:~/ocdb# ls /root/.ocdb/
cert.pem  csr.pem  key.pem
Docker image build

To build your own version, go to the GitHub repository for the OCDB Dockerfile

Tag summary

Content type

Image

Digest

sha256:fdb268d70

Size

343.7 MB

Last updated

almost 11 years ago

docker pull fic2/ocdb