Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Build Error #164

Closed
avitus-pereira opened this issue Mar 9, 2020 · 10 comments
Closed

Docker Build Error #164

avitus-pereira opened this issue Mar 9, 2020 · 10 comments
Labels
bug Good first issue Easy issue that new contributors may like to pick up to get themselves familiar with the repository. Hacktoberfest Easy issues for attracting Hacktoberfest participants.

Comments

@avitus-pereira
Copy link
Contributor

Tried this on a fresh install of docker. After i run
docker-compose build

I get the following error --

ERROR: unsatisfiable constraints: so:libproj.so.19 (missing): required by: libspatialite-4.3.0a-r8[so:libproj.so.19] ERROR: Service 'controller' failed to build: The command '/bin/sh -c apk add --no-cache --update zlib-dev jpeg-dev libffi-dev gettext gcc openssl tzdata && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing --update geos-dev gdal-dev libspatialite && apk add --no-cache --update --virtual .build-deps postgresql-dev git build-base linux-headers openssl-dev' returned a non-zero code: 2

@atb00ker
Copy link
Member

atb00ker commented Mar 9, 2020

Oh I hate alpine for this reason, they remove packages, we'll need to move this image to Debian. 😄

@atb00ker atb00ker added the bug label Mar 9, 2020
@atb00ker
Copy link
Member

atb00ker commented Mar 9, 2020

I am not going to prioritize it because I doubt it affects a lot of people.
However, this may be a good starting point:

RUN apt update && \
    apt install --yes --no-install-recommends zlib1g-dev libjpeg-dev gdal-bin gcc sqlite3 libsqlite3-dev openssl libssl-dev gdal-bin libproj-dev libgeos-dev libspatialite-dev libsqlite3-mod-spatialite redis

@avitus-pereira
Copy link
Contributor Author

Small typo
libsqlite3-mod-spatialits --should be-- libsqlite3-mod-spatialite

Thanks the the build works now

@atb00ker
Copy link
Member

atb00ker commented Mar 9, 2020

P.S: We may need to point redis from localhost:6379 to redis:6379, read here: #158 (comment)

@atb00ker atb00ker reopened this Mar 13, 2020
@atb00ker
Copy link
Member

I think this issue is not complete, the image is still the alpine one and according to the original question, the alpine image is not working, hence it still needs to be fixed.

@avitus-pereira
Copy link
Contributor Author

Yes. I changed it to debian and it was working. Didnt make any changes to the alpine version.

@avitus-pereira
Copy link
Contributor Author

I enabled the alpine community repo in the docker file which fixed the build issue. The build is working fine. Let me know if this is an acceptable fix.

RUN echo -e "http://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories

There are some other errors which are more to do with versions which i will paste later.

@atb00ker
Copy link
Member

Let me know if this is an acceptable fix.

I think it's better for us to move to Debian instead because alpine has been a maintenance hungry image, it keeps breaking!

@atb00ker atb00ker added Good first issue Easy issue that new contributors may like to pick up to get themselves familiar with the repository. Hacktoberfest Easy issues for attracting Hacktoberfest participants. labels Sep 23, 2020
@dwang
Copy link

dwang commented Oct 5, 2020

Looks like the Dockerfile was already changed to Debian in 99b5366. I think this can be closed.

@nemesifier
Copy link
Member

Thanks everyone.

codingHahn added a commit to codingHahn/openwisp-controller that referenced this issue Feb 6, 2023
With docker, the application only connects to redis if the hostname is
set to redis. Localhost does not work because of dockers networking.
Fixes openwisp#164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Good first issue Easy issue that new contributors may like to pick up to get themselves familiar with the repository. Hacktoberfest Easy issues for attracting Hacktoberfest participants.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants