instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.6k stars 2.48k forks source link

Docker build fails on stable #1702

Open eliknebel opened 4 years ago

eliknebel commented 4 years ago

Summary:

When trying to build the docker image on stable branch, the following error occurs:

 ---> Running in 53f26e17a682
+ chown docker:docker /usr/src/app/
+ sed -i -E 's|http://dl-cdn.alpinelinux.org/alpine|http://dl-cdn.alpinelinux.org/alpine/|g' /etc/apk/repositories
+ apk add --no-cache bash coreutils file g++ git icu-dev imagemagick libffi-dev libxml2-dev libxslt-dev make 'postgresql-client~=12.2' 'postgresql-dev~=12.2' py2-pip python2 ruby-dev sqlite sqlite-dev tzdata xmlsec xmlsec-dev
fetch http://dl-cdn.alpinelinux.org/alpine//v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine//v3.11/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  postgresql-client-12.4-r0:
    breaks: world[postgresql-client~12.2]
  postgresql-dev-12.4-r0:
    breaks: world[postgresql-dev~12.2]
The command '/bin/sh -c set -eux;     chown docker:docker $APP_HOME     && sed -i -E "s|http://dl-cdn.alpinelinux.org/alpine|${ALPINE_MIRROR}|g" /etc/apk/repositories   && apk add --no-cache     bash     coreutils     file     g++     git     icu-dev     imagemagick     libffi-dev     libxml2-dev     libxslt-dev     make     postgresql-client~=$POSTGRES_CLIENT     postgresql-dev~=$POSTGRES_CLIENT     py2-pip     python2     ruby-dev     sqlite     sqlite-dev     tzdata     xmlsec     xmlsec-dev   && apk add --no-cache --virtual .pbzip2deps     bzip2-dev     && apk add --no-cache --repository http://mirrors.gigenet.com/alpinelinux/v3.10/main     py2-lxml     && cd /tmp/   && wget -q https://launchpad.net/pbzip2/1.1/1.1.13/+download/pbzip2-1.1.13.tar.gz   && tar -xzf pbzip2-1.1.13.tar.gz   && cd pbzip2-1.1.13/   && make install   && apk del --no-network .pbzip2deps   && cd $APP_HOME   && rm -r /tmp/pbzip2-1.1.13/     && ln -s /usr/bin/python2 /usr/local/bin/python' returned a non-zero code: 2

Changing line line 10 in Dockerfile from

ARG POSTGRES_CLIENT=12.2

to

ARG POSTGRES_CLIENT=12.4-r0

Fixes the issue

Steps to reproduce:

  1. Checkout stable branch and run docker build -t canvas-lms .

Expected behavior:

Docker image builds

Actual behavior:

Docker image fails to build

Additional notes:

FossPrime commented 3 years ago
sudo apt update
sudo apt install icu-devtools ruby-full

I really think dory should not be recommended... it killed my entire home network and is completely unnecessary for a quickstart dev environment when .localhosts works on edge and chrome... for Firefox just use /etc/hosts