Git Product home page Git Product logo

docker-ci-tool-stack's People

Contributors

akarsh avatar corcovadoming avatar eitsch avatar gmacario avatar guangrun avatar heyitsmozzie avatar hps-worldwide avatar javier-lopez avatar jonashackt avatar marcelbirkner avatar nezhar avatar pabagan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-ci-tool-stack's Issues

Maven 3.3.3 missing

After getting everything up, I wanted to run the build for selenium2-maven-project.
However, the following error occured:

Started by user anonymous
Building in workspace /var/jenkins_home/jobs/selenium2-maven-project/workspace

git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
git config remote.origin.url https://github.com/marcelbirkner/selenium2-maven-project # timeout=10
Fetching upstream changes from https://github.com/marcelbirkner/selenium2-maven-project
git --version # timeout=10
git -c core.askpass=true fetch --tags --progress https://github.com/marcelbirkner/selenium2-maven-project +refs/heads/:refs/remotes/origin/
Seen branch in repository origin/master
Seen 1 remote branch
Checking out Revision 4aadfe3492345cb007d7f0abd62749bfc8294a10 (origin/master)
git config core.sparsecheckout # timeout=10
git checkout -f 4aadfe3492345cb007d7f0abd62749bfc8294a10
git rev-list 4aadfe3492345cb007d7f0abd62749bfc8294a10 # timeout=10
Cleaning workspace
git rev-parse --verify HEAD # timeout=10
Resetting working tree
git reset --hard # timeout=10
git clean -fdx # timeout=10
Invalid tool ID 3.3.3
FATAL: Couldn’t find any executable in /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.3.3
Build step 'Invoke top-level Maven targets' marked build as failure
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
Finished: FAILURE

Given my limited understanding, I'd assume Maven 3.3.3 is not installed. Is there something I missed?

sonar doesn't start because of conection refused to database

steps for reproduce:
1 - install docker tools in windows
2 - do a compose up -d
3 - everything runs ok but sonar.

some output:

2016.04.06 10:57:01 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener
java.lang.IllegalStateException: Can not connect to database. Please check connectivity and settings (see the properties prefixed by 'sonar.jdbc.').
at org.sonar.core.persistence.DefaultDatabase.checkConnection(DefaultDatabase.java:117) ~[sonar-core-5.1.2.jar:na]
at org.sonar.core.persistence.DefaultDatabase.start(DefaultDatabase.java:73) ~[sonar-core-5.1.2.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45-internal]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45-internal]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45-internal]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45-internal]
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) ~[picocontainer-2.14.3.jar:na]
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) ~[picocontainer-2.14.3.jar:na]
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) ~[picocontainer-2.14.3.jar:na]
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) ~[picocontainer-2.14.3.jar:na]
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) ~[picocontainer-2.14.3.jar:na]
at org.picocontainer.behaviors.Stored.start(Stored.java:110) ~[picocontainer-2.14.3.jar:na]
at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1015) ~[picocontainer-2.14.3.jar:na]
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1008) ~[picocontainer-2.14.3.jar:na]
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:766) ~[picocontainer-2.14.3.jar:na]
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:91) ~[sonar-plugin-api-5.1.2.jar:na]
at org.sonar.server.platform.Platform.startLevel1Container(Platform.java:96) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.Platform.init(Platform.java:72) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:43) ~[sonar-server-5.1.2.jar:na]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4720) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) [tomcat-embed-core-8.0.18.jar:8.0.18]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_45-internal]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45-internal]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45-internal]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45-internal]
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.)
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549) ~[commons-dbcp-1.4.jar:1.4]
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388) ~[commons-dbcp-1.4.jar:1.4]
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) ~[commons-dbcp-1.4.jar:1.4]
at org.sonar.core.persistence.DefaultDatabase.checkConnection(DefaultDatabase.java:115) ~[sonar-core-5.1.2.jar:na]
... 27 common frames omitted
Caused by: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

Tried proxying jenkins.telemetry.Correlator to support a circular dependency, but it is not an interface.

Loading /var/jenkins_home/plugins/gitlab-hook/WEB-INF/classes/models/use_cases/create_project_for_branch.rb
Jan 28, 2019 12:10:56 AM hudson.plugins.ansicolor.PluginImpl start
INFO: AnsiColor: eliminating boring output (https://github.com/jenkinsci/ansicolor-plugin)
Jan 28, 2019 12:11:10 AM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Jan 28, 2019 12:11:10 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
WARNING: Failed to instantiate Key[type=jenkins.telemetry.Correlator, annotation=[none]]; skipping this component
com.google.inject.ProvisionException: Unable to provision, see the following errors:

  1. Tried proxying jenkins.telemetry.Correlator to support a circular dependency, but it is not an interface.

1 error
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:432)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:394)
at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:385)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:493)
at hudson.ExtensionList.load(ExtensionList.java:380)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:318)
at hudson.ExtensionList.getComponents(ExtensionList.java:183)
at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:192)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:318)
at hudson.ExtensionList.iterator(ExtensionList.java:172)
at hudson.model.User.load(User.java:212)
at hudson.model.User.(User.java:166)
at hudson.model.User.getOrCreate(User.java:537)
at hudson.model.User.getOrCreate(User.java:484)
at hudson.model.User.getById(User.java:673)
at hudson.model.User.get(User.java:656)
at hudson.model.User.current(User.java:640)
at hudson.plugins.jobConfigHistory.PluginUtils.isUserExcluded(PluginUtils.java:121)
at hudson.plugins.jobConfigHistory.JobConfigHistorySaveableListener.onChange(JobConfigHistorySaveableListener.java:55)
at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:81)
at hudson.model.Descriptor.save(Descriptor.java:874)
at jenkins.telemetry.Correlator.(Correlator.java:51)
at jenkins.telemetry.Correlator$$FastClassByGuice$$5678e8d6.newInstance()
at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:432)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:394)
at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:385)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:493)
at hudson.ExtensionList.load(ExtensionList.java:380)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:318)
at hudson.ExtensionList.iterator(ExtensionList.java:172)
at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1525)
at hudson.plugins.sonar.SonarGlobalConfiguration.migrate(SonarGlobalConfiguration.java:96)
at hudson.plugins.sonar.SonarPlugin.postInitialize(SonarPlugin.java:48)
at hudson.PluginManager$2$1$2.run(PluginManager.java:543)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1069)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Jan 28, 2019 12:11:11 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
INFO: Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping
Jan 28, 2019 12:11:11 AM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.configfiles.GlobalConfigFiles$1 in file:/var/jenkins_home/plugins/config-file-provider/WEB-INF/lib/config-file-provider.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
Jan 28, 2019 12:11:12 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
INFO: Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping
Jan 28, 2019 12:11:13 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Jan 28, 2019 12:11:13 AM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Jan 28, 2019 12:11:14 AM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Jan 28, 2019 12:11:15 AM jenkins.util.groovy.GroovyHookScript execute
INFO: Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy
Jan 28, 2019 12:11:15 AM hudson.model.AllView migrateLegacyPrimaryAllViewLocalizedName
INFO: JENKINS-38606 detected for AllView in hudson.model.Hudson@7ca55b70; renaming view from All to all
Jan 28, 2019 12:11:15 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Jan 28, 2019 12:11:17 AM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Jan 28, 2019 12:11:18 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Jan 28, 2019 12:11:24 AM hudson.model.UpdateSite updateData
INFO: Obtained the latest update center data file for UpdateSource default
Jan 28, 2019 12:11:25 AM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
Jan 28, 2019 12:11:25 AM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.tasks.Ant.AntInstaller
Jan 28, 2019 12:11:25 AM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.plugins.sonar.MsBuildSonarQubeRunnerInstaller
Jan 28, 2019 12:11:25 AM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.plugins.sonar.SonarRunnerInstaller
Jan 28, 2019 12:11:26 AM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.plugins.gradle.GradleInstaller
Jan 28, 2019 12:11:27 AM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.tools.JDKInstaller
Jan 28, 2019 12:11:27 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Download metadata. 12,206 ms
--> setting agent port for jnlp
--> setting agent port for jnlp... done
PXT7972TA13MAC:opt user$

Please if someone can help

thanks

ERROR: Service 'nexus' failed to build (/bin/sh: wget: command not found)

Hi,

when following this turorial at home everything works nice. But I'm stuck on Step 8 (see below) when doing it on a corporate machine behind a proxy.

I already configured proxy setting as described here: Docker FAQs. Searching and pulling images works, e.g. docker search ubuntu or docker run hello-world. I also tried what´s described in your Troubleshooting.md

My System: Windows 7, 64bit, DockerToolbox 1.11.1b

What does that error mean and how can I solve it?
Appreciate any help.

image

$ docker-compose up
Building nexus
Step 1 : FROM centos:6
 ---> ae6154bcd445
Step 2 : MAINTAINER Marcel Birkner <[email protected]>
 ---> Using cache
 ---> a48c92ef67ba
Step 3 : USER root
 ---> Using cache
 ---> 945bdcd112ec
Step 4 : RUN yum -y update;     yum clean all
 ---> Using cache
 ---> d01868d28486
Step 5 : RUN yum -y install java-1.7.0-openjdk-devel     which     telnet     unzip     openssh-server
    sudo     openssh-clients     iputils     iproute     httpd-tools     wget     tar;     yum clean al
l
 ---> Using cache
 ---> efd1c0f08775
Step 6 : ENV JAVA_HOME /usr/lib/jvm/jre
 ---> Using cache
 ---> 6bee3748b5d0
Step 7 : RUN mkdir -p /opt/sonatype-nexus /opt/sonatype-work
 ---> Using cache
 ---> 2b259741336e
Step 8 : RUN wget -O /tmp/nexus-latest-bundle.tar.gz http://download.sonatype.com/nexus/oss/nexus-2.12.
0-01-bundle.tar.gz
 ---> Running in 338c58376ec3
/bin/sh: wget: command not found
ERROR: Service 'nexus' failed to build: The command '/bin/sh -c wget -O /tmp/nexus-latest-bundle.tar.gz
 http://download.sonatype.com/nexus/oss/nexus-2.12.0-01-bundle.tar.gz' returned a non-zero code: 127```

Ubunut/Mint - Cannot start service jenkins - "rpc error: code = 2"

Problem:

On: docker-compose up

$ docker-compose up
Removing dockercitoolstack_jenkins_1
dockercitoolstack_sonardb_1 is up-to-date
dockercitoolstack_gitlab_1 is up-to-date
dockercitoolstack_seleniumhub_1 is up-to-date
dockercitoolstack_nexus_1 is up-to-date
dockercitoolstack_sonar_1 is up-to-date
dockercitoolstack_nodeff_1 is up-to-date
dockercitoolstack_nodechrome_1 is up-to-date
Recreating e793e66933eb_dockercitoolstack_jenkins_1

ERROR: for jenkins  Cannot start service jenkins: rpc error: code = 2 desc = "oci runtime error: could not synchronise with container process: not a directory"
ERROR: Encountered errors while bringing up the project.

Expected

Running stack

But got

ERROR: for jenkins  Cannot start service jenkins: rpc error: code = 2 desc = "oci runtime error: could not synchronise with container process: not a directory"
ERROR: Encountered errors while bringing up the project.

On system:

$ uname -a
Linux anon 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/lsb-release 
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18
DISTRIB_CODENAME=sarah
DISTRIB_DESCRIPTION="Linux Mint 18 Sarah"

$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="16.04 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

$ docker --version
Docker version 1.11.2, build b9f10c9

$ docker info
WARNING: No swap limit support
Containers: 43
 Running: 7
 Paused: 0
 Stopped: 36
Images: 403
Server Version: 1.11.2
Storage Driver: aufs
 Root Dir: /home/anon/.my_services/docker-data/aufs
 Backing Filesystem: extfs
 Dirs: 558
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: bridge null host
Kernel Version: 4.4.0-21-generic
Operating System: Ubuntu 16.04 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.58 GiB
Name: mesamint18
ID: 7LUB:OUUS:XBFD:VEB6:EZHE:SMZX:JGML:OJ7N:OLX2:YBHD:DGKA:IZHH
Docker Root Dir: /home/anon/.my_services/docker-data
Debug mode (client): false
Debug mode (server): false
Registry: https://index.docker.io/v1/

With repo at commit:

