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 was archived by the owner on Apr 26, 2019. It is now read-only.
...however when I run jobs using this image, my scripts haven't been run, and the environment variables aren't set.
Questions:
Am I configuring the right file? (/etc/default/go-agent)
Am I running without service_mode? I suppose I am (?) — and then my guess (judging from /go-agent/agent.sh) is that maybe my file won't be loaded:
$ grep "/etc/default" -B 1 -A 5 /go-agent/agent.sh
if [ "$2"=="service_mode" ];thenif [ -f /etc/default/${SERVICE_NAME} ];then. /etc/default/${SERVICE_NAME}fi# no point in not daemonizing the service
DAEMON=Y
fi
If that's the case, is there another way I should be telling the gocd agent to run my files for setting environment variables etc?
What I'd like to do:
Run scripts that set environment variables, which become available to my agents.
Steps I've done:
gocd/gocd-agent-docker-dindspecifically)./etc/profile.d/, for example this one:/etc/default/go-agentfile, and have it load/etc/profile:$ cat /etc/default/go-agent . /etc/profile/etc/profilein turn should load the files in/etc/profile.d:...however when I run jobs using this image, my scripts haven't been run, and the environment variables aren't set.
Questions:
/etc/default/go-agent)service_mode? I suppose I am (?) — and then my guess (judging from/go-agent/agent.sh) is that maybe my file won't be loaded: