underscore-ebook-template icon indicating copy to clipboard operation
underscore-ebook-template copied to clipboard

Docker image fails to build due to package dependency constraints

Open YourPsychiatrist opened this issue 5 years ago • 2 comments

When running the command docker build -t underscore/book . as instructed in the README, the image build fails with the following error message:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for pandoc-crossref-0.2.5.0:
    containers-0.6.0.1 from stack configuration does not match >=0.1 && <0.6  (latest matching
                       version is 0.5.11.0)
needed since pandoc-crossref is a build target.

In the dependencies for syb-0.6:
    base-4.12.0.0 from stack configuration does not match >=4.0 && <4.10  (latest matching version
                  is 4.9.1.0)
needed since syb is a build target.

Some different approaches to resolving this:

  * Set 'allow-newer: true'
    in /root/.stack/config.yaml to ignore all version constraints and build anyway.

  * Build requires unattainable version of base. Since base is a part of GHC, you most likely need
    to use a different GHC version with the matching base.

Plan construction failed.
The command '/bin/sh -c stack install pandoc roman-numerals-0.5.1.5 syb-0.6 pandoc-crossref-0.2.5.0 pandoc-include-0.0.1' returned a non-zero code: 1

Consider updating the Dockerfile or adding instructions to the README on how to fix the conflicts manually.

YourPsychiatrist avatar Jan 30 '20 08:01 YourPsychiatrist

I think we can get away with building the image from a Node or Scala base image. The underscoreio/book image has a bunch of dependencies that we are not actually using here (most notably pandit-include). I’m playing with this in a branch off of Noel’s branch, where I’m also trying to reduce our reliance on Grunt, Coffeescript, and other oddities from the JavaScript ecosystem. I’ll try to post something for review in the next day or so.

On 30 January 2020 at 08:29:16, Niklas Vest ([email protected]) wrote:

When running the command docker build -t underscore/book . as instructed in the README https://github.com/underscoreio/underscore-ebook-template/blob/develop/README.md, the image build fails with the following error message:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for pandoc-crossref-0.2.5.0: containers-0.6.0.1 from stack configuration does not match >=0.1 && <0.6 (latest matching version is 0.5.11.0) needed since pandoc-crossref is a build target.

In the dependencies for syb-0.6: base-4.12.0.0 from stack configuration does not match >=4.0 && <4.10 (latest matching version is 4.9.1.0) needed since syb is a build target.

Some different approaches to resolving this:

  • Set 'allow-newer: true' in /root/.stack/config.yaml to ignore all version constraints and build anyway.

  • Build requires unattainable version of base. Since base is a part of GHC, you most likely need to use a different GHC version with the matching base.

Plan construction failed. The command '/bin/sh -c stack install pandoc roman-numerals-0.5.1.5 syb-0.6 pandoc-crossref-0.2.5.0 pandoc-include-0.0.1' returned a non-zero code: 1

Consider updating the Dockerfile or adding instructions to the README on how to fix the conflicts manually.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/underscoreio/underscore-ebook-template/issues/20?email_source=notifications&email_token=AABYRZYN5UUQFRPL4CQNJ5DRAKFVZA5CNFSM4KNRZPVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJYJRBA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABYRZ77LDNY6EREVETB73DRAKFVZANCNFSM4KNRZPVA .

davegurnell avatar Jan 30 '20 10:01 davegurnell

Any updates yet?

YourPsychiatrist avatar Feb 22 '20 14:02 YourPsychiatrist