$ git log --decorate | head -n 5
commit f4f4a0d743c27ec6e69765d4ae920b28bd8df640 (HEAD -> master, origin/master, origin/HEAD)
Author: Marcel Birkner <[email protected]>
Date:   Mon Jul 25 08:44:48 2016 +0200

    duplicate volume entry for docker.sock

Cause:

'/usr/local/bin/docker' is a directory on the described system, not the docker binary

$ ls -la /usr/local/bin/docker
total 8
drwxr-xr-x 2 root root 4096 Aug  2 09:27 .
drwxr-xr-x 3 root root 4096 Aug  2 09:27 ..

$ file /usr/local/bin/docker
/usr/local/bin/docker: directory

'/usr/bin/docker' is the docker binary

$ file /usr/bin/docker
/usr/bin/docker: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=774135019a247820eae89976d765ed625aeb940b, not stripped

Solution

On Ubuntu 16.04 (or derived, like Mint 18), subsitute '/usr/local/bin/docker' for '/usr/bin/docker' at docker-compose.yml line 23

21: volumes:
22:   - /var/run/docker.sock:/var/run/docker.sock
23:   - /usr/bin/docker:/usr/bin/docker
24:   - /opt/jenkins/:/var/lib/jenkins/

Example run

$ cat -n docker-compose.yml | tail -n +21 | head -n 5
    21    volumes:
    22      - /var/run/docker.sock:/var/run/docker.sock
    23      - /usr/bin/docker:/usr/bin/docker
    24      - /opt/jenkins/:/var/lib/jenkins/
    25    depends_on:
$ docker-compose up
Removing dockercitoolstack_jenkins_1
dockercitoolstack_sonardb_1 is up-to-date
dockercitoolstack_gitlab_1 is up-to-date
dockercitoolstack_seleniumhub_1 is up-to-date
dockercitoolstack_nexus_1 is up-to-date
dockercitoolstack_sonar_1 is up-to-date
dockercitoolstack_nodeff_1 is up-to-date
dockercitoolstack_nodechrome_1 is up-to-date
Starting e793e66933eb_e793e66933eb_dockercitoolstack_jenkins_1
Attaching to dockercitoolstack_sonardb_1, dockercitoolstack_gitlab_1, dockercitoolstack_seleniumhub_1, dockercitoolstack_nexus_1, dockercitoolstack_sonar_1, dockercitoolstack_nodeff_1, dockercitoolstack_nodechrome_1, e793e66933eb_e793e66933eb_dockercitoolstack_jenkins_1
seleniumhub_1  | starting selenium hub with configuration:

Nexus url for releases is wrong

Hi Marcel,

This url http://nexus:8081/content/repositories/releases/ doesn't work.

The right one is http://nexus:8081/nexus/content/repositories/releases/

I think this commit was a little bit wild ;-)

Sonar not able to connect to Postgres

So I am setting this up for the second time. The first time it worked like a dream and that was about 4 months ago. it's a bit challenging to get it up and running. Here is the issue I am facing now:
When the Sonar container, it's not able to connect to SonarDB container. I initially had an issue with SonarDB starting as I was getting this error:

chmod: changing permissions of ‘/var/lib/postgresql/data’: Permission denied

I fixed the issue by updating the docker-compose.yml file by updating the volume mount section to the following (notice the :z at the end):

volumes:
    - /opt/postgres/data:/var/lib/postgresql/data:z

So now I am able to start the postgre container but I am still getting connectivity issue:

2016.10.06 05:20:11 INFO web[o.s.c.p.Database] Create JDBC datasource for jdbc:postgresql://sonardb:5432/sonar
2016.10.06 05:20:11 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener
java.lang.IllegalStateException: Can not connect to database. Please check connectivity and settings (see the properties prefixed by 'sonar.jdbc.').

I noticed then the docker-compose.yml file does not expose port 5432 on postgre container instead it doing so on the sonar container which did not make sense. I updated compose file to the following:

sonar:
  build: ./sonar
  ports:
   - "19000:9000"
   #- "5432:5432"
  networks:
    - prodnetwork
  depends_on:
    - sonardb
  environment:
   - SONARQUBE_JDBC_URL=jdbc:postgresql://sonardb:5432/sonar
 sonardb:
  ports:
   - "5432:5432"
  networks:
    - prodnetwork
  image: postgres
  environment:
   - POSTGRES_USER=sonar
   - POSTGRES_PASSWORD=sonar
  volumes:
    - /opt/postgres/data:/var/lib/postgresql/data:z

Unfortunately I am still getting the connectivity issue from Sonar container. The only I am thinking about is that the DB is not created in postgres container and thus unable to connect. Should this step be done manually?

Here is the environment I am running this on:
OS: Fedora 24
Docker:

[emc@cloud docker-ci-tool-stack]$ docker version
Client:
 Version:         1.10.3
 API version:     1.22
 Package version: docker-1.10.3-52.git8b7fa4a.fc24.x86_64
 Go version:      go1.6.3
 Git commit:      8b7fa4a/1.10.3
 Built:           
 OS/Arch:         linux/amd64

Server:
 Version:         1.10.3
 API version:     1.22
 Package version: docker-1.10.3-52.git8b7fa4a.fc24.x86_64
 Go version:      go1.6.3
 Git commit:      8b7fa4a/1.10.3
 Built:           
 OS/Arch:         linux/amd64

Docker Compose:

emc@cloud docker-ci-tool-stack]$ docker-compose version
docker-compose version 1.7.1, build 6c29830
docker-py version: 1.8.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j-fips  26 Sep 2016

Your help is greatly appreciated.
Cheers,
Mehdi

Subversion, it is possible ?

Hello,

I would like to try using docker-ci-tool-stack with my SVN repo on CollabNet. I tried to edit the groovy files, changing the git variable with my svn variable. However, at the jenkins compilation nothing changes. The jobs all include the link to the github.

Unsupported config option for services service: 'nodechrome'

docker compose-up
Unsupported config option for services service: 'nodechrome'
root@pmo:/home/sysmo/docker/docker-ci-tool-stack# docker-compose -v
docker-compose version: 1.3.1
CPython version: 2.7.10
OpenSSL version: OpenSSL 1.0.2d 9 Jul 2015

nodeff_1 and nodechrome_1 Connection refused

Today I in start the setup an I get the following errors:
nodechrome_1 | 12:52:52.184 INFO - Couldn't register this node: The hub is down or not responding: Connect to seleniumhub:80 [seleniumhub/172.19.0.4] failed: Connection refused
nodeff_1 | 12:52:52.235 INFO - Couldn't register this node: The hub is down or not responding: Connect to seleniumhub:80 [seleniumhub/172.19.0.4] failed: Connection refused

My environment is a macbook pro with the latest macOS and virtual box

I get frozen array errors from ruby code

[ec2-user@ip-10-105-0-181 docker-ci-tool-stack]$ docker-compose up
Building nexus
Step 1/19 : FROM centos:centos7
centos7: Pulling from library/centos
256b176beaff: Already exists
Digest: sha256:6f6d986d425aeabdc3a02cb61c02abb2e78e57357e92417d6d58332856024faf
Status: Downloaded newer image for centos:centos7
---> 5182e96772bf
Step 2/19 : MAINTAINER Sonatype [email protected]
---> Running in 15b4eb644374
Removing intermediate container 15b4eb644374
---> 3db538f548fb
Step 3/19 : LABEL vendor=Sonatype com.sonatype.license="Apache License, Version 2.0" com.sonatype.name="Nexus Repository Manager base image"
---> Running in 1ae89bd74a45
Removing intermediate container 1ae89bd74a45
---> d695dcf58a7b
Step 4/19 : ARG NEXUS_VERSION=3.6.1-02
---> Running in 326236c96a13
Removing intermediate container 326236c96a13
---> efb7e4dd73a3
Step 5/19 : ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz
---> Running in 6778f4f3551b
Removing intermediate container 6778f4f3551b
---> 00b9be63631b
Step 6/19 : ARG NEXUS_DOWNLOAD_SHA256_HASH=4a658996cf29ca2d4f9c8b3d3cff11bfc358d88f03495812d7814268f0b1259b
---> Running in 2b6fe4bb83ca
Removing intermediate container 2b6fe4bb83ca
---> 6e6a5c23ad09
Step 7/19 : ENV JAVA_HOME=/opt/java JAVA_VERSION_MAJOR=8 JAVA_VERSION_MINOR=152 JAVA_VERSION_BUILD=16 JAVA_DOWNLOAD_HASH=aa0333dd3019491ca4f6ddbe78cdb6d0
---> Running in 86c2a0162a40
Removing intermediate container 86c2a0162a40
---> 4caeed5aa01d
Step 8/19 : ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/server-jre-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz JAVA_DOWNLOAD_SHA256_HASH=e8a341ce566f32c3d06f6d0f0eeea9a0f434f538d22af949ae58bc86f2eeaae4
---> Running in 8f2812492717
Removing intermediate container 8f2812492717
---> b877fd78ebe3
Step 9/19 : ENV SONATYPE_DIR=/opt/sonatype
---> Running in ef8eef9e7d62
Removing intermediate container ef8eef9e7d62
---> 57e809c58f72
Step 10/19 : ENV NEXUS_HOME=${SONATYPE_DIR}/nexus NEXUS_DATA=/nexus-data NEXUS_CONTEXT='' SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work
---> Running in 249e8a77c5f0
Removing intermediate container 249e8a77c5f0
---> 36d7ebd8cb3c
Step 11/19 : ARG NEXUS_REPOSITORY_MANAGER_COOKBOOK_VERSION="release-0.5.20171115-163526.03915d6"
---> Running in 0f0f18927c36
Removing intermediate container 0f0f18927c36
---> 5394c43a6f89
Step 12/19 : ARG NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL="https://github.com/sonatype/chef-nexus-repository-manager/releases/download/${NEXUS_REPOSITORY_MANAGER_COOKBOOK_VERSION}/chef-nexus-repository-manager.tar.gz"
---> Running in 724df5024b01
Removing intermediate container 724df5024b01
---> 9ef222271a3f
Step 13/19 : ADD solo.json.erb /var/chef/solo.json.erb
---> 7a9f4fa3229d
Step 14/19 : RUN curl -L https://www.getchef.com/chef/install.sh | bash && /opt/chef/embedded/bin/erb /var/chef/solo.json.erb > /var/chef/solo.json && chef-solo --recipe-url ${NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL} --json-attributes /var/chef/solo.json && rpm -qa chef | xargs rpm -e && rpm --rebuilddb && rm -rf /etc/chef && rm -rf /opt/chefdk && rm -rf /var/cache/yum && rm -rf /var/chef
---> Running in 90c4545bb0f0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 23082 100 23082 0 0 125k 0 --:--:-- --:--:-- --:--:-- 125k
el 7 x86_64
Getting information for chef stable for el...
downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=7&m=x86_64
to file /tmp/install.sh.6/metadata.txt
trying curl...
sha1 3229e44c1136741be7df65d1441732bae55a2a02
sha256 1807c453c5a16fd2cb0941f98847a0031c3812ccb9e3a628b2f8fba8335f485c
url https://packages.chef.io/files/stable/chef/14.3.37/el/7/chef-14.3.37-1.el7.x86_64.rpm
version 14.3.37
downloaded metadata file looks valid...
downloading https://packages.chef.io/files/stable/chef/14.3.37/el/7/chef-14.3.37-1.el7.x86_64.rpm
to file /tmp/install.sh.6/chef-14.3.37-1.el7.x86_64.rpm
trying curl...
Comparing checksum with sha256sum...

WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

You are installing an omnibus package without a version pin. If you are installing
on production servers via an automated process this is DANGEROUS and you will
be upgraded without warning on new releases, even to new major releases.
Letting the version float is only appropriate in desktop, test, development or
CI/CD environments.

WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

