thecodingmachine / docker-images-php

A set of PHP Docker images
MIT License
768 stars 137 forks source link

Supercronic does not inherit env variables #352

Closed necmettin closed 1 year ago

necmettin commented 1 year ago

Expected Behavior

Supercronic should inheric ENV variables

Current Behavior

Supercronic does not inherit ENV variables

Possible Solution

Steps to Reproduce (for bugs)

  1. Set an ENV variable var: testing in your Dockerfile.
  2. Create cronjob to echo $var
  3. Output does not include the testing word. Sample output:
    time="2023-01-08T16:24:59+03:00" level=info msg=starting iteration=9 job.command="echo " job.position=0 job.schedule="* * * * *"
    time="2023-01-08T16:25:00+03:00" level=info channel=stdout iteration=9 job.command="echo " job.position=0 job.schedule="* * * * *"
    time="2023-01-08T16:25:00+03:00" level=info msg="job succeeded" iteration=9 job.command="echo " job.position=0 job.schedule="* * * * *"

Context

I'm trying to send certain variables to PHP and Supercronic. For example, a database URL. ENV is sent to PHP processes, but not to supercronic.

Your Environment

docker-compose.yml.txt

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please update it if any action still required.

necmettin commented 1 year ago

Guess I need to ping this?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please update it if any action still required.

stale[bot] commented 1 year ago

This issue has been automatically closed because it has not had recent activity. Please, reopen if you need.