mpc-bioinformatics / McQuaC

Transform the Quality Control workflow from Knime into a workflow in Nextflow
Other
2 stars 0 forks source link

Error when creating Docker container #14

Closed di-hardt closed 1 year ago

di-hardt commented 1 year ago
No virtualenv has been created for this project yet!
Aborted!
Warning: the environment variable LANG is not set!
We recommend setting this in ~/.profile (or equivalent) for proper expected behavior.
Warning: Python 3.9 was not found on your system...
Installing CPython 3.9.17 with /root/.pyenv/bin/pyenv (this may take a few minutes)...

✔ Success!
Warning: The Python you just installed is not available on your PATH, apparently.
The command '/bin/sh -c bash setup_pyenv_downlaod_extract_openms.sh' returned a non-zero code: 1
di-hardt commented 1 year ago

Command used: docker build -t mpc/next-qc-flow:dev -f docker/Dockerfile .

Luxxii commented 1 year ago

Fixed it and removed the pipenv-dependency. I checked manually if java (Pia/Dinosaur) and OpenMS is working. The only thing i am a bit worried is about matching features with identifications, since in the docker PyOpenMS 3.0.0 probably will be installed (older versions have some incompatibilities with newer python versions). Feel free to optimize the Dockerfile.

Here an excerpt of building (via: docker build -t nextqcflow:latest . -f docker/Dockerfile )

[+] Building 70.0s (15/15) FINISHED                                                                  docker:default
 => [internal] load build definition from Dockerfile                                                           0.0s
 => => transferring dockerfile: 1.44kB                                                                         0.0s
 => [internal] load .dockerignore                                                                              0.0s
 => => transferring context: 2B                                                                                0.0s
 => resolve image config for docker.io/docker/dockerfile:1                                                     0.9s
 => CACHED docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f  0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                0.6s
 => [1/8] FROM docker.io/library/ubuntu:22.04@sha256:0bced47fffa3361afa981854fcabcd4577cd43cebbb808cea2b1f33a  0.0s
 => [internal] load build context                                                                              0.1s
 => => transferring context: 32.91kB                                                                           0.1s
 => CACHED [2/8] RUN apt-get update &&     apt-get install -y bash mono-complete openjdk-17-jre python3 pytho  0.0s
 => [3/8] COPY . /root/nextflowqc                                                                              0.5s
 => [4/8] WORKDIR /root/nextflowqc                                                                             0.0s
 => [5/8] RUN chmod +x setup_pyenv_downlaod_extract_openms.sh                                                  0.4s
 => [6/8] RUN bash setup_pyenv_downlaod_extract_openms.sh                                                     46.1s
 => [7/8] RUN chmod +x bin/*                                                                                   0.5s 
 => [8/8] RUN python -m pip install nextflow                                                                   2.0s 
 => exporting to image                                                                                        18.3s 
 => => exporting layers                                                                                       18.2s 
 => => writing image sha256:deb5709158528312793ab8c2114e9568139fe84a57e7c9ab8fe89733aa31e537                   0.0s 
 => => naming to docker.io/library/nextqcflow:latest                                                           0.0s