Installing chef
installing with rpm...
warning: /tmp/install.sh.6/chef-14.3.37-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
Preparing... ########################################
Updating / installing...
chef-14.3.37-1.el7 ########################################
Thank you for installing Chef!
[2018-08-09T22:14:02+00:00] WARN: No config file found or specified on command line, using command line options.
[2018-08-09T22:14:02+00:00] WARN: No cookbooks directory found at or above current directory. Assuming /var/chef.
[2018-08-09T22:14:02+00:00] WARN: *****************************************
[2018-08-09T22:14:02+00:00] WARN: Did not find config file: /etc/chef/client.rb, using command line options.
[2018-08-09T22:14:02+00:00] WARN: *****************************************
Starting Chef Client, version 14.3.37
[2018-08-09T22:14:03+00:00] WARN: Plugin Network: unable to detect ipaddress
resolving cookbooks for run list: ["nexus_repository_manager::docker"]
Synchronizing Cookbooks:

  • nexus_repository_manager (0.1.0)
  • java (1.50.0)
  • tar (2.1.1)
  • limits (1.0.0)
  • poise-python (1.6.0)
  • s3_file (2.8.5)
  • apt (6.1.4)
  • windows (3.4.0)
  • homebrew (4.2.0)
  • poise (2.8.1)
  • poise-languages (2.1.1)
  • ohai (5.2.0)
  • poise-archive (1.5.0)
    Installing Cookbook Gems:
    Compiling Cookbooks...

================================================================================
Recipe Compile Error in /etc/chef/local-mode-cache/cache/cookbooks/poise-python/libraries/default.rb

FrozenError

can't modify frozen Array

Cookbook Trace:

