File tree Expand file tree Collapse file tree 5 files changed +17
-2
lines changed Expand file tree Collapse file tree 5 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ ENV TZ=Etc/UTC
4
4
ENV DEBIAN_FRONTEND=noninteractive
5
5
6
6
RUN set -eux; \
7
+ sed -i -e 's/archive.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \
8
+ sed -i -e 's/security.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \
9
+ sed -i -e 's/http/https/g' /etc/apt/sources.list ; \
7
10
apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 ; \
8
11
apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv 656408E390CFB1F5 ; \
9
12
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list; \
Original file line number Diff line number Diff line change 1
- FROM adoptopenjdk/openjdk16:latest
1
+ FROM adoptopenjdk/openjdk16:latest
2
2
3
3
ENV TZ=Etc/UTC
4
4
ENV DEBIAN_FRONTEND=noninteractive
5
5
6
6
RUN set -eux; \
7
+ sed -i -e 's/archive.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \
8
+ sed -i -e 's/security.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \
9
+ sed -i -e 's/http/https/g' /etc/apt/sources.list ; \
7
10
apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 ; \
8
11
apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv 656408E390CFB1F5 ; \
9
12
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list; \
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ ENV TZ=Etc/UTC
4
4
ENV DEBIAN_FRONTEND=noninteractive
5
5
6
6
RUN RUN set -eux; \
7
+ sed -i -e 's/archive.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \
8
+ sed -i -e 's/security.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \
9
+ sed -i -e 's/http/https/g' /etc/apt/sources.list ; \
7
10
apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 ; \
8
11
apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 ; \
9
12
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list; \
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ ENV TZ=Etc/UTC
4
4
ENV DEBIAN_FRONTEND=noninteractive
5
5
6
6
RUN set -eux; \
7
+ sed -i -e 's/archive.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \
8
+ sed -i -e 's/security.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \
9
+ sed -i -e 's/http/https/g' /etc/apt/sources.list ; \
7
10
apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 ; \
8
11
apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv 656408E390CFB1F5 ; \
9
12
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list; \
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ ENV TZ=Etc/UTC
4
4
ENV DEBIAN_FRONTEND=noninteractive
5
5
6
6
RUN set -eux; \
7
+ sed -i -e 's/archive.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \
8
+ sed -i -e 's/security.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list; \
9
+ sed -i -e 's/http/https/g' /etc/apt/sources.list ; \
7
10
apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 wget ; \
8
11
# MongoDB 5.0 release signing key
9
12
apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv B00A0BD1E2C63C11 ; \
@@ -12,6 +15,6 @@ RUN set -eux; \
12
15
echo ${TZ} > /etc/timezone;
13
16
14
17
RUN apt-get update; \
15
- apt-get install -y mongodb-org=5.0.0 mongodb-org-server=5.0.0 mongodb-org-shell=5.0.0 mongodb-org-mongos=5.0.0 mongodb-org-tools=5.0.0 ; \
18
+ apt-get install -y mongodb-org=5.0.3 mongodb-org-server=5.0.3 mongodb-org-shell=5.0.3 mongodb-org-mongos=5.0.3 mongodb-org-tools=5.0.3 ; \
16
19
apt-get clean; \
17
20
rm -rf /var/lib/apt/lists/*;
You can’t perform that action at this time.
0 commit comments