File tree Expand file tree Collapse file tree 6 files changed +34
-13
lines changed Expand file tree Collapse file tree 6 files changed +34
-13
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ dist: trusty
4
4
sudo : required
5
5
language : python
6
6
python :
7
- - " 2.7"
7
+ - " 2.7.15 "
8
8
env :
9
9
- >
10
10
DISTRIBUTION=ubuntu
Original file line number Diff line number Diff line change 1
1
FROM amazonlinux:2
2
2
3
3
# This is needed so that ansible managed to read "ansible_default_ipv4"
4
- RUN yum install iproute -y
4
+ # This step is needed since standard CentOS docker image does not come with i
5
+ # This package seems to be required for Mongo 3.2 and downwards
6
+ RUN yum install iproute initscripts -y
5
7
6
8
# we can has SSH
7
9
EXPOSE 22
8
10
9
- # This step is needed since standard CentOS docker image does not come with i
10
- # This package seems to be required for Mongo 3.2 and downwards
11
- RUN yum install initscripts -y
12
-
13
11
# pepare for takeoff
14
12
CMD ["/usr/sbin/init"]
Original file line number Diff line number Diff line change 1
1
FROM centos:6
2
2
3
3
# This is needed so that ansible managed to read "ansible_default_ipv4"
4
- RUN yum install iproute -y
5
-
6
4
# This step is needed since standard CentOS docker image does not come with EPEL installed by default
7
- RUN yum install epel-release -y
5
+ RUN yum install iproute epel-release -y
8
6
9
7
# we can has SSH
10
8
EXPOSE 22
Original file line number Diff line number Diff line change 1
1
FROM centos:7
2
2
3
3
# This is needed so that ansible managed to read "ansible_default_ipv4"
4
- RUN yum install iproute -y
5
-
6
4
# This step is needed since standard CentOS docker image does not come with EPEL installed by default
7
- RUN yum install epel-release -y
5
+ RUN yum install iproute epel-release -y
8
6
9
7
# we can has SSH
10
8
EXPOSE 22
Original file line number Diff line number Diff line change @@ -2,6 +2,20 @@ FROM ubuntu:16.04
2
2
3
3
ARG DEBIAN_FRONTEND=noninteractive
4
4
5
+ RUN apt update && \
6
+ apt install --yes python-pip curl jq && \
7
+ pip install apt-select && \
8
+ EXTERNAL_IP=`curl -s https://ipinfo.io/ip` && \
9
+ echo "EXTERNAL_IP is ${EXTERNAL_IP}" && \
10
+ DATA_IP=`curl -s https://json.geoiplookup.io/$EXTERNAL_IP` && \
11
+ echo $DATA_IP && \
12
+ COUNTRY_IP=`echo $DATA_IP | jq '.country_code' | tr -d '"'` && \
13
+ apt-select -C $COUNTRY_IP -t 1 -m one-week-behind && \
14
+ cat sources.list && \
15
+ cp /etc/apt/sources.list /etc/apt/sources.list.backup && \
16
+ mv -f sources.list /etc/apt/
17
+
5
18
RUN apt update && \
6
19
apt install --yes python-minimal iproute2 && \
7
- rm /lib/systemd/system/
[email protected]
20
+ rm -f /lib/systemd/system/
[email protected]
21
+
Original file line number Diff line number Diff line change @@ -2,6 +2,19 @@ FROM ubuntu:18.04
2
2
3
3
ARG DEBIAN_FRONTEND=noninteractive
4
4
5
+ RUN apt update && \
6
+ apt install --yes python-pip curl jq && \
7
+ pip install apt-select && \
8
+ EXTERNAL_IP=`curl -s https://ipinfo.io/ip` && \
9
+ echo "EXTERNAL_IP is ${EXTERNAL_IP}" && \
10
+ DATA_IP=`curl -s https://json.geoiplookup.io/$EXTERNAL_IP` && \
11
+ echo $DATA_IP && \
12
+ COUNTRY_IP=`echo $DATA_IP | jq '.country_code' | tr -d '"'` && \
13
+ apt-select -C $COUNTRY_IP -t 1 -m one-week-behind && \
14
+ cat sources.list && \
15
+ cp /etc/apt/sources.list /etc/apt/sources.list.backup && \
16
+ mv -f sources.list /etc/apt/
17
+
5
18
RUN apt update && \
6
19
apt install --yes python-minimal systemd gnupg iproute2
7
20
You can’t perform that action at this time.
0 commit comments