Skip to content

Commit c469986

Browse files
committed
[docker] fix mongo shell install
1 parent 198e401 commit c469986

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

dockerfiles/pipelines/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ MAINTAINER Yasset Perez-Riverol <[email protected]>
1919

2020
################## INSTALLATION ######################
2121

22-
RUN apt-get update && apt-get install wget git
22+
RUN apt-get update && apt-get install -y wget git
2323
RUN python -m pip install requests
2424
RUN python --version
2525
RUN pip --version
@@ -30,8 +30,8 @@ RUN cd /biocontainers-backend && pip install -r biocontainers/requirements.txt &
3030
ENV PYTHONPATH /biocontainers-backend
3131

3232
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
33-
RUN echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | tee /etc/apt/sources.list.d/mongodb.list
34-
RUN apt-get update && apt-get install -y --allow-unauthenticated mongodb-org-shell
33+
RUN echo "deb [trusted=yes] http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | tee /etc/apt/sources.list.d/mongodb.list
34+
RUN apt-get --allow-insecure-repositories update && apt-get --allow-unauthenticated install -y mongodb-org-shell
3535

3636

3737
ADD run.sh /biocontainers-backend/run.sh

dockerfiles/service/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ MAINTAINER Yasset Perez-Riverol <[email protected]>
1919

2020
################## INSTALLATION ######################
2121

22-
RUN apt-get update && apt-get install wget git
22+
RUN apt-get update && apt-get install -y wget git
2323
RUN python -m pip install requests
2424
RUN python --version
2525
RUN pip --version
@@ -30,9 +30,10 @@ RUN cd /biocontainers-backend && pip install -r biocontainers/requirements.txt &
3030
ENV PYTHONPATH /biocontainers-backend
3131

3232
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
33-
RUN echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | tee /etc/apt/sources.list.d/mongodb.list
34-
RUN apt-get update && apt-get install -y --allow-unauthenticated mongodb-org-shell
35-
33+
#RUN echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | tee /etc/apt/sources.list.d/mongodb.list
34+
#RUN apt-get update && apt-get install -y --allow-unauthenticated mongodb-org-shell
35+
RUN echo "deb [trusted=yes] http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | tee /etc/apt/sources.list.d/mongodb.list
36+
RUN apt-get --allow-insecure-repositories update && apt-get --allow-unauthenticated install -y mongodb-org-shell
3637

3738

3839
ADD run.sh /biocontainers-backend/run.sh

0 commit comments

Comments
 (0)