Skip to main content
added 101 characters in body
Source Link
M__
  • 13k
  • 5
  • 29
  • 46

Final approach,

docker pull registry.hzdr.de/proteinprompt/proteinprompt:latest

Final approach,

docker pull registry.hzdr.de/proteinprompt/proteinprompt:latest
run error
Source Link
MTG
  • 147
  • 9

EDIT 3:

roboczy@marcin-B550-AORUS-ELITE-AX-V2:/home/marcin/ProteinPrompt$ docker pull registry.hzdr.de/proteinprompt/proteinprompt:latest
latest: Pulling from proteinprompt/proteinprompt
5843afab3874: Already exists 
72c585c386a3: Already exists 
87d798ddb41c: Already exists 
316f048b0253: Pull complete 
ae11eb6b6512: Pull complete 
d3dc3767a31c: Pull complete 
ea3dbaf26ce1: Pull complete 
061c354f8f77: Pull complete 
60eb5484e32a: Pull complete 
0625cf0fe317: Pull complete 
442818fdc663: Pull complete 
203550cafc1f: Pull complete 
Digest: sha256:01f0251f34313437e5fcc2dbb26d1ec1103d50aef6335b2261a2048be8ed0813
Status: Downloaded newer image for registry.hzdr.de/proteinprompt/proteinprompt:latest
registry.hzdr.de/proteinprompt/proteinprompt:latest


roboczy@marcin-B550-AORUS-ELITE-AX-V2:/home/marcin/ProteinPrompt$ docker images
REPOSITORY                                     TAG           IMAGE ID       CREATED         SIZE
alphafold                                      latest        c41a4b5e9d48   13 days ago     10GB
registry.hzdr.de/proteinprompt/proteinprompt   latest        cd99d22f3cb2   18 months ago   1.93GB
nvidia/cuda                                    11.0.3-base   4f3e95122fab   23 months ago   122MB


roboczy@marcin-B550-AORUS-ELITE-AX-V2:/home/marcin/ProteinPrompt$ docker run  -v $(pwd)/data:/data proteinprompt search -f data/input.fa -o data/output.csv
Unable to find image 'proteinprompt:latest' locally
docker: Error response from daemon: pull access denied for proteinprompt, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

Do you know what is wrong?

EDIT 3:

roboczy@marcin-B550-AORUS-ELITE-AX-V2:/home/marcin/ProteinPrompt$ docker pull registry.hzdr.de/proteinprompt/proteinprompt:latest
latest: Pulling from proteinprompt/proteinprompt
5843afab3874: Already exists 
72c585c386a3: Already exists 
87d798ddb41c: Already exists 
316f048b0253: Pull complete 
ae11eb6b6512: Pull complete 
d3dc3767a31c: Pull complete 
ea3dbaf26ce1: Pull complete 
061c354f8f77: Pull complete 
60eb5484e32a: Pull complete 
0625cf0fe317: Pull complete 
442818fdc663: Pull complete 
203550cafc1f: Pull complete 
Digest: sha256:01f0251f34313437e5fcc2dbb26d1ec1103d50aef6335b2261a2048be8ed0813
Status: Downloaded newer image for registry.hzdr.de/proteinprompt/proteinprompt:latest
registry.hzdr.de/proteinprompt/proteinprompt:latest


roboczy@marcin-B550-AORUS-ELITE-AX-V2:/home/marcin/ProteinPrompt$ docker images
REPOSITORY                                     TAG           IMAGE ID       CREATED         SIZE
alphafold                                      latest        c41a4b5e9d48   13 days ago     10GB
registry.hzdr.de/proteinprompt/proteinprompt   latest        cd99d22f3cb2   18 months ago   1.93GB
nvidia/cuda                                    11.0.3-base   4f3e95122fab   23 months ago   122MB


roboczy@marcin-B550-AORUS-ELITE-AX-V2:/home/marcin/ProteinPrompt$ docker run  -v $(pwd)/data:/data proteinprompt search -f data/input.fa -o data/output.csv
Unable to find image 'proteinprompt:latest' locally
docker: Error response from daemon: pull access denied for proteinprompt, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

Do you know what is wrong?

dockerfile edit
Source Link
MTG
  • 147
  • 9

EDIT 2:

I try to edit dockerfile (in several places)

FROM continuumio/miniconda3:4.10.3-alpine
MAINTAINER Sebastian Canzler <[email protected]>
LABEL authors="[email protected]" \
    description="Docker image of ProteinPrompt - a tool to predict protein-protein interactions based on amino acid sequences."
RUN apt-get update && apt-get install -y git #<-----HERE

#Try This to get a bash in order to run 'source activate modfinder'
RUN rm /bin/sh && ln -s /bin/bash /bin/sh

