[jessie based docker] remove dependency on some retired jessie repos (#2707)
* [jessie repo] remove one dependency on jessie-backport repo Signed-off-by: Ying Xie <ying.xie@microsoft.com> * [build] remove dependency on retried jessie-backports repo The downloaded Jessie docker image still reference jessie-updates. Removing it from the list. Signed-off-by: Ying Xie <ying.xie@microsoft.com> * fix typo * move chunk * [docker-ptf] avoid using retired Jessie repos Signed-off-by: Ying Xie <ying.xie@microsoft.com>
This commit is contained in:
parent
14e3c60ae4
commit
5043e229eb
@ -1,5 +1,8 @@
|
||||
FROM debian:jessie
|
||||
|
||||
## Remove retired jessie-updates repo
|
||||
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
|
||||
|
||||
# Clean documentation in FROM image
|
||||
RUN find /usr/share/doc -depth \( -type f -o -type l \) ! -name copyright | xargs rm || true
|
||||
|
||||
@ -28,12 +31,9 @@ RUN apt-get -y install \
|
||||
vim-tiny \
|
||||
perl \
|
||||
python \
|
||||
rsyslog \
|
||||
less
|
||||
|
||||
# Install a newer version of rsyslog from jessie-backports in hopes of
|
||||
# eliminating memory leaks
|
||||
RUN apt-get -y -t jessie-backports install rsyslog
|
||||
|
||||
COPY ["etc/rsyslog.conf", "/etc/rsyslog.conf"]
|
||||
COPY ["etc/rsyslog.d/*", "/etc/rsyslog.d/"]
|
||||
COPY ["root/.vimrc", "/root/.vimrc"]
|
||||
|
@ -5,4 +5,3 @@ deb http://debian-archive.trafficmanager.net/debian/ jessie main contrib non-fre
|
||||
deb-src http://debian-archive.trafficmanager.net/debian/ jessie main contrib non-free
|
||||
deb http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free
|
||||
deb-src http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free
|
||||
deb http://debian-archive.trafficmanager.net/debian/ jessie-backports main contrib non-free
|
||||
|
@ -2,6 +2,9 @@ FROM debian:jessie
|
||||
|
||||
MAINTAINER Pavel Shirshov
|
||||
|
||||
## Remove retired jessie-updates repo
|
||||
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
|
||||
|
||||
## Copy dependencies
|
||||
COPY \
|
||||
{% for deb in docker_ptf_debs.split(' ') -%}
|
||||
|
@ -2,11 +2,13 @@ FROM debian:jessie
|
||||
|
||||
MAINTAINER johnar@microsoft.com
|
||||
|
||||
## Remove retired jessie-updates repo
|
||||
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
|
||||
|
||||
RUN echo "deb http://debian-archive.trafficmanager.net/debian/ jessie main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb-src http://debian-archive.trafficmanager.net/debian/ jessie main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb-src http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb http://debian-archive.trafficmanager.net/debian/ jessie-backports main contrib non-free" >> /etc/apt/sources.list
|
||||
echo "deb-src http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free" >> /etc/apt/sources.list
|
||||
|
||||
## Make apt-get non-interactive
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
Loading…
Reference in New Issue
Block a user