Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Error when building gevent for db containers #545

Open
Bibelo opened this issue Jul 8, 2021 · 3 comments
Open

Error when building gevent for db containers #545

Bibelo opened this issue Jul 8, 2021 · 3 comments

Comments

@Bibelo
Copy link

Bibelo commented Jul 8, 2021

Hello

When building the image for the last version of the DB container with the Dockerfile,

I have this error :

  ERROR: Failed building wheel for gevent
  Building wheel for PyYAML (PEP 517): started
  Building wheel for PyYAML (PEP 517): finished with status 'done'
  Created wheel for PyYAML: filename=PyYAML-5.4.1-cp39-cp39-linux_x86_64.whl size=45655 sha256=9ebe5e765ae4eb9c86db5856905e1f64cda4dbc07faa4619725aa71bcccad4ee
  Stored in directory: /tmp/pip-ephem-wheel-cache-aek50y4x/wheels/b7/a5/c4/504d913c2a55bb09c607541578ec5f844d1ff33467abe93ba5
Successfully built PyYAML
Failed to build gevent
ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed directly
ERROR: Service 'db' failed to build

Please is this related to the disclaimer found on the front page of this GIT :

The current state of this repository doesn't work out-of-the box since Mattermost server v5.31+ requires PostgreSQL versions of 10 or higher.

In this case, when would that be solved?

Thank you!

@rubberneck
Copy link

rubberneck commented Jul 10, 2021

Not sure how helpful this is but I was able to get this to build by adding py3-gevent to the apk add in the db/Dockerfile. I only started it for a few minuets and didn't really use it for production. I moved my setup the the omnibus package and just needed to get the docker version upgraded to the latest version. This did let it build and it came up and i could login but i didn't use it anymore than that before moving to the omnibus version.

diff --git a/db/Dockerfile b/db/Dockerfile
index d9aed44..51c64a1 100644
--- a/db/Dockerfile
+++ b/db/Dockerfile
@@ -1,4 +1,4 @@
-FROM postgres:10-alpine
+FROM postgres:13.3-alpine
 
 ENV DEFAULT_TIMEZONE UTC
 # Mandatory nowdays with PG 10
@@ -16,6 +16,7 @@ RUN apk add --no-cache \
       py3-pip \
       py-cryptography \
       pv \
+      py3-gevent \
     && pip install --upgrade pip \
     && pip --no-cache-dir install -c pip-constraints.txt 'wal-e<1.0.0' envdir \
     && rm -rf /var/cache/apk/* /tmp/* /var/tmp/*

@hmkim
Copy link

hmkim commented Jul 23, 2021

@rubberneck

In my case, I solved this issue by
RUN apk add py3-gevent

@hmkim
Copy link

hmkim commented Jul 23, 2021

After compose up, I can't boot up the DB container normally.

스크린샷 2021-07-23 오후 3 19 04

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants