Cookiecutter-django: Docker image not building.

Created on 5 Jul 2018  路  4Comments  路  Source: pydanny/cookiecutter-django

What happened?

When building docker-compose image, fails with the following error:

ERROR: unsatisfiable constraints:
  openssl-dev-1.0.2o-r0:
    conflicts:
               libressl-dev-2.6.5-r0[pc:libcrypto=1.0.2o]
               libressl-dev-2.6.5-r0[pc:libssl=1.0.2o]
               libressl-dev-2.6.5-r0[pc:openssl=1.0.2o]
    satisfies: world[openssl-dev]
  libressl-dev-2.6.5-r0:
    conflicts:
               openssl-dev-1.0.2o-r0[pc:libcrypto=2.6.5]
               openssl-dev-1.0.2o-r0[pc:libssl=2.6.5]
               openssl-dev-1.0.2o-r0[pc:openssl=2.6.5]
    satisfies:
               postgresql-dev-10.4-r0[libressl-dev]

returning a non-zero code: 3

What should've happened instead?

The docker-compose should have worked without problem.

Steps to reproduce

Trying to build any of the docker-compose files.

Additional info.

Looking for a solution, it looks than is related to a dependency constrain reported in gliderlabs/docker-alpine#303

I was able to fix it deleting the library from the Dockerfile, but my docker skills are not that sharp and I'm not aware if that impacted somehow, but looks like it didn't.

Most helpful comment

I had a similar problem.
I managed to solve it by replacing openssl-dev with libressl-dev in ./compose/local/django/Dockerfile

However, on another OS this problem arose again, and this time I decided to replace libressl-dev with openssl-dev back.

All 4 comments

I had a similar problem.
I managed to solve it by replacing openssl-dev with libressl-dev in ./compose/local/django/Dockerfile

However, on another OS this problem arose again, and this time I decided to replace libressl-dev with openssl-dev back.

I also had a similar problem, I can confirm that Narnikgamarnikus solution worked.

Which version of the template are you using? I think this dependency was removed in https://github.com/pydanny/cookiecutter-django/pull/1661, which is currently on master. Is it in a project you've generated before that time? If so, this issue could be closed. Maybe would be worth an entry in the troubleshooting section? Feel free to send a pull request.

You're right @browniebroke, there is no need for this anymore.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webyneter picture webyneter  路  3Comments

japrogramer picture japrogramer  路  4Comments

bluesurfer picture bluesurfer  路  4Comments

webyneter picture webyneter  路  3Comments

huydbui picture huydbui  路  3Comments