Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image is broken! #31

Open
moadqassem opened this issue Dec 16, 2018 · 0 comments
Open

Docker image is broken! #31

moadqassem opened this issue Dec 16, 2018 · 0 comments

Comments

@moadqassem
Copy link

OS: macOS Mojave
Docker Edition: Version 18.03.1-ce-mac65 (24312)
Channel: stable

I tried to build the docker image in order to run the lib without being dependent on my mac setup. The image is actually broken due to not updating the links and procedures to fetch those dependencies:

Step 10/11 : RUN ["/bin/bash", "-c", "pip install -r requirements.txt"] ---> Running in 90832d3e48fe torch-0.4.0-cp36-cp36m-linux_x86_64.whl is not a supported wheel on this platform. You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. The command '/bin/bash -c pip install -r requirements.txt' returned a non-zero code: 1

Fixed the issue by changing the docker build file:
1- Remove this line:
RUN ["/bin/bash", "-c", "pip install -r requirements.txt"]

2- Run the container in the interactive mode:
docker run -it [IMAGE-NAME]

3- Install the python-3.5, pip3 and their dependencies manually and run the main.py.

This how I ve done it to make sure I am installing the right things, however the best solution would be to do all these changes on the image building level.

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

No branches or pull requests

1 participant