Use https for osuosl respository
Per requirement "using https where possible" https://github.com/docker-library/official-images#image-build ca-certificates apt-transport-https are used later in the Dockerfile so get them marked as manual.
This commit is contained in:
parent
ed2b8c5144
commit
3b187bd9b0
@ -21,9 +21,10 @@ RUN set -ex; \
|
||||
# https://github.com/tianon/gosu/releases
|
||||
ENV GOSU_VERSION 1.12
|
||||
RUN set -eux; \
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends ca-certificates wget; \
|
||||
apt-get install -y --no-install-recommends ca-certificates apt-transport-https; \
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get install -y --no-install-recommends wget; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \
|
||||
wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; \
|
||||
@ -77,7 +78,7 @@ ENV MARIADB_VERSION 1:10.2.37+maria~bionic
|
||||
# (https://downloads.mariadb.org/mariadb/+releases/)
|
||||
|
||||
RUN set -e;\
|
||||
echo "deb http://ftp.osuosl.org/pub/mariadb/repo/$MARIADB_MAJOR/ubuntu bionic main" > /etc/apt/sources.list.d/mariadb.list; \
|
||||
echo "deb https://ftp.osuosl.org/pub/mariadb/repo/$MARIADB_MAJOR/ubuntu bionic main" > /etc/apt/sources.list.d/mariadb.list; \
|
||||
{ \
|
||||
echo 'Package: *'; \
|
||||
echo 'Pin: release o=MariaDB'; \
|
||||
|
@ -21,9 +21,10 @@ RUN set -ex; \
|
||||
# https://github.com/tianon/gosu/releases
|
||||
ENV GOSU_VERSION 1.12
|
||||
RUN set -eux; \
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends ca-certificates wget; \
|
||||
apt-get install -y --no-install-recommends ca-certificates apt-transport-https; \
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get install -y --no-install-recommends wget; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \
|
||||
wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; \
|
||||
@ -77,7 +78,7 @@ ENV MARIADB_VERSION 1:10.3.28+maria~focal
|
||||
# (https://downloads.mariadb.org/mariadb/+releases/)
|
||||
|
||||
RUN set -e;\
|
||||
echo "deb http://ftp.osuosl.org/pub/mariadb/repo/$MARIADB_MAJOR/ubuntu focal main" > /etc/apt/sources.list.d/mariadb.list; \
|
||||
echo "deb https://ftp.osuosl.org/pub/mariadb/repo/$MARIADB_MAJOR/ubuntu focal main" > /etc/apt/sources.list.d/mariadb.list; \
|
||||
{ \
|
||||
echo 'Package: *'; \
|
||||
echo 'Pin: release o=MariaDB'; \
|
||||
|
@ -21,9 +21,10 @@ RUN set -ex; \
|
||||
# https://github.com/tianon/gosu/releases
|
||||
ENV GOSU_VERSION 1.12
|
||||
RUN set -eux; \
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends ca-certificates wget; \
|
||||
apt-get install -y --no-install-recommends ca-certificates apt-transport-https; \
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get install -y --no-install-recommends wget; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \
|
||||
wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; \
|
||||
@ -77,7 +78,7 @@ ENV MARIADB_VERSION 1:10.4.18+maria~focal
|
||||
# (https://downloads.mariadb.org/mariadb/+releases/)
|
||||
|
||||
RUN set -e;\
|
||||
echo "deb http://ftp.osuosl.org/pub/mariadb/repo/$MARIADB_MAJOR/ubuntu focal main" > /etc/apt/sources.list.d/mariadb.list; \
|
||||
echo "deb https://ftp.osuosl.org/pub/mariadb/repo/$MARIADB_MAJOR/ubuntu focal main" > /etc/apt/sources.list.d/mariadb.list; \
|
||||
{ \
|
||||
echo 'Package: *'; \
|
||||
echo 'Pin: release o=MariaDB'; \
|
||||
|
@ -21,9 +21,10 @@ RUN set -ex; \
|
||||
# https://github.com/tianon/gosu/releases
|
||||
ENV GOSU_VERSION 1.12
|
||||
RUN set -eux; \
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends ca-certificates wget; \
|
||||
apt-get install -y --no-install-recommends ca-certificates apt-transport-https; \
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get install -y --no-install-recommends wget; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \
|
||||
wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; \
|
||||
@ -77,7 +78,7 @@ ENV MARIADB_VERSION 1:10.5.9+maria~focal
|
||||
# (https://downloads.mariadb.org/mariadb/+releases/)
|
||||
|
||||
RUN set -e;\
|
||||
echo "deb http://ftp.osuosl.org/pub/mariadb/repo/$MARIADB_MAJOR/ubuntu focal main" > /etc/apt/sources.list.d/mariadb.list; \
|
||||
echo "deb https://ftp.osuosl.org/pub/mariadb/repo/$MARIADB_MAJOR/ubuntu focal main" > /etc/apt/sources.list.d/mariadb.list; \
|
||||
{ \
|
||||
echo 'Package: *'; \
|
||||
echo 'Pin: release o=MariaDB'; \
|
||||
|
@ -21,9 +21,10 @@ RUN set -ex; \
|
||||
# https://github.com/tianon/gosu/releases
|
||||
ENV GOSU_VERSION 1.12
|
||||
RUN set -eux; \
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends ca-certificates wget; \
|
||||
apt-get install -y --no-install-recommends ca-certificates apt-transport-https; \
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
apt-get install -y --no-install-recommends wget; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \
|
||||
wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; \
|
||||
@ -77,7 +78,7 @@ ENV MARIADB_VERSION %%MARIADB_VERSION%%
|
||||
# (https://downloads.mariadb.org/mariadb/+releases/)
|
||||
|
||||
RUN set -e;\
|
||||
echo "deb http://ftp.osuosl.org/pub/mariadb/repo/$MARIADB_MAJOR/ubuntu %%SUITE%% main" > /etc/apt/sources.list.d/mariadb.list; \
|
||||
echo "deb https://ftp.osuosl.org/pub/mariadb/repo/$MARIADB_MAJOR/ubuntu %%SUITE%% main" > /etc/apt/sources.list.d/mariadb.list; \
|
||||
{ \
|
||||
echo 'Package: *'; \
|
||||
echo 'Pin: release o=MariaDB'; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user