You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker set environment variables (from Dockerfile ENV and docker-compose environment) are currently not visible in the environment of a cron job process.
We need to figure out a way to pass them correctly to cron jobs/etc. We could write to /etc/profile.d/docker-environment.sh, similar to how we handle secrets' conversion:
We needed VIRTUAL_HOST to be exposed to our cron jobs (because we run some tasks that need to build absolute URLs) so we used this workaround in docksal.yml:
It seems the problem is that we have a crontab calling bash, which loads ~/.profile which calls /opt/ping-web.sh but without the WEB_KEEPALIVE environment variable being set so the script calls curl in a loop.
Docker set environment variables (from Dockerfile
ENV
and docker-composeenvironment
) are currently not visible in the environment of a cron job process.We need to figure out a way to pass them correctly to cron jobs/etc. We could write to
/etc/profile.d/docker-environment.sh
, similar to how we handle secrets' conversion:service-cli/7.3/startup.sh
Lines 107 to 108 in 113ca9f
References:
Related issues: #128 , #187, docksal/docksal#1401
The text was updated successfully, but these errors were encountered: