Skip to content

Commit

Permalink
Merge branch '7.2.x' into 7.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
wadhwa1 committed Apr 28, 2023
2 parents 9d394af + 88c288a commit 4c87d13
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
Expand Up @@ -7,7 +7,13 @@ RUN tar xvf openjdk-17.0.1_linux-x64_bin.tar.gz
RUN sudo mv jdk-17*/ /opt/jdk17
RUN rm -rf openjdk-17.0.1_linux-x64_bin.tar.gz

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
Expand Up @@ -7,7 +7,13 @@ RUN tar xvf openjdk-17.0.1_linux-x64_bin.tar.gz
RUN sudo mv jdk-17*/ /opt/jdk17
RUN rm -rf openjdk-17.0.1_linux-x64_bin.tar.gz

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 @@ -136,7 +136,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 4c87d13

Please sign in to comment.