tiangolo / full-stack-fastapi-couchbase

Full stack, modern web application generator. Using FastAPI, Couchbase as database, Docker, automatic HTTPS and more.
MIT License
442 stars 83 forks source link

Broken docker build #19

Closed killswitch-GUI closed 4 years ago

killswitch-GUI commented 5 years ago
docker-compose up -d                                                                                                                                                          ✔
Building backend
Step 1/9 : FROM tiangolo/uvicorn-gunicorn-fastapi:python3.6
 ---> 71af2e82d548
Step 2/9 : RUN wget -O - http://packages.couchbase.com/ubuntu/couchbase.key | apt-key add -
 ---> Using cache
 ---> 8ac43f6bf52e
Step 3/9 : RUN echo "deb http://packages.couchbase.com/ubuntu stretch stretch/main" > /etc/apt/sources.list.d/couchbase.list
 ---> Using cache
 ---> 302582854baf
Step 4/9 : RUN apt-get update && apt-get install -y libcouchbase-dev libcouchbase2-bin build-essential
 ---> Running in 2d0088f6b501
Get:1 http://packages.couchbase.com/ubuntu stretch InRelease [3036 B]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:4 http://packages.couchbase.com/ubuntu stretch/stretch/main amd64 Packages [1438 B]
Get:5 http://security.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 Packages [7899 kB]
Get:7 http://security.debian.org/debian-security buster/updates/main amd64 Packages [99.2 kB]
Get:8 http://deb.debian.org/debian buster-updates/main amd64 Packages [5792 B]
Fetched 8218 kB in 2s (4472 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libcouchbase2-bin : Depends: libcouchbase2-libevent (= 2.10.3-1) but it is not going to be installed
                     Depends: libevent-core-2.0-5 (>= 2.0.10-stable) but it is not installable
E: Unable to correct problems, you have held broken packages.
ERROR: Service 'backend' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y libcouchbase-dev libcouchbase2-bin build-essential' returned a non-zero code: 100
holnburger commented 5 years ago

I had the same error so I looked into backend/backend.dockerfile. In line 5 change the line to RUN echo "deb http://packages.couchbase.com/ubuntu bionic bionic/main" > /etc/apt/sources.list.d/couchbase.list

(or respectively to your used ubuntu version) It was a pretty old repo in there.

Gjacquenot commented 5 years ago

@killswitch-GUI , @holnburger , @tiangolo , I met the same problem yesterday. I have proposed a pull request to fix this. It looks for the correct os name and download the corresponding couchbase version.

tehtbl commented 5 years ago

Hi,

I've created another PR, integrating this PR and the fixes from full-stack-fastapi-postgresql/pull/86.

cheers, Thomas

daddydrac commented 4 years ago

@tehtbl do you know when this will be fixed?

tiangolo commented 4 years ago

Thanks for the discussion here!

The PR fixing it is now in master , so this should be fixed now.

May we close this issue @killswitch-GUI ?

killswitch-GUI commented 4 years ago

@tiangolo yes thanks so much for the awesome project!