/etc/chef/local-mode-cache/cache/cookbooks/poise/files/halite_gem/poise/helpers/subresources/container.rb:220:in included' /etc/chef/local-mode-cache/cache/cookbooks/poise/files/halite_gem/poise/resource.rb:51:in include'
/etc/chef/local-mode-cache/cache/cookbooks/poise/files/halite_gem/poise/resource.rb:51:in poise_subresource_container' /etc/chef/local-mode-cache/cache/cookbooks/poise/files/halite_gem/poise.rb:93:in block in Poise'
/etc/chef/local-mode-cache/cache/cookbooks/poise-python/files/halite_gem/poise_python/resources/python_runtime.rb:34:in include' /etc/chef/local-mode-cache/cache/cookbooks/poise-python/files/halite_gem/poise_python/resources/python_runtime.rb:34:in class:Resource'
/etc/chef/local-mode-cache/cache/cookbooks/poise-python/files/halite_gem/poise_python/resources/python_runtime.rb:33:in <module:PythonRuntime>' /etc/chef/local-mode-cache/cache/cookbooks/poise-python/files/halite_gem/poise_python/resources/python_runtime.rb:25:in module:Resources'
/etc/chef/local-mode-cache/cache/cookbooks/poise-python/files/halite_gem/poise_python/resources/python_runtime.rb:22:in <module:PoisePython>' /etc/chef/local-mode-cache/cache/cookbooks/poise-python/files/halite_gem/poise_python/resources/python_runtime.rb:21:in <top (required)>'
/etc/chef/local-mode-cache/cache/cookbooks/poise-python/files/halite_gem/poise_python/resources.rb:19:in <top (required)>' /etc/chef/local-mode-cache/cache/cookbooks/poise-python/files/halite_gem/poise_python/cheftie.rb:17:in <top (required)>'
/etc/chef/local-mode-cache/cache/cookbooks/poise-python/libraries/default.rb:19:in `<top (required)>'

Relevant File Content:

/etc/chef/local-mode-cache/cache/cookbooks/poise/files/halite_gem/poise/helpers/subresources/container.rb:

213: @container_default
214: end
215: end
216:
217: def included(klass)
218: super
219: klass.extend(ClassMethods)
220>> klass.const_get(:HIDDEN_IVARS) << :@subcontexts
221: klass.const_get(:FORBIDDEN_IVARS) << :@subcontexts
222: end
223: end
224:
225: extend ClassMethods
226: end
227: end
228: end
229: end

Additional information:

  Ruby objects are often frozen to prevent further modifications
  when they would negatively impact the process (e.g. values inside
  Ruby's ENV class) or to prevent polluting other objects when default
  values are passed by reference to many instances of an object (e.g.
  the empty Array as a Chef resource default, passed by reference
  to every instance of the resource).

  Chef uses Object#freeze to ensure the default values of properties
  inside Chef resources are not modified, so that when a new instance
  of a Chef resource is created, and Object#dup copies values by
  reference, the new resource is not receiving a default value that
  has been by a previous instance of that resource.

  Instead of modifying an object that contains a default value for all
  instances of a Chef resource, create a new object and assign it to
  the resource's parameter, e.g.:

  fruit_basket = resource(:fruit_basket, 'default')

  # BAD: modifies 'contents' object for all new fruit_basket instances
  fruit_basket.contents << 'apple'

  # GOOD: allocates new array only owned by this fruit_basket instance
  fruit_basket.contents %w(apple)

System Info:

chef_version=14.3.37
platform=centos
platform_version=7.5.1804
ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
program_name=/usr/bin/chef-solo
executable=/opt/chef/bin/chef-solo

Running handlers:
[2018-08-09T22:14:04+00:00] ERROR: Running exception handlers
Running handlers complete
[2018-08-09T22:14:04+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 01 seconds
[2018-08-09T22:14:04+00:00] FATAL: Stacktrace dumped to /etc/chef/local-mode-cache/cache/chef-stacktrace.out
[2018-08-09T22:14:04+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-08-09T22:14:04+00:00] FATAL: FrozenError: can't modify frozen Array
ERROR: Service 'nexus' failed to build: The command '/bin/sh -c curl -L https://www.getchef.com/chef/install.sh | bash && /opt/chef/embedded/bin/erb /var/chef/solo.json.erb > /var/chef/solo.json && chef-solo --recipe-url ${NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL} --json-attributes /var/chef/solo.json && rpm -qa chef | xargs rpm -e && rpm --rebuilddb && rm -rf /etc/chef && rm -rf /opt/chefdk && rm -rf /var/cache/yum && rm -rf /var/chef' returned a non-zero code: 1
[ec2-user@ip-10-105-0-181 docker-ci-tool-stack]$ ^C
[ec2-user@ip-10-105-0-181 docker-ci-tool-stack]$

Dockerfile missing

Hi
Many thanks for your great CI tools stack, we ran a bunch of tests it seems a dockerfile is missing when starting the Jenkins job "conference-app-monitoring-3-docker-build"
Do you have any clue about that ?
Regards
Herve

services don't start - errors

  1. I already had virtualbox 5.0.x with ubuntu trusty 14.02 image. I bumped up the RAM to 10gb
  2. Installed docker and verified that I am able to pull images and start containers
  3. git clone docker-ci-tool-stack
  4. Installed docker-compose binary as per instructions here
  5. I get the below errors when I ran "docker-compose up"

ci_toolstack_error

Any help please?

Fresh install on MacOs environment

SonarQube container doesn't come up properly.

Key errors seems to be:

sonar_1 | 2016.03.17 20:54:57 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener
sonar_1 | java.lang.IllegalStateException: Can not connect to database. Please check connectivity and settings (see the properties prefixed by 'sonar.jdbc.').

Sonar-runner and the tool stack

Hi @marcelbirkner, I am trying to integrate SonarSource's sonar-runner scanning tool with your tool stack and I'm having quite a few issues. Specifically, when I run sonar-runner from its own container, I will consistently get a "cannot connect to database" error. All ports should be exposed correctly.

Might you be able to help me by explaining how you configured Maven to scan your code?

question/support Jenkins pipeline conference app cant run docker image.

Hi, finally i could run your stack.

I was running some jenkins tasks and i found one called Conference App CI Pipeline.

The pipeline almost builds but fails in the last step:

conference-app-4-docker-start-container:

Started by upstream project "conference-app-3-docker-build" build number 1
originally caused by:
Started by upstream project "conference-app-2-sonar" build number 5
originally caused by:
Started by upstream project "conference-app-1-ci" build number 3
originally caused by:
Started by user anonymous
Building in workspace /var/jenkins_home/jobs/conference-app-4-docker-start-container/workspace
[workspace] $ /bin/sh -xe /tmp/hudson6070126676869245828.sh

  • echo Stopping Docker Container first
    Stopping Docker Container first
    [workspace] $ /bin/sh -xe /tmp/hudson7051516913140242264.sh
  • sudo /usr/bin/docker ps -a -q --filter=name=conference-app
  • sudo /usr/bin/docker stop
    /usr/bin/docker: "stop" requires a minimum of 1 argument.
    See '/usr/bin/docker stop --help'.

Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]

Stop a running container.
Sending SIGTERM and then SIGKILL after a grace period
Build step 'Execute shell' marked build as failure

Finished: FAILURE

My question is "what i am doing wrong?"
Its the first time so there are no container running with this name.
I will try to run first this container and then i will try again this task.

Unsupported config option for services service: 'nodechrome' on linux

When I tried to do a docker-compose up in the checkout repo I git the error:

$ docker-compose --verbose up
Unsupported config option for services service: 'nodechrome'

it turned out that the error resulted from a too old docker-compose version.
After upgrading my docker-compose version I could run the example.

$ docker-compose -v
docker-compose version: 1.3.1
CPython version: 2.7.10
OpenSSL version: OpenSSL 1.0.2d 9 Jul 2015

to:

$ docker-compose -v
docker-compose version 1.6.2, build 4d72027

SonarQube comes up in maintenance mode, database upgrade impossible

I just installed docker-ci-tool-stack on an AWS instance (Amazon Linux AMI) and I'm having trouble getting SonarQube to run properly. Jenkins and Nexus seem to work fine and I removed GitLab and SeleniumHub because I don't need those particular tools.

Initially, when I navigated to port 19000 I was immediately redirected to /maintenance which said:

SonarQube is under maintenance. Please check back later.
Whilst waiting, you might want to check new plugins to extend the current functionality.
If you are an administrator and have no idea why this message is showing, you should read the upgrade guide.

After googling a bit, I determined that a database upgrade might be necessary and navigated to /setup which provided me with a button to perform a database upgrade, which I clicked. Within a few seconds I received the following error message:

Impossible to upgrade database
Migration failed: An error has occurred, all later migrations canceled: No message available .
Please check logs.

The same error message is shown ever since when I navigate to /setup.
The docker logs for the sonar container can be found here; the logs for Sonar's database container are here. Both logs contain various error messages, but at this point it it difficult for me to determine which ones are relevant and which ones are not.

I had some difficulties with the more recent versions of docker-ci-tool-stack, so my work is based on version ef8017d.

Any ideas how to further diagnose this?

SonarQube won't start, possible ElasticSearch issue

SonarQube wont start properly. This is the error message that I see in the logs:

2017.10.30 14:13:33 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp 2017.10.30 14:13:34 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001 2017.10.30 14:13:34 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonarqube/temp/conf/es Warning: Ignoring JAVA_OPTS= -Duser.country=DE -Duser.language=de -Duser.timezone=Europe/Berlin Please pass JVM parameters via ES_JAVA_OPTS instead 2017.10.30 14:13:34 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running 2017.10.30 14:13:40 INFO app[][o.e.p.PluginsService] no modules loaded 2017.10.30 14:13:40 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin] 2017.10.30 14:14:04 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1 2017.10.30 14:14:04 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped 2017.10.30 14:14:04 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

The other containers work fine. It seems like ElasticSearch is having problems starting up. Any ideas how to fix this?

Jenkins issue

I got this issue on my mac.
ERROR: for jenkins Cannot start service jenkins: error while creating mount source path '/usr/local/bin/docker': chown /usr/local/bin/docker: no such file or directory

Update Jenkins

Hi, how can I update Jenkins? It shows me a message that is a new version available.

gitlab always restarting in mac native

Error executing action run on resource 'ruby_block[directory resource: /var/opt/gitlab/git-data/repositories]'

I have problems with sonar and gitlab

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
312bdd4218ad dockercitoolstack_jenkins "/bin/tini -- /usr/lo" 9 minutes ago Up 9 minutes 50000/tcp, 0.0.0.0:18080->8080/tcp dockercitoolstack_jenkins_1
dc74ed29ea70 dockercitoolstack_sonar "/opt/sonarqube/run.s" 9 minutes ago Exited (0) 9 minutes ago dockercitoolstack_sonar_1
cb3f4318ef3d gitlab/gitlab-ce:8.14.4-ce.0 "/assets/wrapper" 9 minutes ago Restarting (1) 5 seconds ago dockercitoolstack_gitlab_1
6dfeafd6fb04 dockercitoolstack_nexus "/bin/sh -c 'java -" 9 minutes ago Up 9 minutes 0.0.0.0:18081->8081/tcp dockercitoolstack_nexus_1
75d1dabc064b postgres "/docker-entrypoint.s" 9 minutes ago Up 9 minutes 5432/tcp dockercitoolstack_sonardb_1

cannot run when using virtualbox

I am getting the following error when using virtualbox:

➜ docker-ci-tool-stack git:(master) docker-compose up
Building jenkins
Step 1 : FROM jenkins:2.7.1
---> 2aae9163902e
Step 2 : USER root
---> Using cache
---> 80a5d5b2420e
Step 3 : RUN apt-get update && apt-get install -y sudo curl && rm -rf /var/lib/apt/lists/*
---> Using cache
---> 5159063c3440
Step 4 : RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers
---> Using cache
---> 7a63834f5416
Step 5 : RUN curl -sSL -O https://get.docker.com/builds/Linux/x86_64/docker-latest.tgz && tar -xvzf docker-latest.tgz
---> Using cache
---> f20613d27f10
Step 6 : RUN mv docker/* /usr/bin/
---> Using cache
---> d9ab5e384f23
Step 7 : USER jenkins
---> Using cache
---> 8893aef9d54a
Step 8 : COPY plugins.txt /var/jenkins_home/plugins.txt
---> Using cache
---> e8c2ed98da03
Step 9 : RUN /usr/local/bin/plugins.sh /var/jenkins_home/plugins.txt
---> Running in fd4d41f02996
Analyzing war: /usr/share/jenkins/jenkins.war
Downloading ansicolor:0.4.2
Downloading ant:1.3
Downloading antisamy-markup-formatter:1.5
Downloading authentication-tokens:1.3
Downloading build-pipeline-plugin:1.5.3.1
Downloading chucknorris:1.0
Downloading clone-workspace-scm:0.6
Downloading cloudbees-credentials:3.3
Downloading cloudbees-folder:5.12
Downloading conditional-buildstep:1.3.5
Downloading config-file-provider:2.11
Downloading credentials:2.1.4
Downloading dashboard-view:2.9.10
Downloading docker-build-publish:1.3.1
Downloading docker-commons:1.4.0
Downloading external-monitor-job:1.5
Downloading git:2.5.2
Downloading git-client:1.19.7
Downloading github:1.19.3
Downloading github-api:1.76
Downloading groovy:1.29
curl: (52) Empty reply from server
ERROR: Service 'jenkins' failed to build: The command '/bin/sh -c /usr/local/bin/plugins.sh /var/jenkins_home/plugins.txt' returned a non-zero code: 52
➜ docker-ci-tool-stack git:(master) docker-machine env default
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="/Users/rmedlin/.docker/machine/machines/default"
export DOCKER_MACHINE_NAME="default"

Run this command to configure your shell:

Jenkins plugins.txt Permission denied

Hello
First, many thanks for the project

Any solution for this error in jenkins/Dockerfile?

RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/plugins.txt

ERROR: Permission denied

FATAL: Failed to extract file server-jre-8u171-linux-x64.tar.gz! and Service 'nexus' failed to build

Building nexus
Step 1/19 : FROM centos:centos7
---> 49f7960eb7e4
Step 2/19 : MAINTAINER Sonatype [email protected]
---> Using cache
---> 473d299a1d10
Step 3/19 : LABEL vendor=Sonatype com.sonatype.license="Apache License, Version 2.0" com.sonatype.name="Nexus Repository Manager base image"
---> Using cache
---> f6106d9e4642
Step 4/19 : ARG NEXUS_VERSION=3.6.1-02
---> Using cache
---> cf7d0464bb32
Step 5/19 : ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz
---> Using cache
---> ebf180a937a5
Step 6/19 : ARG NEXUS_DOWNLOAD_SHA256_HASH=4a658996cf29ca2d4f9c8b3d3cff11bfc358d88f03495812d7814268f0b1259b
---> Using cache
---> bbb556ae2672
Step 7/19 : ENV JAVA_HOME=/opt/java JAVA_VERSION_MAJOR=8 JAVA_VERSION_MINOR=171 JAVA_VERSION_BUILD=11 JAVA_DOWNLOAD_HASH=512cd62ec5174c3487ac17c61aaa89e8*
---> Running in 1b256e2fe29e
Removing intermediate container 1b256e2fe29e
---> 26532717e919
Step 8/19 : ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/server-jre-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz JAVA_DOWNLOAD_SHA256_HASH=e8a341ce566f32c3d06f6d0f0eeea9a0f434f538d22af949ae58bc86f2eeaae4
---> Running in b1bf2bacd120
Removing intermediate container b1bf2bacd120
---> c1e859a255ef
Step 9/19 : ENV SONATYPE_DIR=/opt/sonatype
---> Running in 4364378d144f
Removing intermediate container 4364378d144f
---> 1555871e7df9
Step 10/19 : ENV NEXUS_HOME=${SONATYPE_DIR}/nexus NEXUS_DATA=/nexus-data NEXUS_CONTEXT='' SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work
---> Running in f4a711db505f
Removing intermediate container f4a711db505f
---> b3e5a060c9e0
Step 11/19 : ARG NEXUS_REPOSITORY_MANAGER_COOKBOOK_VERSION="release-0.5.20171115-163526.03915d6"
---> Running in 988e0bf7e90a
Removing intermediate container 988e0bf7e90a
---> 9ffeb1f797c4
Step 12/19 : ARG NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL="https://github.com/sonatype/chef-nexus-repository-manager/releases/download/${NEXUS_REPOSITORY_MANAGER_COOKBOOK_VERSION}/chef-nexus-repository-manager.tar.gz"
---> Running in 818e7f4ad331
Removing intermediate container 818e7f4ad331
---> 47dbacc6d2f6
Step 13/19 : ADD solo.json.erb /var/chef/solo.json.erb
---> 22497374f72a
Step 14/19 : RUN curl -L https://www.getchef.com/chef/install.sh | bash && /opt/chef/embedded/bin/erb /var/chef/solo.json.erb > /var/chef/solo.json && chef-solo --recipe-url ${NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL} --json-attributes /var/chef/solo.json && rpm -qa chef | xargs rpm -e && rpm --rebuilddb && rm -rf /etc/chef && rm -rf /opt/chefdk && rm -rf /var/cache/yum && rm -rf /var/chef
---> Running in ac318c11682c
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 23436 100 23436 0 0 39446 0 --:--:-- --:--:-- --:--:-- 39454
el 7 x86_64
Getting information for chef stable for el...
downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=7&m=x86_64
to file /tmp/install.sh.6/metadata.txt
trying curl...
sha1 bf0bd662c5b46d81418c943ac4bc6b84c095aa9c
sha256 abdb676a8d55fc9807b4eabe5313c54d3946977d7ae3eecd7303cd388b04042a
url https://packages.chef.io/files/stable/chef/14.2.0/el/7/chef-14.2.0-1.el7.x86_64.rpm
version 14.2.0
downloaded metadata file looks valid...
downloading https://packages.chef.io/files/stable/chef/14.2.0/el/7/chef-14.2.0-1.el7.x86_64.rpm
to file /tmp/install.sh.6/chef-14.2.0-1.el7.x86_64.rpm
trying curl...
Comparing checksum with sha256sum...

WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

You are installing an omnibus package without a version pin. If you are installing
on production servers via an automated process this is DANGEROUS and you will
be upgraded without warning on new releases, even to new major releases.
Letting the version float is only appropriate in desktop, test, development or
CI/CD environments.

WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

Installing chef
installing with rpm...
warning: /tmp/install.sh.6/chef-14.2.0-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
Preparing... ########################################
Updating / installing...
chef-14.2.0-1.el7 ########################################
Thank you for installing Chef!
[2018-06-24T02:27:06+00:00] WARN: No config file found or specified on command line, using command line options.
[2018-06-24T02:27:06+00:00] WARN: No cookbooks directory found at or above current directory. Assuming /var/chef.
[2018-06-24T02:27:06+00:00] WARN: No cookbooks directory found at or above current directory. Assuming /var/chef.
[2018-06-24T02:27:06+00:00] WARN: *****************************************
[2018-06-24T02:27:06+00:00] WARN: *****************************************
[2018-06-24T02:27:06+00:00] WARN: Did not find config file: /etc/chef/client.rb, using command line options.
[2018-06-24T02:27:06+00:00] WARN: Did not find config file: /etc/chef/client.rb, using command line options.
[2018-06-24T02:27:06+00:00] WARN: *****************************************
[2018-06-24T02:27:06+00:00] WARN: *****************************************
Starting Chef Client, version 14.2.0
[2018-06-24T02:27:07+00:00] WARN: Plugin Network: unable to detect ipaddress
[2018-06-24T02:27:07+00:00] WARN: Plugin Network: unable to detect ipaddress
resolving cookbooks for run list: ["nexus_repository_manager::docker"]
Synchronizing Cookbooks:

  • nexus_repository_manager (0.1.0)
  • java (1.50.0)
  • tar (2.1.1)
  • limits (1.0.0)
  • poise-python (1.6.0)
  • s3_file (2.8.5)
  • apt (6.1.4)
  • homebrew (4.2.0)
  • windows (3.4.0)
  • poise (2.8.1)
  • poise-languages (2.1.1)
  • ohai (5.2.0)
  • poise-archive (1.5.0)
    Installing Cookbook Gems:
    Compiling Cookbooks...
    Converging 24 resources
    Recipe: java::notify
  • log[jdk-version-changed] action nothing (skipped due to action :nothing)
    Recipe: java::oracle
  • log[WARNING - Downloading directly from Oracle is unreliable. Change download url.] action write[2018-06-24T02:27:09+00:00] WARN: WARNING - Downloading directly from Oracle is unreliable. Change download url.
    [2018-06-24T02:27:09+00:00] WARN: WARNING - Downloading directly from Oracle is unreliable. Change download url.

Recipe: java::set_java_home

  • directory[/etc/profile.d] action create (up to date)
  • template[/etc/profile.d/jdk.sh] action create
    • create new file /etc/profile.d/jdk.sh
    • update content in file /etc/profile.d/jdk.sh from none to b2915a
      --- /etc/profile.d/jdk.sh 2018-06-24 02:27:09.525214000 +0000
      +++ /etc/profile.d/.chef-jdk20180624-70-4jj40q.sh 2018-06-24 02:27:09.525214000 +0000
      @@ -1 +1,2 @@
      +export JAVA_HOME=/opt/java
    • change mode from '' to '0755'
      Recipe: java::oracle
  • yum_package[tar] action install (up to date)
  • java_ark[jdk] action install
    • yum_package[curl for download_direct_from_oracle] action install (up to date)
    • download oracle tarball straight from the server[2018-06-24T02:28:10+00:00] FATAL: Failed to extract file server-jre-8u171-linux-x64.tar.gz!
      [2018-06-24T02:28:10+00:00] FATAL: Failed to extract file server-jre-8u171-linux-x64.tar.gz!

Running handlers:
[2018-06-24T02:28:10+00:00] ERROR: Running exception handlers
[2018-06-24T02:28:10+00:00] ERROR: Running exception handlers
Running handlers complete
[2018-06-24T02:28:10+00:00] ERROR: Exception handlers complete
[2018-06-24T02:28:10+00:00] ERROR: Exception handlers complete
Chef Client failed. 2 resources updated in 01 minutes 03 seconds
[2018-06-24T02:28:10+00:00] FATAL: Stacktrace dumped to /etc/chef/local-mode-cache/cache/chef-stacktrace.out
[2018-06-24T02:28:10+00:00] FATAL: Stacktrace dumped to /etc/chef/local-mode-cache/cache/chef-stacktrace.out
[2018-06-24T02:28:10+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-06-24T02:28:10+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
ERROR: Service 'nexus' failed to build: The command '/bin/sh -c curl -L https://www.getchef.com/chef/install.sh | bash && /opt/chef/embedded/bin/erb /var/chef/solo.json.erb > /var/chef/solo.json && chef-solo --recipe-url ${NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL} --json-attributes /var/chef/solo.json && rpm -qa chef | xargs rpm -e && rpm --rebuilddb && rm -rf /etc/chef && rm -rf /opt/chefdk && rm -rf /var/cache/yum && rm -rf /var/chef' returned a non-zero code: 1

(http://nexus:8081/repository/maven-public) and 'parent.relativePath'

using global settings config with name MyGlobalSettings
Replacing all maven server entries not found in credentials list is true
[workspace] $ /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.3.3/bin/mvn -f app/pom.xml -gs /tmp/global-settings1821188696980461513.xml -DBRANCH=master -DREPOSITORY_URL=http://localhost:18081/repository/maven-releases/ clean -U versions:set -DnewVersion=DEV-11
[INFO] Scanning for projects...
Downloading: http://nexus:8081/repository/maven-public/org/springframework/boot/spring-boot-starter-parent/1.2.1.RELEASE/spring-boot-starter-parent-1.2.1.RELEASE.pom

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for de.codecentric:conference-app:3.0.0: Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:1.2.1.RELEASE in nexus (http://nexus:8081/repository/maven-public) and 'parent.relativePath' points at no local POM @ line 18, column 10
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project de.codecentric:conference-app:3.0.0 (/var/jenkins_home/jobs/conference-app-1-ci/workspace/app/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for de.codecentric:conference-app:3.0.0: Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:1.2.1.RELEASE in nexus (http://nexus:8081/repository/maven-public) and 'parent.relativePath' points at no local POM @ line 18, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Build step 'Invoke top-level Maven targets' marked build as failure
[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing JUnit
[xUnit] [INFO] - [JUnit] - No test report file(s) were found with the pattern '/target/surefire-reports/*.xml' relative to '/var/jenkins_home/jobs/conference-app-1-ci/workspace' for the testing framework 'JUnit'. Did you enter a pattern relative to the correct directory? Did you generate the result report(s) for 'JUnit'?
[xUnit] [WARNING] - No test reports found for the metric 'JUnit' with the resolved pattern '
/target/surefire-reports/*.xml'.
[xUnit] [INFO] - Skipping the metric tool processing.
[xUnit] [INFO] - There are errors when processing test results.
[xUnit] [INFO] - Skipping tests recording.
Archiving workspace
Deleting old workspace snapshot from #10.
Finished: FAILURE
Page generated: Jan 28, 2019 9:29:42 PM UTCREST APIJenkins ver. 2.138.3

thanks

Failed to move a directory

When building the Jenkins image, the dockerfile failed doing a simple mv command for moving a docker directory to /usr/bin

Building jenkins
Step 1/22 : FROM jenkins:2.19.4
---> f61635651954
Step 2/22 : USER root
---> Using cache
---> 38328c4c60df
 Step 3/22 : RUN apt-get update       && apt-get install -y sudo curl          && rm -rf /var/lib/apt/lists/*
---> Using cache
---> be88e3447a62
Step 4/22 : RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers
---> Using cache
---> dc14742b9a92
Step 5/22 : RUN curl -sSL -O https://get.docker.com/builds/Linux/x86_64  /docker-latest.tgz && tar -xvzf docker-latest.tgz
 ---> Using cache
 ---> d96e275bfa56
 Step 6/22 : RUN mv docker/* /usr/bin/
 ---> Running in 05e1bd80331e
 mv: cannot remove ‘docker/completion/bash/docker’: No such file or directory
 mv: cannot remove ‘docker/completion/fish/docker.fish’: No such file or directory
 mv: cannot remove ‘docker/completion/zsh/_docker’: No such file or     directory
 ERROR: Service 'jenkins' failed to build: The command '/bin/sh -c mv docker/* /usr/bin/' returned a non-zero code: 1


 $ docker --version
 Docker version 17.11.0-ce, build 1caf76c

problem with docker-compose up

i installed docker to mac and run Jenkins in docker container; then i wish to launch host docker image in Jenkins job, so i am trying to map host(osx) docker to my jenkins image. Here i got the issue with mounting docker binary.

bash-3.2$ cat docker-compose.yml
version: '2'
services:
jenkins:
container_name: jenkins
image: jenkins/jenkins:lts
ports:
- '8080:8080'
- '50000:50000'
volumes:
- /Users/chaoshi/docker-all/CI-local/jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/bin/docker

bash-3.2$ docker-compose up
Removing jenkins
Recreating 3a243d8a4dfc_3a243d8a4dfc_jenkins ...
Recreating 3a243d8a4dfc_3a243d8a4dfc_jenkins ... error

ERROR: for 3a243d8a4dfc_3a243d8a4dfc_jenkins Cannot start service jenkins: Mounts denied: EOF

ERROR: for jenkins Cannot start service jenkins: Mounts denied: EOF
ERROR: Encountered errors while bringing up the project.

bash-3.2$ docker --version
Docker version 17.09.0-ce, build afdb6d4

bash-3.2$ uname -a
Darwin chaoshi-mac 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64

bash-3.2$ docker info
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 1
Server Version: 17.09.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.49-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.952GiB
Name: moby
ID: QLFJ:LCG7:OBVC:5P2B:O7MC:WOTS:XXBY:ND5F:HUCW:HZKL:KKPF:HPHW
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 20
Goroutines: 35
System Time: 2017-11-13T16:49:49.991715448Z
EventsListeners: 1
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

gitlab --link still required

Docker version 11.0.0 still requires

"links:
- redis:redisio"

in the gitlab section of docker-composer.yml. Otherwise the gitlab container will stop after unsuccessfully trying to ping the redis container in /sbin/entrypoint.sh

Error starting setup.sh

Hi,

I've installed your project using
git clone https://github.com/marcelbirkner/docker-ci-tool-stack.git
and set execute permission for the file setup.sh.

starting the script I get the messages behind:

ralf@Entwicklungssystem:~/Downloads/docker-ci-tool-stack$ ./setup.sh
Create docker machine
./setup.sh: 12: ./setup.sh: docker-machine: not found
Setup environment
./setup.sh: 15: ./setup.sh: docker-machine: not found
Checkout Git Repository
Klone nach 'docker-ci-tool-stack' ...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
./setup.sh: 19: cd: can't cd to docker-ci-tool-stack
Startup Docker Compose
./setup.sh: 22: ./setup.sh: docker-compose: not found
ralf@Entwicklungssystem:~/Downloads/docker-ci-tool-stack$ 

How can I solve this problem? I'm using docker-ce on ubuntu trusty, the output of docker --version is

Docker version 17.06.0-ce, build 02c1d87

best regards
Ralf Ebert

Does not work on Docker Toolbox for Windows

When trying the CI Tools Demo on MS Windows 7 64-bit (using Docker Toolbox 1.9.1c) I got the following error:

gmacario@ITM-GMACARIO-W7 MINGW64 /e/data/MYGIT/docker-ci-tool-stack (master)
$ docker-compose up
Pulling postgresql (sameersbn/postgresql:9.4-3)...
9.4-3: Pulling from sameersbn/postgresql
Pulling repository docker.io/sameersbn/postgresql
Status: Downloaded newer image for sameersbn/postgresql:9.4-3
docker.io/sameersbn/postgresql: this image was pulled from a legacy registry.  Important: This registry version will not be supported in future versions of docker.
Creating dockercitoolstack_postgresql_1
Building nexus
Step 1 : FROM centos:6
6: Pulling from library/centos
...
Step 13 : RUN cd /opt/sonarqube/extensions/plugins/   && curl -o sonar-java-plugin-3.5.jar -fSL $SONAR_DOWNLOAD_URL/sonar-java-plugin/sonar-java-plugin-3.5.jar   && curl -o sonar-web-plugin-2.4.jar -fSL $SONAR_DOWNLOAD_URL/sonar-web-plugin/sonar-web-plugin-2.4.jar   && curl -o sonar-scm-git-plugin-1.1.jar -fSL http://downloads.sonarsource.com/plugins/org/codehaus/sonar-plugins/sonar-scm-git-plugin/1.1/sonar-scm-git-plugin-1.1.jar
 ---> Running in 98caf842835c
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2896k  100 2896k    0     0   242k      0  0:00:11  0:00:11 --:--:--  296k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  834k  100  834k    0     0   153k      0  0:00:05  0:00:05 --:--:--  180k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2617k  100 2617k    0     0  50044      0  0:00:53  0:00:53 --:--:-- 53773
 ---> ffd13e4bcb67
Removing intermediate container 98caf842835c
Step 14 : VOLUME $SONARQUBE_HOME/data $SONARQUBE_HOME/extensions
 ---> Running in 3c1ecce138d2
 ---> 4dd84a6c1c5b
Removing intermediate container 3c1ecce138d2
Step 15 : WORKDIR $SONARQUBE_HOME
 ---> Running in bae34b882e6f
 ---> f621439a1d04
Removing intermediate container bae34b882e6f
Step 16 : COPY run.sh $SONARQUBE_HOME/bin/
 ---> 52eed104b885
Removing intermediate container 46b465a63782
Step 17 : RUN chmod +x $SONARQUBE_HOME/bin/run.sh
 ---> Running in 61968ebb0760
 ---> c4ee608a8ddd
Removing intermediate container 61968ebb0760
Step 18 : ENTRYPOINT ./bin/run.sh
 ---> Running in e4e236656546
 ---> e3b9da9eed3f
Removing intermediate container e4e236656546
Successfully built e3b9da9eed3f
Creating dockercitoolstack_sonar_1
Cannot start container 7f83a11bdf605b1d66d1d65b8af3f7440548aab3a79f580af45c26a06d75051e: [8] System error: no such file or directory

gmacario@ITM-GMACARIO-W7 MINGW64 /e/data/MYGIT/docker-ci-tool-stack (master)
$

Issue with Native docker on Mac

I am using native docker (1.12) on Mac. Had some volume mount issue in Sonar and opt directories. Resolved them thru "Preferences -> File Sharing". But now I am getting the following error

$ sudo docker-compose up -d
Password:
Removing dockercitoolstack_jenkins_1
dockercitoolstack_gitlab_1 is up-to-date
Starting dockercitoolstack_seleniumhub_1
Starting dockercitoolstack_sonardb_1
Starting dockercitoolstack_nexus_1
Starting dockercitoolstack_nodechrome_1
Starting dockercitoolstack_nodeff_1
Starting dockercitoolstack_sonar_1
Recreating e6bbf4cc74e7_e6bbf4cc74e7_dockercitoolstack_jenkins_1

ERROR: for jenkins Cannot start service jenkins: oci runtime error: rootfs_linux.go:53: mounting "/var/lib/docker/aufs/mnt/ee94f1a509f954c149105fef34ef5218cf27dea3ce16a3a9bdeee037b7a84f5e/usr/bin/docker" to rootfs "/var/lib/docker/aufs/mnt/ee94f1a509f954c149105fef34ef5218cf27dea3ce16a3a9bdeee037b7a84f5e" caused "not a directory"

docker-compose error

Recipe: java::set_java_home

  • directory[/etc/profile.d] action create (up to date)
  • template[/etc/profile.d/jdk.sh] action create
    • create new file /etc/profile.d/jdk.sh
    • update content in file /etc/profile.d/jdk.sh from none to b2915a
      --- /etc/profile.d/jdk.sh 2018-05-16 17:25:56.288136629 +0000
      +++ /etc/profile.d/.chef-jdk20180516-72-whnrl2.sh 2018-05-16 17:25:56.288136629 +0000
      @@ -1 +1,2 @@
      +export JAVA_HOME=/opt/java
    • change mode from '' to '0755'
      Recipe: java::oracle
  • yum_package[tar] action install (up to date)
  • java_ark[jdk] action install
    • yum_package[curl for download_direct_from_oracle] action install (up to date)
    • download oracle tarball straight from the server[2018-05-16T17:25:59+00:00] FATAL: Failed to extract file server-jre-8u152-linux-x64.tar.gz!
      [2018-05-16T17:25:59+00:00] FATAL: Failed to extract file server-jre-8u152-linux-x64.tar.gz!

Running handlers:
[2018-05-16T17:25:59+00:00] ERROR: Running exception handlers
[2018-05-16T17:25:59+00:00] ERROR: Running exception handlers
Running handlers complete
[2018-05-16T17:25:59+00:00] ERROR: Exception handlers complete
[2018-05-16T17:25:59+00:00] ERROR: Exception handlers complete
Chef Client failed. 2 resources updated in 05 seconds
[2018-05-16T17:25:59+00:00] FATAL: Stacktrace dumped to /etc/chef/local-mode-cache/cache/chef-stacktrace.out
[2018-05-16T17:25:59+00:00] FATAL: Stacktrace dumped to /etc/chef/local-mode-cache/cache/chef-stacktrace.out
[2018-05-16T17:25:59+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-05-16T17:25:59+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
ERROR: Service 'nexus' failed to build: The command '/bin/sh -c curl -L https://www.getchef.com/chef/install.sh | bash && /opt/chef/embedded/bin/erb /var/chef/solo.json.erb > /var/chef/solo.json && chef-solo --recipe-url ${NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL} --json-attributes /var/chef/solo.json && rpm -qa chef | xargs rpm -e && rpm --rebuilddb && rm -rf /etc/chef && rm -rf /opt/chefdk && rm -rf /var/cache/yum && rm -rf /var/chef' returned a non-zero code: 1

Install Jenkins plugins from plugins.txt fails

Hi everyone.
I've just got unsuccessful build in Jenkins part when I ran it by docker-compose.
In second time I've run manually just Jenkins'es Dockerfile but still got the same:

The command '/bin/sh -c /usr/local/bin/install-plugins.sh < /usr/share/jenkins/plugins.txt' returned a non-zero code: 1

Do I have a some networks problems or maybe some repos were depricated or other?
Thank you.

local@w01:~/gitrepos/docker-ci-tool-stack_fork/jenkins$ docker build
"docker build" requires exactly 1 argument.
See 'docker build --help'.

Usage:  docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile
local@w01:~/gitrepos/docker-ci-tool-stack_fork/jenkins$ docker build .
Sending build context to Docker daemon  61.95kB
Step 1/18 : FROM jenkins/jenkins:lts
 ---> bb2e60bd8a84
Step 2/18 : USER root
 ---> Running in d842bfe064df
 ---> 1d7e62d40a5b
Removing intermediate container d842bfe064df
Step 3/18 : RUN apt-get update       && apt-get install -y sudo curl      && apt-get install -y libltdl7      && rm -rf /var/lib/apt/lists/*
 ---> Running in 543db81106f6
Get:1 http://security.debian.org stretch/updates InRelease [63.0 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://security.debian.org stretch/updates/main amd64 Packages [311 kB]
Get:6 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [6499 B]
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [9531 kB]
Fetched 10.1 MB in 2s (4115 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.52.1-5+deb9u3).
The following NEW packages will be installed:
  sudo
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 1055 kB of archives.
After this operation, 3108 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 sudo amd64 1.8.19p1-2.1 [1055 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 1055 kB in 0s (1690 kB/s)
Selecting previously unselected package sudo.
(Reading database ... 29520 files and directories currently installed.)
Preparing to unpack .../sudo_1.8.19p1-2.1_amd64.deb ...
Unpacking sudo (1.8.19p1-2.1) ...
Setting up sudo (1.8.19p1-2.1) ...
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  libltdl7
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 389 kB of archives.
After this operation, 427 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 libltdl7 amd64 2.4.6-2 [389 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 389 kB in 0s (1031 kB/s)
Selecting previously unselected package libltdl7:amd64.
(Reading database ... 29631 files and directories currently installed.)
Preparing to unpack .../libltdl7_2.4.6-2_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.6-2) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up libltdl7:amd64 (2.4.6-2) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
 ---> b6844fabe071
Removing intermediate container 543db81106f6
Step 4/18 : RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers
 ---> Running in b80747361678
 ---> a4ca2d3645ea
Removing intermediate container b80747361678
Step 5/18 : RUN curl -sSL -o /bin/docker https://get.docker.io/builds/Linux/x86_64/docker-latest
 ---> Running in fdd27e87d049
 ---> 093b6dcf916a
Removing intermediate container fdd27e87d049
Step 6/18 : RUN chmod +x /bin/docker
 ---> Running in 70b42780b030
 ---> e89a8cea8d80
Removing intermediate container 70b42780b030
Step 7/18 : USER jenkins
 ---> Running in a67c99ea219b
 ---> b71ed34109a7
Removing intermediate container a67c99ea219b
Step 8/18 : COPY plugins.txt /usr/share/jenkins/plugins.txt
 ---> d6e46e141a25
Step 9/18 : RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/plugins.txt
 ---> Running in fa44e038969c
Creating initial locks...
Analyzing war...
Registering preinstalled plugins...
Using version-specific update center: https://updates.jenkins.io/2.89...
Downloading plugins...
Downloading plugin: ace-editor from https://updates.jenkins.io/download/plugins/ace-editor/1.1/ace-editor.hpi
Downloading plugin: ansicolor from https://updates.jenkins.io/download/plugins/ansicolor/0.5.2/ansicolor.hpi
Downloading plugin: antisamy-markup-formatter from https://updates.jenkins.io/download/plugins/antisamy-markup-formatter/1.5/antisamy-markup-formatter.hpi
Downloading plugin: ant from https://updates.jenkins.io/download/plugins/ant/1.7/ant.hpi
Downloading plugin: apache-httpcomponents-client-4-api from https://updates.jenkins.io/download/plugins/apache-httpcomponents-client-4-api/4.5.3-2.0/apache-httpcomponents-client-4-api.hpi
Downloading plugin: bouncycastle-api from https://updates.jenkins.io/download/plugins/bouncycastle-api/2.16.2/bouncycastle-api.hpi
Downloading plugin: authentication-tokens from https://updates.jenkins.io/download/plugins/authentication-tokens/1.3/authentication-tokens.hpi
Downloading plugin: branch-api from https://updates.jenkins.io/download/plugins/branch-api/2.0.15/branch-api.hpi
Downloading plugin: build-pipeline-plugin from https://updates.jenkins.io/download/plugins/build-pipeline-plugin/1.5.7.1/build-pipeline-plugin.hpi
Downloading plugin: build-timeout from https://updates.jenkins.io/download/plugins/build-timeout/1.19/build-timeout.hpi
Downloading plugin: bulk-builder from https://updates.jenkins.io/download/plugins/bulk-builder/1.5/bulk-builder.hpi
Downloading plugin: clone-workspace-scm from https://updates.jenkins.io/download/plugins/clone-workspace-scm/0.6/clone-workspace-scm.hpi
Downloading plugin: cloudbees-folder from https://updates.jenkins.io/download/plugins/cloudbees-folder/6.2.1/cloudbees-folder.hpi
Downloading plugin: chucknorris from https://updates.jenkins.io/download/plugins/chucknorris/1.1/chucknorris.hpi
Downloading plugin: conditional-buildstep from https://updates.jenkins.io/download/plugins/conditional-buildstep/1.3.6/conditional-buildstep.hpi
Downloading plugin: credentials-binding from https://updates.jenkins.io/download/plugins/credentials-binding/1.13/credentials-binding.hpi
Downloading plugin: display-url-api from https://updates.jenkins.io/download/plugins/display-url-api/2.2.0/display-url-api.hpi
Downloading plugin: docker-commons from https://updates.jenkins.io/download/plugins/docker-commons/1.9/docker-commons.hpi
Downloading plugin: config-file-provider from https://updates.jenkins.io/download/plugins/config-file-provider/2.16.4/config-file-provider.hpi
Downloading plugin: docker-workflow from https://updates.jenkins.io/download/plugins/docker-workflow/1.14/docker-workflow.hpi
Downloading plugin: credentials from https://updates.jenkins.io/download/plugins/credentials/2.1.16/credentials.hpi
Downloading plugin: email-ext from https://updates.jenkins.io/download/plugins/email-ext/2.61/email-ext.hpi
Downloading plugin: external-monitor-job from https://updates.jenkins.io/download/plugins/external-monitor-job/1.7/external-monitor-job.hpi
Downloading plugin: durable-task from https://updates.jenkins.io/download/plugins/durable-task/1.17/durable-task.hpi
Downloading plugin: git from https://updates.jenkins.io/download/plugins/git/3.6.4/git.hpi
Downloading plugin: git-server from https://updates.jenkins.io/download/plugins/git-server/1.7/git-server.hpi
Downloading plugin: git-client from https://updates.jenkins.io/download/plugins/git-client/2.6.0/git-client.hpi
Downloading plugin: github from https://updates.jenkins.io/download/plugins/github/1.28.1/github.hpi
Downloading plugin: github-api from https://updates.jenkins.io/download/plugins/github-api/1.90/github-api.hpi
Downloading plugin: gitlab-hook from https://updates.jenkins.io/download/plugins/gitlab-hook/1.4.2/gitlab-hook.hpi
Downloading plugin: github-branch-source from https://updates.jenkins.io/download/plugins/github-branch-source/2.3.1/github-branch-source.hpi
Downloading plugin: gradle from https://updates.jenkins.io/download/plugins/gradle/1.28/gradle.hpi
Downloading plugin: handlebars from https://updates.jenkins.io/download/plugins/handlebars/1.1.1/handlebars.hpi
Downloading plugin: icon-shim from https://updates.jenkins.io/download/plugins/icon-shim/2.0.3/icon-shim.hpi
Downloading plugin: javadoc from https://updates.jenkins.io/download/plugins/javadoc/1.4/javadoc.hpi
Downloading plugin: job-dsl from https://updates.jenkins.io/download/plugins/job-dsl/1.66/job-dsl.hpi
Downloading plugin: jackson2-api from https://updates.jenkins.io/download/plugins/jackson2-api/2.8.7.0/jackson2-api.hpi
Downloading plugin: jquery from https://updates.jenkins.io/download/plugins/jquery/1.12.4-0/jquery.hpi
Downloading plugin: jquery-detached from https://updates.jenkins.io/download/plugins/jquery-detached/1.2.1/jquery-detached.hpi
Downloading plugin: jobConfigHistory from https://updates.jenkins.io/download/plugins/jobConfigHistory/2.18/jobConfigHistory.hpi
Downloading plugin: jsch from https://updates.jenkins.io/download/plugins/jsch/0.1.54.1/jsch.hpi
Downloading plugin: junit from https://updates.jenkins.io/download/plugins/junit/1.23/junit.hpi
Downloading plugin: ldap from https://updates.jenkins.io/download/plugins/ldap/1.18/ldap.hpi
Downloading plugin: mailer from https://updates.jenkins.io/download/plugins/mailer/1.20/mailer.hpi
Downloading plugin: maven-plugin from https://updates.jenkins.io/download/plugins/maven-plugin/3.0/maven-plugin.hpi
Downloading plugin: mapdb-api from https://updates.jenkins.io/download/plugins/mapdb-api/1.0.9.0/mapdb-api.hpi
Downloading plugin: parameterized-trigger from https://updates.jenkins.io/download/plugins/parameterized-trigger/2.35.2/parameterized-trigger.hpi
Downloading plugin: matrix-auth from https://updates.jenkins.io/download/plugins/matrix-auth/2.2/matrix-auth.hpi
Downloading plugin: momentjs from https://updates.jenkins.io/download/plugins/momentjs/1.1.1/momentjs.hpi
Downloading plugin: matrix-project from https://updates.jenkins.io/download/plugins/matrix-project/1.12/matrix-project.hpi
Downloading plugin: pam-auth from https://updates.jenkins.io/download/plugins/pam-auth/1.3/pam-auth.hpi
Downloading plugin: pipeline-build-step from https://updates.jenkins.io/download/plugins/pipeline-build-step/2.5.1/pipeline-build-step.hpi
Downloading plugin: pipeline-graph-analysis from https://updates.jenkins.io/download/plugins/pipeline-graph-analysis/1.5/pipeline-graph-analysis.hpi
Downloading plugin: pipeline-input-step from https://updates.jenkins.io/download/plugins/pipeline-input-step/2.8/pipeline-input-step.hpi
Downloading plugin: pipeline-github-lib from https://updates.jenkins.io/download/plugins/pipeline-github-lib/1.0/pipeline-github-lib.hpi
Downloading plugin: pipeline-milestone-step from https://updates.jenkins.io/download/plugins/pipeline-milestone-step/1.3.1/pipeline-milestone-step.hpi
Downloading plugin: pipeline-model-api from https://updates.jenkins.io/download/plugins/pipeline-model-api/1.2.5/pipeline-model-api.hpi
Downloading plugin: pipeline-model-declarative-agent from https://updates.jenkins.io/download/plugins/pipeline-model-declarative-agent/1.1.1/pipeline-model-declarative-agent.hpi
Downloading plugin: pipeline-model-definition from https://updates.jenkins.io/download/plugins/pipeline-model-definition/1.2.5/pipeline-model-definition.hpi
Downloading plugin: pipeline-model-extensions from https://updates.jenkins.io/download/plugins/pipeline-model-extensions/1.2.5/pipeline-model-extensions.hpi
Downloading plugin: pipeline-rest-api from https://updates.jenkins.io/download/plugins/pipeline-rest-api/2.9/pipeline-rest-api.hpi
Downloading plugin: pipeline-stage-tags-metadata from https://updates.jenkins.io/download/plugins/pipeline-stage-tags-metadata/1.2.5/pipeline-stage-tags-metadata.hpi
Downloading plugin: pipeline-stage-step from https://updates.jenkins.io/download/plugins/pipeline-stage-step/2.3/pipeline-stage-step.hpi
Downloading plugin: pipeline-stage-view from https://updates.jenkins.io/download/plugins/pipeline-stage-view/2.9/pipeline-stage-view.hpi
Downloading plugin: resource-disposer from https://updates.jenkins.io/download/plugins/resource-disposer/0.8/resource-disposer.hpi
Downloading plugin: ruby-runtime from https://updates.jenkins.io/download/plugins/ruby-runtime/0.12/ruby-runtime.hpi
Downloading plugin: plain-credentials from https://updates.jenkins.io/download/plugins/plain-credentials/1.4/plain-credentials.hpi
Downloading plugin: run-condition from https://updates.jenkins.io/download/plugins/run-condition/1.0/run-condition.hpi
Downloading plugin: scm-api from https://updates.jenkins.io/download/plugins/scm-api/2.2.5/scm-api.hpi
Downloading plugin: script-security from https://updates.jenkins.io/download/plugins/script-security/1.36/script-security.hpi
Downloading plugin: sonar from https://updates.jenkins.io/download/plugins/sonar/2.6.1/sonar.hpi
Downloading plugin: ssh-slaves from https://updates.jenkins.io/download/plugins/ssh-slaves/1.22/ssh-slaves.hpi
Downloading plugin: ssh-credentials from https://updates.jenkins.io/download/plugins/ssh-credentials/1.13/ssh-credentials.hpi
Downloading plugin: structs from https://updates.jenkins.io/download/plugins/structs/1.10/structs.hpi
Downloading plugin: subversion from https://updates.jenkins.io/download/plugins/subversion/2.9/subversion.hpi
Downloading plugin: timestamper from https://updates.jenkins.io/download/plugins/timestamper/1.8.8/timestamper.hpi
Downloading plugin: token-macro from https://updates.jenkins.io/download/plugins/token-macro/2.3/token-macro.hpi
Downloading plugin: workflow-api from https://updates.jenkins.io/download/plugins/workflow-api/2.23.1/workflow-api.hpi
Downloading plugin: workflow-aggregator from https://updates.jenkins.io/download/plugins/workflow-aggregator/2.5/workflow-aggregator.hpi
Downloading plugin: windows-slaves from https://updates.jenkins.io/download/plugins/windows-slaves/1.3.1/windows-slaves.hpi
Downloading plugin: workflow-basic-steps from https://updates.jenkins.io/download/plugins/workflow-basic-steps/2.6/workflow-basic-steps.hpi
Downloading plugin: workflow-cps from https://updates.jenkins.io/download/plugins/workflow-cps/2.42/workflow-cps.hpi
Downloading plugin: workflow-cps-global-lib from https://updates.jenkins.io/download/plugins/workflow-cps-global-lib/2.9/workflow-cps-global-lib.hpi
Downloading plugin: workflow-durable-task-step from https://updates.jenkins.io/download/plugins/workflow-durable-task-step/2.17/workflow-durable-task-step.hpi
Downloading plugin: workflow-job from https://updates.jenkins.io/download/plugins/workflow-job/2.15/workflow-job.hpi
Downloading plugin: workflow-scm-step from https://updates.jenkins.io/download/plugins/workflow-scm-step/2.6/workflow-scm-step.hpi
Downloading plugin: workflow-multibranch from https://updates.jenkins.io/download/plugins/workflow-multibranch/2.16/workflow-multibranch.hpi
Downloading plugin: workflow-step-api from https://updates.jenkins.io/download/plugins/workflow-step-api/2.14/workflow-step-api.hpi
Downloading plugin: workflow-support from https://updates.jenkins.io/download/plugins/workflow-support/2.16/workflow-support.hpi
Downloading plugin: ws-cleanup from https://updates.jenkins.io/download/plugins/ws-cleanup/0.34/ws-cleanup.hpi
Downloading plugin: xunit from https://updates.jenkins.io/download/plugins/xunit/1.102/xunit.hpi
 > pipeline-github-lib depends on workflow-cps-global-lib:2.5,git:3.0.2
 > pipeline-stage-step depends on workflow-api:2.15,workflow-step-api:2.11,scm-api:2.0.7,structs:1.6
 > jsch depends on credentials:1.21,ssh-credentials:1.12
 > ws-cleanup depends on workflow-durable-task-step:2.4,matrix-project:1.7.1,resource-disposer:0.3,structs:1.5
 > pipeline-model-definition depends on workflow-api:2.22,workflow-basic-steps:2.3,workflow-cps-global-lib:2.7,workflow-cps:2.41,workflow-durable-task-step:2.9,workflow-multibranch:2.9.2,workflow-scm-step:2.4,workflow-support:2.14,credentials-binding:1.11,credentials:2.1.13,docker-workflow:1.9,git-client:2.5.0,mailer:1.18,pipeline-stage-step:2.2,scm-api:2.2.2,pipeline-model-api:1.2.5,pipeline-model-declarative-agent:1.1.1,pipeline-model-extensions:1.2.5,pipeline-stage-tags-metadata:1.2.5
 > matrix-auth depends on cloudbees-folder:6.1.0;resolution:=optional
Skipping optional dependency cloudbees-folder
 > junit depends on workflow-api:2.22,workflow-step-api:2.12,script-security:1.30,structs:1.7
 > github-branch-source depends on github:1.26.0,credentials:2.1.15,display-url-api:0.2,git:3.6.0,github-api:1.89,scm-api:2.2.0,structs:1.10
 > cloudbees-folder depends on credentials:2.1.11;resolution:=optional
Skipping optional dependency credentials
 > workflow-aggregator depends on pipeline-input-step:2.5,workflow-job:2.9,workflow-basic-steps:2.3,workflow-durable-task-step:2.8,workflow-api:2.8,workflow-cps:2.24,workflow-support:2.12,workflow-cps-global-lib:2.5,workflow-multibranch:2.9.2,pipeline-stage-view:2.4,workflow-scm-step:2.3,workflow-step-api:2.7,pipeline-model-definition:1.0,pipeline-stage-step:2.2,pipeline-build-step:2.4,pipeline-milestone-step:1.3
 > jobConfigHistory depends on maven-plugin:2.0;resolution:=optional
Skipping optional dependency maven-plugin
 > mailer depends on display-url-api:1.0
 > workflow-scm-step depends on workflow-step-api:2.9
 > ssh-slaves depends on ssh-credentials:1.6.1,credentials:2.1.2
 > credentials depends on structs:1.7
 > gradle depends on structs:1.3
 > build-timeout depends on naginator:1.16;resolution:=optional,token-macro:1.5.1
Skipping optional dependency naginator
 > workflow-cps depends on workflow-api:2.18,workflow-scm-step:2.4,workflow-step-api:2.13,workflow-support:2.14,scm-api:2.0.8,script-security:1.36,structs:1.7,support-core:2.32;resolution:=optional,ace-editor:1.0.1,jquery-detached:1.2.1
 > gitlab-hook depends on ruby-runtime:0.12,git:2.0
 > workflow-api depends on workflow-step-api:2.10,scm-api:2.0.8,structs:1.7
Skipping optional dependency support-core
 > email-ext depends on workflow-job:2.11;resolution:=optional,workflow-step-api:2.9;resolution:=optional,config-file-provider:2.15.6;resolution:=optional,junit:1.2,mailer:1.13,matrix-project:1.4,script-security:1.27,structs:1.6,token-macro:2.0,analysis-core:1.54;resolution:=optional
Skipping optional dependency workflow-job
Skipping optional dependency workflow-step-api
Skipping optional dependency config-file-provider
Skipping optional dependency analysis-core
 > job-dsl depends on structs:1.6,script-security:1.25,vsphere-cloud:1.1.11;resolution:=optional,config-file-provider:2.15.4;resolution:=optional,managed-scripts:1.3;resolution:=optional
Skipping optional dependency vsphere-cloud
Skipping optional dependency config-file-provider
Skipping optional dependency managed-scripts
 > config-file-provider depends on cloudbees-folder:5.12;resolution:=optional,credentials:2.1.4,ssh-credentials:1.12,structs:1.3,token-macro:2.0
Skipping optional dependency cloudbees-folder
 > git-client depends on apache-httpcomponents-client-4-api:4.5.3-2.0,credentials:2.1.13,jsch:0.1.54.1,ssh-credentials:1.13,structs:1.9
 > pipeline-model-api depends on workflow-step-api:2.14,structs:1.9
 > subversion depends on workflow-scm-step:1.14.2,credentials:2.1.11,mapdb-api:1.0.1.0,scm-api:2.0.8,ssh-credentials:1.6.1
 > branch-api depends on cloudbees-folder:6.1.0,scm-api:2.2.3,structs:1.9
 > github depends on credentials:2.1.8,display-url-api:2.0,git:3.4.0,github-api:1.86,plain-credentials:1.1,scm-api:2.2.0,structs:1.10,token-macro:1.11
 > pipeline-stage-view depends on pipeline-rest-api:2.9,workflow-job:2.0,handlebars:1.1,jquery-detached:1.2.1,momentjs:1.1
 > scm-api depends on structs:1.9
 > ansicolor depends on workflow-step-api:2.12;resolution:=optional
Skipping optional dependency workflow-step-api
Downloading plugin: workflow-basic-steps-plugin from https://updates.jenkins.io/download/plugins/workflow-basic-steps-plugin/2.6/workflow-basic-steps-plugin.hpi
 > docker-commons depends on authentication-tokens:1.1,credentials-binding:1.12,credentials:2.1.11
Downloading plugin: conditional-buildstep-plugin from https://updates.jenkins.io/download/plugins/conditional-buildstep-plugin/1.3.6/conditional-buildstep-plugin.hpi
 > timestamper depends on workflow-step-api:1.7;resolution:=optional
Skipping optional dependency workflow-step-api
 > run-condition depends on token-macro:1.5.1
Downloading plugin: ant-plugin from https://updates.jenkins.io/download/plugins/ant-plugin/1.7/ant-plugin.hpi
 > build-pipeline-plugin depends on dashboard-view:2.2;resolution:=optional,jquery:1.7.2-1,parameterized-trigger:2.17
Skipping optional dependency dashboard-view
Downloading plugin: xunit-plugin from https://updates.jenkins.io/download/plugins/xunit-plugin/1.102/xunit-plugin.hpi
Downloading plugin: workflow-step-api-plugin from https://updates.jenkins.io/download/plugins/workflow-step-api-plugin/2.14/workflow-step-api-plugin.hpi
Downloading plugin: token-macro-plugin from https://updates.jenkins.io/download/plugins/token-macro-plugin/2.3/token-macro-plugin.hpi
Downloading plugin: workflow-durable-task-step-plugin from https://updates.jenkins.io/download/plugins/workflow-durable-task-step-plugin/2.17/workflow-durable-task-step-plugin.hpi
Downloading plugin: workflow-multibranch-plugin from https://updates.jenkins.io/download/plugins/workflow-multibranch-plugin/2.16/workflow-multibranch-plugin.hpi
Downloading plugin: workflow-support-plugin from https://updates.jenkins.io/download/plugins/workflow-support-plugin/2.16/workflow-support-plugin.hpi
Downloading plugin: workflow-job-plugin from https://updates.jenkins.io/download/plugins/workflow-job-plugin/2.15/workflow-job-plugin.hpi
Downloading plugin: docker-workflow-plugin from https://updates.jenkins.io/download/plugins/docker-workflow-plugin/1.14/docker-workflow-plugin.hpi
Downloading plugin: antisamy-markup-formatter-plugin from https://updates.jenkins.io/download/plugins/antisamy-markup-formatter-plugin/1.5/antisamy-markup-formatter-plugin.hpi
Failed to download plugin: token-macro or token-macro-plugin
Downloading plugin: credentials-binding-plugin from https://updates.jenkins.io/download/plugins/credentials-binding-plugin/1.13/credentials-binding-plugin.hpi
Failed to download plugin: workflow-multibranch or workflow-multibranch-plugin
 > plain-credentials depends on credentials:2.1.5
Failed to download plugin: conditional-buildstep or conditional-buildstep-plugin
Downloading plugin: git-plugin from https://updates.jenkins.io/download/plugins/git-plugin/3.6.4/git-plugin.hpi
Downloading plugin: git-server-plugin from https://updates.jenkins.io/download/plugins/git-server-plugin/1.7/git-server-plugin.hpi
Downloading plugin: durable-task-plugin from https://updates.jenkins.io/download/plugins/durable-task-plugin/1.17/durable-task-plugin.hpi
Downloading plugin: javadoc-plugin from https://updates.jenkins.io/download/plugins/javadoc-plugin/1.4/javadoc-plugin.hpi
Downloading plugin: pipeline-milestone-step-plugin from https://updates.jenkins.io/download/plugins/pipeline-milestone-step-plugin/1.3.1/pipeline-milestone-step-plugin.hpi
Downloading plugin: pam-auth-plugin from https://updates.jenkins.io/download/plugins/pam-auth-plugin/1.3/pam-auth-plugin.hpi
Downloading plugin: pipeline-graph-analysis-plugin from https://updates.jenkins.io/download/plugins/pipeline-graph-analysis-plugin/1.5/pipeline-graph-analysis-plugin.hpi
Downloading plugin: jackson2-api-plugin from https://updates.jenkins.io/download/plugins/jackson2-api-plugin/2.8.7.0/jackson2-api-plugin.hpi
Downloading plugin: pipeline-model-extensions-plugin from https://updates.jenkins.io/download/plugins/pipeline-model-extensions-plugin/1.2.5/pipeline-model-extensions-plugin.hpi
Downloading plugin: github-api-plugin from https://updates.jenkins.io/download/plugins/github-api-plugin/1.90/github-api-plugin.hpi
Failed to download plugin: docker-workflow or docker-workflow-plugin
Downloading plugin: jquery-plugin from https://updates.jenkins.io/download/plugins/jquery-plugin/1.12.4-0/jquery-plugin.hpi
 > parameterized-trigger depends on conditional-buildstep:1.3.1,matrix-project:1.6,promoted-builds:2.25;resolution:=optional,script-security:1.25,subversion:2.5.7;resolution:=optional
Skipping optional dependency promoted-builds
Skipping optional dependency subversion
Failed to download plugin: ant or ant-plugin
Downloading plugin: ssh-credentials-plugin from https://updates.jenkins.io/download/plugins/ssh-credentials-plugin/1.13/ssh-credentials-plugin.hpi
Downloading plugin: sonar-plugin from https://updates.jenkins.io/download/plugins/sonar-plugin/2.6.1/sonar-plugin.hpi
Downloading plugin: pipeline-input-step-plugin from https://updates.jenkins.io/download/plugins/pipeline-input-step-plugin/2.8/pipeline-input-step-plugin.hpi
Downloading plugin: momentjs-plugin from https://updates.jenkins.io/download/plugins/momentjs-plugin/1.1.1/momentjs-plugin.hpi
Downloading plugin: workflow-cps-global-lib-plugin from https://updates.jenkins.io/download/plugins/workflow-cps-global-lib-plugin/2.9/workflow-cps-global-lib-plugin.hpi
Downloading plugin: pipeline-stage-tags-metadata-plugin from https://updates.jenkins.io/download/plugins/pipeline-stage-tags-metadata-plugin/1.2.5/pipeline-stage-tags-metadata-plugin.hpi
Downloading plugin: handlebars-plugin from https://updates.jenkins.io/download/plugins/handlebars-plugin/1.1.1/handlebars-plugin.hpi
Downloading plugin: mapdb-api-plugin from https://updates.jenkins.io/download/plugins/mapdb-api-plugin/1.0.9.0/mapdb-api-plugin.hpi
Downloading plugin: maven-plugin-plugin from https://updates.jenkins.io/download/plugins/maven-plugin-plugin/3.0/maven-plugin-plugin.hpi
Downloading plugin: pipeline-build-step-plugin from https://updates.jenkins.io/download/plugins/pipeline-build-step-plugin/2.5.1/pipeline-build-step-plugin.hpi
Downloading plugin: pipeline-model-declarative-agent-plugin from https://updates.jenkins.io/download/plugins/pipeline-model-declarative-agent-plugin/1.1.1/pipeline-model-declarative-agent-plugin.hpi
Downloading plugin: pipeline-rest-api-plugin from https://updates.jenkins.io/download/plugins/pipeline-rest-api-plugin/2.9/pipeline-rest-api-plugin.hpi
Failed to download plugin: ssh-credentials or ssh-credentials-plugin
Failed to download plugin: sonar or sonar-plugin
Failed to download plugin: workflow-durable-task-step or workflow-durable-task-step-plugin
Failed to download plugin: workflow-step-api or workflow-step-api-plugin
Failed to download plugin: xunit or xunit-plugin
Failed to download plugin: pam-auth or pam-auth-plugin
Downloading plugin: clone-workspace-scm-plugin from https://updates.jenkins.io/download/plugins/clone-workspace-scm-plugin/0.6/clone-workspace-scm-plugin.hpi
Downloading plugin: ldap-plugin from https://updates.jenkins.io/download/plugins/ldap-plugin/1.18/ldap-plugin.hpi
Downloading plugin: matrix-project-plugin from https://updates.jenkins.io/download/plugins/matrix-project-plugin/1.12/matrix-project-plugin.hpi
Downloading plugin: resource-disposer-plugin from https://updates.jenkins.io/download/plugins/resource-disposer-plugin/0.8/resource-disposer-plugin.hpi
Failed to download plugin: credentials-binding or credentials-binding-plugin
Failed to download plugin: git-server or git-server-plugin
Failed to download plugin: handlebars or handlebars-plugin
Failed to download plugin: workflow-cps-global-lib or workflow-cps-global-lib-plugin
Failed to download plugin: antisamy-markup-formatter or antisamy-markup-formatter-plugin
Failed to download plugin: pipeline-model-declarative-agent or pipeline-model-declarative-agent-plugin
Downloading plugin: authentication-tokens-plugin from https://updates.jenkins.io/download/plugins/authentication-tokens-plugin/1.3/authentication-tokens-plugin.hpi
Failed to download plugin: workflow-basic-steps or workflow-basic-steps-plugin
Failed to download plugin: clone-workspace-scm or clone-workspace-scm-plugin
Failed to download plugin: authentication-tokens or authentication-tokens-plugin
Failed to download plugin: workflow-support or workflow-support-plugin
Failed to download plugin: maven-plugin or maven-plugin-plugin
Failed to download plugin: git or git-plugin
Failed to download plugin: pipeline-input-step or pipeline-input-step-plugin
Failed to download plugin: workflow-job or workflow-job-plugin
Failed to download plugin: pipeline-build-step or pipeline-build-step-plugin
Failed to download plugin: pipeline-stage-tags-metadata or pipeline-stage-tags-metadata-plugin
Failed to download plugin: durable-task or durable-task-plugin
Failed to download plugin: pipeline-milestone-step or pipeline-milestone-step-plugin
Failed to download plugin: javadoc or javadoc-plugin
Failed to download plugin: momentjs or momentjs-plugin
Failed to download plugin: pipeline-rest-api or pipeline-rest-api-plugin
Failed to download plugin: mapdb-api or mapdb-api-plugin
Failed to download plugin: pipeline-graph-analysis or pipeline-graph-analysis-plugin
Failed to download plugin: matrix-project or matrix-project-plugin
Failed to download plugin: github-api or github-api-plugin
Failed to download plugin: ldap or ldap-plugin
Failed to download plugin: jackson2-api or jackson2-api-plugin
Failed to download plugin: jquery or jquery-plugin
Failed to download plugin: resource-disposer or resource-disposer-plugin
Failed to download plugin: pipeline-model-extensions or pipeline-model-extensions-plugin

WAR bundled plugins:


Installed plugins:
ace-editor:1.1
ansicolor:0.5.2
apache-httpcomponents-client-4-api:4.5.3-2.0
bouncycastle-api:2.16.2
branch-api:2.0.15
build-pipeline-plugin:1.5.7.1
build-timeout:1.19
bulk-builder:1.5
chucknorris:1.1
cloudbees-folder:6.2.1
config-file-provider:2.16.4
credentials:2.1.16
display-url-api:2.2.0
docker-commons:1.9
email-ext:2.61
external-monitor-job:1.7
git-client:2.6.0
github-branch-source:2.3.1
github:1.28.1
gitlab-hook:1.4.2
gradle:1.28
icon-shim:2.0.3
job-dsl:1.66
jobConfigHistory:2.18
jquery-detached:1.2.1
jsch:0.1.54.1
junit:1.23
mailer:1.20
matrix-auth:2.2
parameterized-trigger:2.35.2
pipeline-github-lib:1.0
pipeline-model-api:1.2.5
pipeline-model-definition:1.2.5
pipeline-stage-step:2.3
pipeline-stage-view:2.9
plain-credentials:1.4
ruby-runtime:0.12
run-condition:1.0
scm-api:2.2.5
script-security:1.36
ssh-slaves:1.22
structs:1.10
subversion:2.9
timestamper:1.8.8
windows-slaves:1.3.1
workflow-aggregator:2.5
workflow-api:2.23.1
workflow-cps:2.42
workflow-scm-step:2.6
ws-cleanup:0.34
Some plugins failed to download! Not downloaded: token-macro
Not downloaded: workflow-multibranch
Not downloaded: conditional-buildstep
Not downloaded: docker-workflow
Not downloaded: ant
Not downloaded: ssh-credentials
Not downloaded: sonar
Not downloaded: workflow-durable-task-step
Not downloaded: workflow-step-api
Not downloaded: xunit
Not downloaded: pam-auth
Not downloaded: credentials-binding
Not downloaded: git-server
Not downloaded: handlebars
Not downloaded: workflow-cps-global-lib
Not downloaded: antisamy-markup-formatter
Not downloaded: pipeline-model-declarative-agent
Not downloaded: workflow-basic-steps
Not downloaded: clone-workspace-scm
Not downloaded: authentication-tokens
Not downloaded: workflow-support
Not downloaded: maven-plugin
Not downloaded: git
Not downloaded: pipeline-input-step
Not downloaded: workflow-job
Not downloaded: pipeline-build-step
Not downloaded: pipeline-stage-tags-metadata
Not downloaded: durable-task
Not downloaded: pipeline-milestone-step
Not downloaded: javadoc
Not downloaded: momentjs
Not downloaded: pipeline-rest-api
Not downloaded: mapdb-api
Not downloaded: pipeline-graph-analysis
Not downloaded: matrix-project
Not downloaded: github-api
Not downloaded: ldap
Not downloaded: jackson2-api
Not downloaded: jquery
Not downloaded: resource-disposer
Not downloaded: pipeline-model-extensions
The command '/bin/sh -c /usr/local/bin/install-plugins.sh < /usr/share/jenkins/plugins.txt' returned a non-zero code: 1

Selenium Grid, Conference App

Hi Marcel,

I was able to start your containers but unable to get the following:

  • Selenium Grid http://${docker-machine ip default}:4444/grid/console
  • Conference App http://${docker-machine ip default}:48080/currentSessions

Am I suppose to build something in Jenkins in order to see those links active?

Once I have the containers up -- how should I navigate this demo?

Thanks,
Aliusa

Can't locate specified Dockerfile: Dockerfile

Hi, Marcel
I tried to run containers, but error occurs like the below,

$ docker-compose up -d
Creating network "dockercitoolstack_prodnetwork" with driver "bridge"
Creating volume "dockercitoolstack_nexus-data" with default driver
Creating volume "dockercitoolstack_jenkins-data" with default driver
Building nexus
ERROR: Cannot locate specified Dockerfile: Dockerfile

I guess that there is something wrong at your docker-compose.yml.
services:
nexus:
build: ./docker-nexus3 -> ./nexus

Could you check it out?

Jenkins container failing to build with error

On a clean Ubuntu 16.04 Docker host (running version: 17.05.0-ce, build 89658be) when running docker-compose (version: 1.11.2, build dfed245) up. I am getting this error:

ERROR: for jenkins  Cannot start service jenkins: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"/usr/local/bin/docker\\\" to rootfs \\\"/data/docker/aufs/mnt/14891bf80ee3497930c45f0ef94adcb75e0cb664e93ad62812fd595027e5e743\\\" at \\\"/data/docker/aufs/mnt/14891bf80ee3497930c45f0ef94adcb75e0cb664e93ad62812fd595027e5e743/usr/bin/docker\\\" caused \\\"not a directory\\\"\""
: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

I also tried this on Docker for Windows and got the same issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.