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

Broken docker build #19

Closed
killswitch-GUI opened this issue Oct 17, 2019 · 6 comments
Closed

Broken docker build #19

killswitch-GUI opened this issue Oct 17, 2019 · 6 comments

Comments

@killswitch-GUI
Copy link

killswitch-GUI commented Oct 17, 2019

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
Copy link

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
Copy link
Contributor

@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
Copy link
Contributor

tehtbl commented Dec 6, 2019

Hi,

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

cheers,
Thomas

@daddydrac
Copy link

@tehtbl do you know when this will be fixed?

@tiangolo
Copy link
Owner

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
Copy link
Author

@tiangolo yes thanks so much for the awesome project!

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

6 participants