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

error in pipeline-docker.md #9

Open
maryam95hallal opened this issue Sep 19, 2021 · 1 comment
Open

error in pipeline-docker.md #9

maryam95hallal opened this issue Sep 19, 2021 · 1 comment

Comments

@maryam95hallal
Copy link

Their is an error or something missing from the dockerfile
I have used your instruction on how to create a docker image from conda environment file yet that error appear.
my dockerfile is the folder I selected as my workdir in the docker file.

executor failed running [/bin/sh -c conda env update -n root -f LTDSE.yml && conda clean -a]: exit code: 1

FROM continuumio/miniconda
WORKDIR /home/pc/Desktop/tracking frameworks/LTDSE_ENV
COPY LTDSE.yaml .
RUN \
   conda env update -n root -f LTDSE.yml \
&& conda clean -a
@maryam95hallal
Copy link
Author

This is a working example on how to create and activate conda from dockerfile, yet I have a problem with environment paths (path of numpy and scipy is not setted after installation from dockerfile

FROM continuumio/miniconda

WORKDIR /home/pc/Desktop/docker_LTDSE/src

COPY src/ .

RUN conda env create -f LTDSE.yaml

# Make RUN commands use the new environment:
SHELL ["conda", "run", "--no-capture-output", "-n", "LTDSE", "/bin/bash", "-c"]

EXPOSE 5003
# The code to run when container is started:
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "LTDSE", "python3", "src/LT_DSE_Demo.py"]

the error generated:
#failed error in 1108.5 Building wheel for pycocotools (setup.py): finished with status 'error',
pycocotools needs numpy and scipy to work.

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