Skip to content

Commit

Permalink
Merge branch '7.1.x' into 7.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
wadhwa1 committed Apr 28, 2023
2 parents 86931f1 + 82ac7c0 commit 88c288a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
8 changes: 7 additions & 1 deletion molecule/Dockerfile-debian-archive.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
FROM {{ item.image }}

RUN echo 'deb [check-valid-until=no] http://ftp.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list
RUN echo 'deb [check-valid-until=no] http://archive.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list

RUN sed -i s/ftp.debian.org/archive.debian.org/g /etc/apt/sources.list
RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
RUN sed -i s/security.debian.org/archive.debian.org/g /etc/apt/sources.list
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
RUN sed -i s/ftp.debian.org/archive.debian.org/g /etc/apt/sources.list.d/stretch-backports.list

RUN apt-get update && \
apt-get install --no-install-recommends --yes \
Expand Down
8 changes: 7 additions & 1 deletion molecule/Dockerfile-debian-java8.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
FROM {{ item.image }}

RUN echo 'deb [check-valid-until=no] http://ftp.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list
RUN echo 'deb [check-valid-until=no] http://archive.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list

RUN sed -i s/ftp.debian.org/archive.debian.org/g /etc/apt/sources.list
RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
RUN sed -i s/security.debian.org/archive.debian.org/g /etc/apt/sources.list
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
RUN sed -i s/ftp.debian.org/archive.debian.org/g /etc/apt/sources.list.d/stretch-backports.list

RUN apt-get update && \
apt-get install --no-install-recommends --yes \
Expand Down
8 changes: 7 additions & 1 deletion molecule/Dockerfile-debian.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
FROM {{ item.image }}

RUN echo 'deb [check-valid-until=no] http://ftp.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list
RUN echo 'deb [check-valid-until=no] http://archive.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list

RUN sed -i s/ftp.debian.org/archive.debian.org/g /etc/apt/sources.list
RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
RUN sed -i s/security.debian.org/archive.debian.org/g /etc/apt/sources.list
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
RUN sed -i s/ftp.debian.org/archive.debian.org/g /etc/apt/sources.list.d/stretch-backports.list

RUN apt-get update && \
apt-get install --no-install-recommends --yes \
Expand Down
2 changes: 1 addition & 1 deletion roles/common/tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
- name: Add stretch-backports Repo
lineinfile:
path: /etc/apt/sources.list
line: deb [check-valid-until=no] http://ftp.debian.org/debian stretch-backports main
line: deb [check-valid-until=no] http://archive.debian.org/debian stretch-backports main
regexp: '.*stretch-backports.*'
notify:
- debian apt-get update
Expand Down

0 comments on commit 88c288a

Please sign in to comment.