OpenBazaar-Server icon indicating copy to clipboard operation
OpenBazaar-Server copied to clipboard

Error creating docker container using Dockerfile

Open camponez opened this issue 9 years ago • 7 comments

Brief Description:

Operating System (OS and version): Ubuntu 15.10 OpenBazaar version: master HEAD (944570bb8b452c5170) Hardware: PC

Reproducible (Always / Almost Always / Sometimes / Rarely / Couldn't Reproduce): Always

Steps to reproduce:

  1. Try to create a docker container: docker build .

Observed Behavior: ...........

Installing collected packages: PyYAML, bandit, coverage, mock, nose, logilab-common, astroid, pylint, sh, python-coveralls Found existing installation: coverage 4.0.3 Uninstalling coverage-4.0.3: Successfully uninstalled coverage-4.0.3 Found existing installation: mock 1.3.0 Uninstalling mock-1.3.0: Successfully uninstalled mock-1.3.0 Found existing installation: nose 1.3.7 Uninstalling nose-1.3.7: Successfully uninstalled nose-1.3.7 Rolling back uninstall of nose Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 317, in run prefix=options.prefix_path, File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 732, in install **kwargs File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 835, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 1030, in move_wheel_files isolated=self.isolated, File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 376, in move_wheel_files clobber(source, dest, False, fixer=fixer, filter=filter) File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 315, in clobber ensure_dir(destdir) File "/usr/local/lib/python2.7/dist-packages/pip/utils/init.py", line 83, in ensure_dir os.makedirs(path) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 2] No such file or directory: '/usr/local/man/man1'

Expected Behavior: OpenBazaar Server running.

camponez avatar Apr 05 '16 08:04 camponez

Fixed it :) https://github.com/OpenBazaar/OpenBazaar-Server/pull/331

Mikadily avatar Apr 05 '16 23:04 Mikadily

@Mikadily not enough, pylint seems to be required in another check

./scripts/pycheck.sh
ERROR: pylint not installed.

grigio avatar Apr 06 '16 09:04 grigio

Removing this line in the Dockerfile fix the issue:

RUN make

It seems you need to disable the code checks if you want to compile the image :(

grigio avatar Apr 06 '16 09:04 grigio

@grigio pylint is in test_requirements.txt Where are you trying to build it? I once had an error on AWS but it's fine on DO.

Mikadily avatar Apr 06 '16 13:04 Mikadily

This is the Dockerfile I use and it works https://github.com/grigio/docker-apps/blob/master/openbazaar-server/Dockerfile

@Mikadily also in the make command

grigio avatar Apr 06 '16 16:04 grigio

When I remove the line: RUN pip install mock coverage nose pylint and line: RUN make it worked.

camponez avatar Apr 06 '16 18:04 camponez

I stumbled upon the same error on a completely unrelated project. The offending pip-package seems to be nose, which throws an error on reinstallation or upgrade.

FROM ubuntu:14.04  # fail on debian:wheezy as well
RUN apt-get update && apt-get install python-pip
RUN pip install --upgrade pip
RUN pip install nose==1.3.6
RUN pip install nose==1.3.7

lenolib avatar Jun 13 '16 11:06 lenolib