ChurchCRM / Docker

Docker Setup of Church CRM
0 stars 20 forks source link

Docker-Compose Fail #7

Closed savionlee closed 7 years ago

savionlee commented 7 years ago

System: Windows 10 Home, Docker Tools 64

After changing the default passwords, I tried to build and receive this error

Step 1 : FROM jaskipper/alpine-apache-php7
 ---> 78ccb0ae3896
Step 2 : MAINTAINER ChurchCRM
 ---> Using cache
 ---> 363192a154e7
Step 3 : RUN apk update && apk upgrade &&     printf "Build of skipper/alpine-apache, date: %s\n"  `date -u +"%Y-%m-%dT%H:%M:%SZ"` >> /etc/BUILD
 ---> Running in 162d40fcaabf
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
fetch http://dl-4.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
fetch http://dl-4.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch https://nl.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
v3.4.6-44-g5076b2f [http://dl-cdn.alpinelinux.org/alpine/v3.4/main]
v3.4.6-33-g38ef2d2 [http://dl-cdn.alpinelinux.org/alpine/v3.4/community]
v3.5.0-446-gfb41b70411 [http://dl-4.alpinelinux.org/alpine/edge/community]
v3.5.0-444-gca2e022e48 [http://dl-4.alpinelinux.org/alpine/edge/testing]
v3.5.0-446-gfb41b70411 [https://nl.alpinelinux.org/alpine/edge/main]
OK: 15830 distinct packages available
ERROR: unsatisfiable constraints:
  icu-libs-58.2-r1:
    masked in: @edge
    satisfies:
               php7-intl-7.0.14-r5[so:libicui18n.so.58]
               php7-intl-7.0.14-r5[so:libicuio.so.58]
               php7-intl-7.0.14-r5[so:libicuuc.so.58]

ERROR: Service 'churchcrm' failed to build: The command '/bin/sh -c apk update && apk upgrade &&     printf "Build of skipper/alpine-apache, date: %s\n"  `date -u +"%Y-%m-%dT%H:%M:%SZ"` >> /etc/BUILD' returned a non-zero code: 2

Any Ideas as to the issue?

savionlee commented 7 years ago

Solved my Windows Docker build problem by editing the Dockerfile to be as such.

FROM jaskipper/alpine-apache-php7
MAINTAINER ChurchCRM

RUN apk update
RUN apk upgrade --repository http://dl-4.alpinelinux.org/alpine/edge/community \
                --repository https://nl.alpinelinux.org/alpine/edge/main

    # Make info file about this build
    # printf "Build of skipper/alpine-apache, date: %s\n"  `date -u +"%Y-%m-%dT%H:%M:%SZ"` >> /etc/BUILD

RUN apk add --no-cache \
            jq \
            php7-session@community \
            php7-pdo@community \
            php7-xml@community \
            php7-exif@community \
            php7-pdo_mysql@community \
            php7-gettext@community \
            php7-iconv@community

RUN mkdir /web/churchcrm

COPY httpd.conf /etc/apache2
COPY 60-churchcrm /etc/run_always

RUN chmod +x /etc/run_always/60-churchcrm

# Enable Terminal
ENV TERM xterm
jaskipper commented 7 years ago

The last PR built perfectly on hub.docker.com.