gmacario/easy-build

build-yocto-genivi: Configure for go.genivi.org server

gmacario opened this issue · 3 comments

From @gunnarx comment on GENIVI TOOL-34

The host name of the go-server in /etc/default/go-agent could be made permanent in the next version and maybe even make the go-agent the entrypoint?

Testing feature at #207

@gunnarx,

Since Docker image gmacario/build-yocto-genivi is first of all a tool to build YGB and GDP from the command line (with or without a CI/CD tool), I would not hardcode its behaviour as a go-agent to go.genivi.org.

Alternatively, I have added a script inside the image which may be run to do exactly what you have requested:

$ docker run -d --user=go \
   --hostname=my-genivigo-testagent \
   --workdir=/var/lib/go-agent \
   gmacario/build-yocto-genivi /usr/local/bin/run-gocd-agent.sh

If you have an idea about how to make the script more useful or customizable, you are welcome to send a PR.

The command above has been successfully tested to run agents for http://go.genivi.org/

From my understanding the requested feature is implemented, please reopen a new issue if you disagree.