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
I got a setup where a webhook script executes docker-compose and uses a custom compose file inside the same directory. So my script looks like:
#!/bin/bash
DIR=$(dirname $0)
cd $DIR
docker-compose -f ./docker-compose-staging.yml ps
docker-compose -f ./docker-compose-staging.yml pull
docker-compose -f ./docker-compose-staging.yml up -d --force-recreate
With version 1.8.0 of webhookd, the script executes just fine. With any later version (e.g. v1.9.0), docker-compose always reports that it is unable to find the specified compose file. This is even the case when I declare the whole path to the compose file inside the container, by e.g. docker-compose -f /scripts/tmp/docker-compose-staging.yml ps.
The text was updated successfully, but these errors were encountered:
last Docker image use this script as a wrapper command for Docker Compose (in order to reduce the image size). This script will use Compose Docker image (Docker in Docker). In order to mount the file in the container, you must therefore specify the location of the Compose file on the host.
Note the COMPOSE_OPTIONS env variable. This variable is used by the script to add options to docker-compose command.
You can then simplify your script in this way:
Watch out for differences in the execution environment (user, variables, etc.) between your user context and webhookd's context. Specially (but not restricted to) PATH variable, ie. provide full path for docker-compose.
I got a setup where a webhook script executes docker-compose and uses a custom compose file inside the same directory. So my script looks like:
With version 1.8.0 of webhookd, the script executes just fine. With any later version (e.g. v1.9.0), docker-compose always reports that it is unable to find the specified compose file. This is even the case when I declare the whole path to the compose file inside the container, by e.g.
docker-compose -f /scripts/tmp/docker-compose-staging.yml ps
.The text was updated successfully, but these errors were encountered: