This directory contains a Dockerfile of OCDB.
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'
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
To build your own version, go to the GitHub repository for the OCDB Dockerfile
Content type
Image
Digest
sha256:fdb268d70…
Size
343.7 MB
Last updated
almost 11 years ago
docker pull fic2/ocdb