Open anotherrohit opened 6 years ago
I am getting the same error.
Solution for me was to change ENV TOMCAT_VERSION 8.5.29 into ENV TOMCAT_VERSION 8.5.31 in iiq-build/Dockerfile. Also always check if www-eu.apache.org is running at https://www.apache.org/mirrors/.
I made a pull request #2 to fix this.
@zygimantus I am still having the error after changing ENV TOMCAT_VERSION 8.5.31 in iiq-build/Dockerfile. Also made sure wget is available on macos with a brew install wget --quiet --no-cookies http://www-eu.apache.org/dist/tomcat/tomcat-8/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.tar.gz -O /tmp/tomcat.tgz && tar xzvf /tmp/tomcat.tgz -C /opt && mv /opt/apache-tomcat-${TOMCAT_VERSION} /opt/tomcat && rm /tmp/tomcat.tgz && rm -rf /opt/tomcat/webapps/examples && rm -rf /opt/tomcat/webapps/docs && rm -rf /opt/tomcat/webapps/ROOT
But docker compose fails at the exact same step. Any other changes made?
Try to change eu.apache.org to us-apache.org. eu.apache.org for some reasons is not working.
@zygimantus That did it. Docker compose build worked. However, docker-compose up shows a different error which cannot start the db. Were you able to get past this? What was the os used? ERROR: for db Cannot start service db: b'Mounts denied: \r\nThe path /srv/sailpoint-docker/db\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.' ERROR: Encountered errors while bringing up the project.
@anotherrohit nice to hear that you managed to build it. I was using Windows 10 and I can confirm that docker-compose up is working. Maybe this link will help you: https://stackoverflow.com/questions/34442831/permission-denied-when-mounting-docker-volume-in-osx ?
@zygimantus Thanks for that information. I tried the suggestion added this in the DockerFile FROM mysql:5.6 RUN usermod -u 1000 mysql RUN mkdir -p /var/run/mysqld RUN chmod -R 777 /var/run/mysqld But no luck. posted the same on the stackoverflow link
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com gpg: key EEA14886: public key "Totally Legit Signing Key mallory@example.org" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) Ign http://deb.debian.org jessie InRelease Hit http://deb.debian.org jessie-updates InRelease Hit http://security.debian.org jessie/updates InRelease Hit http://deb.debian.org jessie Release.gpg Get:1 http://ppa.launchpad.net trusty InRelease [15.5 kB] Ign http://ppa.launchpad.net trusty InRelease Get:2 http://security.debian.org jessie/updates/main amd64 Packages [932 kB] Get:3 http://deb.debian.org jessie-updates/main amd64 Packages [20 B] Get:4 http://ppa.launchpad.net trusty/main Sources [20 B] Hit http://deb.debian.org jessie Release Get:5 http://deb.debian.org jessie/main amd64 Packages [9098 kB] Get:6 http://ppa.launchpad.net trusty/main amd64 Packages [20 B] Fetched 10.0 MB in 2s (3568 kB/s) Reading package lists... W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886 Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package oracle-java8-installer ERROR: Service 'iiq' failed to build: The command '/bin/sh -c echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list && echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 && apt-get update && apt-get install -y oracle-java8-installer && rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/oracle-jdk8-installer' returned a non-zero code: 100
Do you know what this error suggests. on docker compose build ERROR: Service 'iiq' failed to build: The command '/bin/sh -c wget --quiet --no-cookies http://www-eu.apache.org/dist/tomcat/tomcat-8/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.tar.gz -O /tmp/tomcat.tgz && tar xzvf /tmp/tomcat.tgz -C /opt && mv /opt/apache-tomcat-${TOMCAT_VERSION} /opt/tomcat && rm /tmp/tomcat.tgz && rm -rf /opt/tomcat/webapps/examples && rm -rf /opt/tomcat/webapps/docs && rm -rf /opt/tomcat/webapps/ROOT' returned a non-zero code: 8