marcelbirkner / docker-ci-tool-stack

Docker Infrastructure via docker-compose (Jenkins, SonarQube, Nexus, GitLab, Selenium Grid)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-compose error

jetch-elbahi opened this issue · comments

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

@jetch-elbahi this happens because Java version 8u152 is no more available on Oracle site. You should change Dockerfile inside docker-nexus gitmodule repo:

ENV JAVA_HOME=/opt/java \
    JAVA_VERSION_MAJOR=8 \
    *JAVA_VERSION_MINOR=171 \*
    *JAVA_VERSION_BUILD=11 \*
    *JAVA_DOWNLOAD_HASH=512cd62ec5174c3487ac17c61aaa89e8*

Remove the subproject docker-nexus3 and relink from master. This used the openjdk, and avoids issues with oracle java not being available.