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
{{ message }}
This repository has been archived by the owner on Apr 26, 2019. It is now read-only.
+1 this is very annoying, stdout is where we want our logs in most situations with docker.
@bdpiparva : you can work around this buy building your own container FROM this image, and overriding the entrypoint with a custom script that starts the agent, and then tails the log:
#!/bin/bash
function stop()
{
echo "Stopping GoCD Agent..."
kill $gocd_pid
kill $tail_pid
echo "Stopped."
exit 0
}
function start() {
echo "Starting GoCD Agent..."
./docker-entrypoint.sh &
gocd_pid=$!
sleep 3
# Change this to a different log file if theres something else you want to log
tail -f /go/go-agent-bootstrapper.out.log &
tail_pid=$!
echo "Started (GoCD: $gocd_pid, LogTail: $tail_pid)."
}
trap stop TERM INT SIGHUP
start
wait $gocd_pid
I think that 2b7c7c2 is changing the behavior so everything should get to stdout, but I don't know when it will be released. I guess september from new version in changelog (17.9.0).
This issue is opened in favor of Configure logging drivers
The text was updated successfully, but these errors were encountered: