shopwareArchive / shopware-docker

A docker setup ready for shopware development
74 stars 37 forks source link

Building server-container stops with error message #33

Closed sribo23 closed 5 years ago

sribo23 commented 5 years ago

I am unable to build the containers. There seems to be a problem while locating the package openjdk-8-jre-headless.

Here is the output: ./psh.phar docker:start

###################
Starting Execution of 'docker:start' ('dev-ops/docker/actions/start.sh')

(1/6) Starting
> echo "COMPOSE_PROJECT_NAME: ${COMPOSE_PROJECT_NAME}"
    COMPOSE_PROJECT_NAME:

(2/6) Starting
> dev-ops/docker/containers/scriptcreator.sh
    Created /Users/**/Docker_Projects/shopware-docker/dev-ops/docker/containers/php7/createuser.sh
    Created /Users/**/Docker_Projects/shopware-docker/dev-ops/docker/containers/mysql/createuser.sh

(3/6) Starting
> docker-compose build && docker-compose up -d
    Building app_mysql
    Step 1/9 : FROM mysql:5.7
     ---> 5195076672a7
    Step 2/9 : RUN apt-get update   && apt-get install --no-install-recommends -y      vim      netcat-openbsd
     ---> Using cache
     ---> 9679c83c7e6d
    Step 3/9 : ADD dev.cnf /etc/mysql/conf.d/dev.cnf
     ---> Using cache
     ---> e68ea141c6b8
    Step 4/9 : ADD remote-access.cnf /etc/mysql/conf.d/remote-access.cnf
     ---> Using cache
     ---> 8754fa8167db
    Step 5/9 : ADD performance-schema.cnf /etc/mysql/conf.d/performance-schema.cnf
     ---> Using cache
     ---> a69034e92c68
    Step 6/9 : COPY createuser.sh /tmp/createuser.sh
     ---> Using cache
     ---> 8dec1944b3ef
    Step 7/9 : RUN chmod +rwx /tmp/createuser.sh
     ---> Using cache
     ---> 1294cbb68649
    Step 8/9 : RUN /tmp/createuser.sh
     ---> Using cache
     ---> 4e03d0d1b8be
    Step 9/9 : COPY grant.sql /docker-entrypoint-initdb.d/grant.sql
     ---> Using cache
     ---> cc8797b949be
    Successfully built cc8797b949be
    Successfully tagged shopware-docker_app_mysql:latest
    Building app_server
    Step 1/34 : FROM php:7.1-apache
     ---> 8ba2766b8c34
    Step 2/34 : RUN apt-get update -qq && apt-get install -y -qq apt-utils && mkdir -p /usr/share/man/man1     && apt-get update -qq && apt-get install -y -qq openjdk-8-jre-headless     && apt-get update -qq && apt-get install -y -qq  openjdk-8-jdk && dpkg --configure -a
     ---> Running in fa2868e595a7
    debconf: delaying package configuration, since apt-utils is not installed
    Selecting previously unselected package libapt-inst1.5:amd64.
(Reading database ... 13425 files and directories currently installed.)
    Preparing to unpack .../libapt-inst1.5_1.0.9.8.4_amd64.deb ...
    Unpacking libapt-inst1.5:amd64 (1.0.9.8.4) ...
    Selecting previously unselected package apt-utils.
    Preparing to unpack .../apt-utils_1.0.9.8.4_amd64.deb ...
    Unpacking apt-utils (1.0.9.8.4) ...
    Setting up libapt-inst1.5:amd64 (1.0.9.8.4) ...
    Setting up apt-utils (1.0.9.8.4) ...
    Processing triggers for libc-bin (2.19-18+deb8u10) ...
    E: Unable to locate package openjdk-8-jre-headless
    Service 'app_server' failed to build: The command '/bin/sh -c apt-get update -qq && apt-get install -y -qq apt-utils && mkdir -p /usr/share/man/man1     && apt-get update -qq && apt-get install -y -qq openjdk-8-jre-headless     && apt-get update -qq && apt-get install -y -qq  openjdk-8-jdk && dpkg --configure -a' returned a non-zero code: 100

Execution aborted, a subcommand failed
teiling88 commented 5 years ago

Unfortunately I can't reproduce your issue. My container build was successful :-\ image

sribo23 commented 5 years ago

My php image was outdated. So I had to update my image with docker pull php:7.1-apache. Now the container build is also successful for me :-)