RUN conda update -n base conda
COPY ./data/proteinPrompt.yml /
RUN conda env update --name root -f /proteinPrompt.yml && \
    rm -rf /opt/conda/pkgs/*
ENV PATH /opt/conda/envs/proteinPrompt/bin:$PATH
# copy the proteinPrompt files
RUN mkdir /proteinPrompt/
COPY ./proteinPrompt/*py /proteinPrompt/
ENV PATH /proteinPrompt:$PATH

# get the random forest model from zenodo
RUN mkdir /model/
#COPY ./data/rf_human_750_inv.rev.pkl /model/random_forest.pkl
RUN wget https://zenodo.org/record/5708224/files/rf_human_750_inv.rev.pkl?download=1 -O /model/random_forest.pkl
COPY ./data/all.proteins.HUMAN.autocorrelation.pbz2 /model/all.proteins.HUMAN.autocorrelation.pbz2



# make proteinPrompt executable
ENTRYPOINT ["python", "/proteinPrompt/ProteinPrompt.py"]
#CMD ["-h"]

but there is a bash problem:

roboczy@marcin-B550-AORUS-ELITE-AX-V2:/home/marcin/ProteinPrompt$ docker build -t dockerfile .
[+] Building 1.6s (10/15)                                                       
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 1.23kB                                     0.0s
 => [internal] load metadata for docker.io/continuumio/miniconda3:4.10.3-  1.0s
 => [ 1/11] FROM docker.io/continuumio/miniconda3:4.10.3-alpine@sha256:e0  0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 650B                                          0.0s
 => CACHED [ 2/11] RUN rm /bin/sh && ln -s /bin/bash /bin/sh               0.0s
 => CACHED [ 3/11] RUN conda update -n base conda                          0.0s
 => CACHED [ 4/11] COPY ./data/proteinPrompt.yml /                         0.0s
 => CACHED [ 5/11] RUN conda env update --name root -f /proteinPrompt.yml  0.0s
 => ERROR [ 6/11] RUN apt-get update && apt-get install -y git             0.5s
------
 > [ 6/11] RUN apt-get update && apt-get install -y git:
#0 0.537 /bin/ash: apt-get: not found
------
WARNING: buildx: failed to read current commit information with git rev-parse --is-inside-work-tree
Dockerfile:15
--------------------
  13 |         rm -rf /opt/conda/pkgs/*
  14 |     ENV PATH /opt/conda/envs/proteinPrompt/bin:$PATH
  15 | >>> RUN apt-get update && apt-get install -y git
  16 |     
  17 |     # copy the proteinPrompt files
--------------------
ERROR: failed to solve: process "/bin/ash -eo pipefail -c apt-get update && apt-get install -y git" did not complete successfully: exit code: 127

EDIT 2:

I try to edit dockerfile (in several places)

FROM continuumio/miniconda3:4.10.3-alpine
MAINTAINER Sebastian Canzler <[email protected]>
LABEL authors="[email protected]" \
    description="Docker image of ProteinPrompt - a tool to predict protein-protein interactions based on amino acid sequences."
RUN apt-get update && apt-get install -y git #<-----HERE

#Try This to get a bash in order to run 'source activate modfinder'
RUN rm /bin/sh && ln -s /bin/bash /bin/sh

RUN conda update -n base conda
COPY ./data/proteinPrompt.yml /
RUN conda env update --name root -f /proteinPrompt.yml && \
    rm -rf /opt/conda/pkgs/*
ENV PATH /opt/conda/envs/proteinPrompt/bin:$PATH
# copy the proteinPrompt files
RUN mkdir /proteinPrompt/
COPY ./proteinPrompt/*py /proteinPrompt/
ENV PATH /proteinPrompt:$PATH

# get the random forest model from zenodo
RUN mkdir /model/
#COPY ./data/rf_human_750_inv.rev.pkl /model/random_forest.pkl
RUN wget https://zenodo.org/record/5708224/files/rf_human_750_inv.rev.pkl?download=1 -O /model/random_forest.pkl
COPY ./data/all.proteins.HUMAN.autocorrelation.pbz2 /model/all.proteins.HUMAN.autocorrelation.pbz2



# make proteinPrompt executable
ENTRYPOINT ["python", "/proteinPrompt/ProteinPrompt.py"]
#CMD ["-h"]

but there is a bash problem:

roboczy@marcin-B550-AORUS-ELITE-AX-V2:/home/marcin/ProteinPrompt$ docker build -t dockerfile .
[+] Building 1.6s (10/15)                                                       
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 1.23kB                                     0.0s
 => [internal] load metadata for docker.io/continuumio/miniconda3:4.10.3-  1.0s
 => [ 1/11] FROM docker.io/continuumio/miniconda3:4.10.3-alpine@sha256:e0  0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 650B                                          0.0s
 => CACHED [ 2/11] RUN rm /bin/sh && ln -s /bin/bash /bin/sh               0.0s
 => CACHED [ 3/11] RUN conda update -n base conda                          0.0s
 => CACHED [ 4/11] COPY ./data/proteinPrompt.yml /                         0.0s
 => CACHED [ 5/11] RUN conda env update --name root -f /proteinPrompt.yml  0.0s
 => ERROR [ 6/11] RUN apt-get update && apt-get install -y git             0.5s
------
 > [ 6/11] RUN apt-get update && apt-get install -y git:
#0 0.537 /bin/ash: apt-get: not found
------
WARNING: buildx: failed to read current commit information with git rev-parse --is-inside-work-tree
Dockerfile:15
--------------------
  13 |         rm -rf /opt/conda/pkgs/*
  14 |     ENV PATH /opt/conda/envs/proteinPrompt/bin:$PATH
  15 | >>> RUN apt-get update && apt-get install -y git
  16 |     
  17 |     # copy the proteinPrompt files
--------------------
ERROR: failed to solve: process "/bin/ash -eo pipefail -c apt-get update && apt-get install -y git" did not complete successfully: exit code: 127
what im done
Source Link
MTG
  • 147
  • 9
Loading
Source Link
MTG
  • 147
  • 9
Loading