Closed Bug 1292937 Opened 8 years ago Closed 3 years ago

Docker build fails

Categories

(Webtools Graveyard :: Air Mozilla, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: fahrradflucht, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:50.0) Gecko/20100101 Firefox/50.0
Build ID: 20160806004002

Steps to reproduce:

0. I have Docker for Mac (1.12.0) installed which ships with docker-compose installed.
1. I cloned the airmozilla repo (ff80f42).
2. I copied airmozilla/settings/local.py-dist to airmozilla/settings/local.py
3. I applied the changes stated in https://github.com/mozilla/airmozilla#how-to-get-it-running-with-docker-compose
4. I ran docker-compose up


Actual results:

Got an error on Step 12 : RUN pip install -r requirements.txt 

Failstep Logs:
https://gist.github.com/Fahrradflucht/fe09d2c1e2fa6bec843d2d6290961092


Expected results:

No errors -.-

(Those questions are sometimes awful)
It happens because the pip that runs that pip install is too old. 
At some point `python bin/pipstrap.py` needs to be run.
Status: UNCONFIRMED → NEW
Ever confirmed: true
This doesn't make my Docker build work but it gets quite a bit further now. 
THe next error I get is this::

WARNING: Image for service web was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating airmozilla_db_1
Creating airmozilla_memcached_1
Creating airmozilla_web_1

ERROR: for web  driver failed programming external connectivity on endpoint airmozilla_web_1 (84c35d64a3da2b6595891dfd9ab24f061df771f8bd588f92461425019247abd2): Error starting userland proxy: Bind for 0.0.0.0:8000 failed: port is already allocated
Traceback (most recent call last):
  File "/opt/boxen/homebrew/Cellar/docker-compose/1.7.1/libexec/bin/docker-compose", line 9, in <module>
    load_entry_point('docker-compose==1.7.1', 'console_scripts', 'docker-compose')()
  File "/opt/boxen/homebrew/Cellar/docker-compose/1.7.1/libexec/lib/python2.7/site-packages/compose/cli/main.py", line 63, in main
    log.error(e.msg)
AttributeError: 'ProjectError' object has no attribute 'msg'
(airmozilla)
Leonard, Do you have any idea what's up with the latest Docker errors?
For me it works after your patch. (It's ultra slow though, I probably have to increase memory for docker.)

The error you get suggests that the port is already in use and the first warning is just strange. It doesn't really make sense to tell that it was rebuild and then give instructions on how to rebuild, does it?

Have you deleted all orphan containers of airmozilla? (Check if there are any with `docker ps -a`) Sometimes container reuse messes up docker-compose.

Platform deprecated.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: