File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- FROM debian:wheezy
1
+ FROM debian:jessie
2
2
3
3
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
4
4
RUN groupadd -r mongodb && useradd -r -g mongodb mongodb
@@ -41,7 +41,7 @@ RUN set -ex \
41
41
ENV MONGO_MAJOR 3.2
42
42
ENV MONGO_VERSION 3.2.9
43
43
44
- RUN echo "deb http://repo.mongodb.org/apt/debian wheezy /mongodb-org/$MONGO_MAJOR main" > /etc/apt/sources.list.d/mongodb-org.list
44
+ RUN echo "deb http://repo.mongodb.org/apt/debian jessie /mongodb-org/$MONGO_MAJOR main" > /etc/apt/sources.list.d/mongodb-org.list
45
45
46
46
RUN set -x \
47
47
&& apt-get update \
Original file line number Diff line number Diff line change @@ -22,8 +22,11 @@ for version in "${versions[@]}"; do
22
22
major=' testing'
23
23
fi
24
24
25
+ from=" $( awk -F ' [[:space:]]+' ' toupper($1) == "FROM" { print $2; exit }' " $version /Dockerfile" ) " # "debian:xxx"
26
+ suite=" ${from#*: } " # "wheezy" or "jessie"
27
+
25
28
if [ " ${version%% .* } " -ge 3 ]; then
26
- packagesUrl=" http://repo.mongodb.org/apt/debian/dists/wheezy /mongodb-org/$major /main/binary-amd64/Packages"
29
+ packagesUrl=" http://repo.mongodb.org/apt/debian/dists/$suite /mongodb-org/$major /main/binary-amd64/Packages"
27
30
else
28
31
packagesUrl=' http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/10gen/binary-amd64/Packages'
29
32
fi
You can’t perform that action at this time.
0 commit comments