Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: read config dir from P2G_CONFIG environment variable #680

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DinoChiesa
Copy link

This introduces a new environment variable , which tells the console/headless image where it can read the configuration file.
This is handy when running the unmodified image in a serverless container engine like Google Cloud Run.

Using this feature with the docker image would look like this:

docker run --network=host -i \
    -v /path/to/secrets/headless-config.json:/app/mounted-config/configuration.local.json \
    -v /path/to/host/output:/app/output \
    -e P2G_CONFIG=/app/mounted-config \
    docker.io/library/p2g-console-modified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant