TOSIT-IO / tdp-server

REST API for tdp-lib orchestration
2 stars 2 forks source link

feat: add docker container #85

Closed gboutry closed 1 year ago

gboutry commented 1 year ago

Which issue(s) this PR fixes

Fixes #84

Additional comments

Example on how to run this container:

podman run --env-file .env-c -v "..../tdp-ops:/tdp/ops:Z" -p 8000:8000 tdp_server

Example with docker:

docker run --env-file .env-c -v "..../tdp-ops:/tdp/ops" -p 8000:8000 tdp_server

Content of .env-c:

# TDP
TDP_COLLECTION_PATH=/tdp/ops/tdp/ansible/ansible_collections/tosit/tdp
TDP_RUN_DIRECTORY=/tdp/ops
TDP_VARS=/tdp/ops/inventory/tdp_vars
DATABASE_DSN=sqlite:////tmp/sqlite.db

OPENID_CONNECT_DISCOVERY_URL=http://172.168.20.24:8080/auth/realms/tdp_server/.well-known/openid-configuration
OPENID_CLIENT_ID=tdp_server
OPENID_CLIENT_SECRET=GHtUIK6AmWiyCOzdq1UMbCkIjCZl2l07

Agreements