Tag: go cd

getting java.net.UnknownHostException while running GOCD docker container in QNAP

I am trying to run gocd docker container (https://hub.docker.com/r/gocd/gocd-server/) on QNAP (TS-451 x86 based, firmware 4.2.0) in container station. container doesn’t’ start and bombs out with java.net.UnknownHostException: May 21 20:21:28 gocd-server-1 syslog-ng[16]: syslog-ng starting up; version=’3.5.3′ using default settings from /etc/default/go-server ERROR: Failed to start Go server. Please check the logs. java.lang.RuntimeException: gocd-server-1: gocd-server-1 at […]

gocd docker container not sving pipelines

I’m trying to setup GoCD using the GoCD-Server docker container https://hub.docker.com/r/gocd/gocd-server/ I’m mounting the volumes as they suggest to: docker run -v /Users/me/LocalDocuments/gocd/godata:/godata -v /Users/me/LocalDocuments/gocd/home/go:/home/go -p8153:8153 -p8154:8154 gocd/gocd-server but pipelines (or anything else) aren’t saving to the folders mounted and they are not persisted when I shutdown the container.

Go-CD won't npm install

I have a Go-CD instance running inside a Docker container. I have the agent also setup in a separate container and it’s connecting and running the pipeline fine. The issue is it won’t install any packages! I have set the working dir to the directory I want – and using pwd confirms the dir is […]

What are the correct Permissions for docker in docker as another user?

I’m trying to enable my docker instance to build other docker images from a CI server. My agent spins up a container, and i have my macs docker.sock mounted into the container. /var/run/docker.sock:/var/run/docker.sock When inside the container and running as root, i am able to download and run containers: root@b6da92395273:/godata/pipelines# docker run helloworld 019300c8a437: Pull […]

How do i enable docker logs for gocd-server?

I have successfully built a docker deployment using gocd-server and gocd-agents from DockerHub. However, when i start them using docker-compose – i dont see any active session logging – only init logging. **How do i tell gocd-server to be more verbose, or to write to stdout so docker logs can display the output? ** IE: […]

How do get GoCD server to run persistently in Docker to run in a VM?

I am trying to run GoCD server in Docker in a VM. To test the setup I created an Ubuntu 14.04 server in VirtualBox, installed Docker, and then following instructions from https://github.com/gocd/gocd-docker & https://hub.docker.com/r/gocd/gocd-server/ I ran: docker run -tiP gocd/gocd-server This works, but the problem is that if I close the terminal (which I’ll have […]

Deployment of new version to containers

I’m running a CoreOS cluster on AWS. On each instance in AWS I run a docker container. For instance I have 2 instances named API which run a docker image with our latest software version. I also have 6 proccessors instances that run another docker image with the latest version. I want to update every […]

Couldn't resolve host within docker container and java process

I am facing an issue running a docker image based on alpine linux that runs a java process (GoCD server). The java process itself tries to run some code to clone a git repository locally however I am getting a Couldn’t resolve host exception. I tried to manually clone the git repo from within the […]

Where does go job take the environment variables from?

When I execute the printenv command on the go-agent go@05f749b73185:/tmp$ printenv HOSTNAME=05f749b73185 SHELL=/bin/bash USER=go LS_COLORS= MAVEN_VERSION=3.3.9 MAIL=/var/mail/go PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games MAVEN_HOME=/usr/share/maven PWD=/tmp JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ LANG=en_US.UTF-8 HOME=/var/go SHLVL=2 LOGNAME=go LC_CTYPE=en_US.UTF-8 LESSOPEN=| /usr/bin/lesspipe %s LESSCLOSE=/usr/bin/lesspipe %s %s _=/usr/bin/printenv But when I execute the printenv command from inside a job i get this result 06:57:26.482 [go] Start to execute task: <exec […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.