anadimisra / pipeline-jumpstarter-chef

IAC automation to jumpstart Continuous Deployment Pipeline using Jenkins, SonarQube, Nexus, Docker & Chef
GNU General Public License v3.0
0 stars 0 forks source link

Jenkins and Nexus containers fail to start #2

Closed anadimisra closed 6 years ago

anadimisra commented 6 years ago

Describe the bug The docker compose file uses extenral volumes at /var/lib/jenkins and /opt/sonatype-work/data for jenkins_home and nexus3 data respectively. These directories are owned by the root user and docker daemon is running under root. however the Docker and Nexus containers fail to start because of insufficient write privilege on their respective volumes.

To Reproduce Steps to reproduce the behavior:

  1. Go to deploy/vitrualbox
  2. run vagrapt up or vagrant provision
  3. See error (truncated)
    ==> provisioner: nexus_1      | Warning:  Cannot open log file: ../sonatype-work/nexus3/log/jvm.log
    ==> provisioner:
    ==> provisioner: nexus_1      | Warning:  Forcing option -XX:LogFile=/tmp/jvm.log
    ==> provisioner:
    ==> provisioner: opt_jenkins_1 exited with code 1

Expected behavior Should start Docker and Nexus containers

Desktop (please complete the following information):

anadimisra commented 6 years ago

fixed in commit 66b70598c01b9f7c84fe17cb8238511d01653938