gmacario / easy-build

Collection of Dockerfiles for building embedded software distributions
Mozilla Public License 2.0
154 stars 83 forks source link

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

Closed gmacario closed 8 years ago

gmacario commented 8 years ago

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?

gmacario commented 8 years ago

Testing feature at https://github.com/gmacario/easy-build/pull/207

gmacario commented 8 years ago

@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.

gmacario commented 8 years ago

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.