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

Default to current project when using docker-compose #38

Open
kgiglia opened this issue Sep 1, 2020 · 0 comments
Open

Default to current project when using docker-compose #38

kgiglia opened this issue Sep 1, 2020 · 0 comments

Comments

@kgiglia
Copy link

kgiglia commented Sep 1, 2020

We use this image alongside a couple others via docker-compose, and our config for every job currently has to include "project": "project-name".

Could project default to the name of the project that the Cron container is a part of?

I know the project name can be determined with something like the following from within the Cron container:

docker inspect -f '{{index .Config.Labels "com.docker.compose.project"}}' $HOSTNAME
roverwolf added a commit to opensalt/docker-crontab that referenced this issue Jan 22, 2021
- add environment substitution for the project field
- add a CRONTAB_PROJECT environment variable to allow reference to the
  project that the crontab container is running in

Related to willfarrell#38
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

No branches or pull requests

1 participant