Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions 10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ RUN set -ex; \
# see note below about "*.pyc" files
export PYTHONDONTWRITEBYTECODE=1; \
\
{ \
echo 'Explanation: block installation of the "postgresql" metapackage, since it will almost always pull in something different than we expect'; \
echo 'Package: postgresql'; \
echo 'Pin: version *'; \
echo 'Pin-Priority: -10'; \
echo; \
echo 'Explanation: block installation of Debian postgresql packages, since we only want upstream'; \
echo 'Package: postgresql* libpq*'; \
echo 'Pin: release o=Debian'; \
echo 'Pin-Priority: -10'; \
} > /etc/apt/preferences.d/postgres.pref; \
\
dpkgArch="$(dpkg --print-architecture)"; \
case "$dpkgArch" in \
amd64 | i386 | ppc64el) \
Expand Down
12 changes: 12 additions & 0 deletions 11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ RUN set -ex; \
# see note below about "*.pyc" files
export PYTHONDONTWRITEBYTECODE=1; \
\
{ \
echo 'Explanation: block installation of the "postgresql" metapackage, since it will almost always pull in something different than we expect'; \
echo 'Package: postgresql'; \
echo 'Pin: version *'; \
echo 'Pin-Priority: -10'; \
echo; \
echo 'Explanation: block installation of Debian postgresql packages, since we only want upstream'; \
echo 'Package: postgresql* libpq*'; \
echo 'Pin: release o=Debian'; \
echo 'Pin-Priority: -10'; \
} > /etc/apt/preferences.d/postgres.pref; \
\
dpkgArch="$(dpkg --print-architecture)"; \
case "$dpkgArch" in \
amd64 | i386 | ppc64el) \
Expand Down
12 changes: 12 additions & 0 deletions 12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ RUN set -ex; \
# see note below about "*.pyc" files
export PYTHONDONTWRITEBYTECODE=1; \
\
{ \
echo 'Explanation: block installation of the "postgresql" metapackage, since it will almost always pull in something different than we expect'; \
echo 'Package: postgresql'; \
echo 'Pin: version *'; \
echo 'Pin-Priority: -10'; \
echo; \
echo 'Explanation: block installation of Debian postgresql packages, since we only want upstream'; \
echo 'Package: postgresql* libpq*'; \
echo 'Pin: release o=Debian'; \
echo 'Pin-Priority: -10'; \
} > /etc/apt/preferences.d/postgres.pref; \
\
dpkgArch="$(dpkg --print-architecture)"; \
case "$dpkgArch" in \
amd64 | arm64 | i386 | ppc64el) \
Expand Down
12 changes: 12 additions & 0 deletions 13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ RUN set -ex; \
# see note below about "*.pyc" files
export PYTHONDONTWRITEBYTECODE=1; \
\
{ \
echo 'Explanation: block installation of the "postgresql" metapackage, since it will almost always pull in something different than we expect'; \
echo 'Package: postgresql'; \
echo 'Pin: version *'; \
echo 'Pin-Priority: -10'; \
echo; \
echo 'Explanation: block installation of Debian postgresql packages, since we only want upstream'; \
echo 'Package: postgresql* libpq*'; \
echo 'Pin: release o=Debian'; \
echo 'Pin-Priority: -10'; \
} > /etc/apt/preferences.d/postgres.pref; \
\
dpkgArch="$(dpkg --print-architecture)"; \
case "$dpkgArch" in \
amd64 | arm64 | i386 | ppc64el) \
Expand Down
12 changes: 12 additions & 0 deletions 9.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ RUN set -ex; \
# see note below about "*.pyc" files
export PYTHONDONTWRITEBYTECODE=1; \
\
{ \
echo 'Explanation: block installation of the "postgresql" metapackage, since it will almost always pull in something different than we expect'; \
echo 'Package: postgresql'; \
echo 'Pin: version *'; \
echo 'Pin-Priority: -10'; \
echo; \
echo 'Explanation: block installation of Debian postgresql packages, since we only want upstream'; \
echo 'Package: postgresql* libpq*'; \
echo 'Pin: release o=Debian'; \
echo 'Pin-Priority: -10'; \
} > /etc/apt/preferences.d/postgres.pref; \
\
dpkgArch="$(dpkg --print-architecture)"; \
case "$dpkgArch" in \
amd64 | i386 | ppc64el) \
Expand Down
12 changes: 12 additions & 0 deletions 9.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ RUN set -ex; \
# see note below about "*.pyc" files
export PYTHONDONTWRITEBYTECODE=1; \
\
{ \
echo 'Explanation: block installation of the "postgresql" metapackage, since it will almost always pull in something different than we expect'; \
echo 'Package: postgresql'; \
echo 'Pin: version *'; \
echo 'Pin-Priority: -10'; \
echo; \
echo 'Explanation: block installation of Debian postgresql packages, since we only want upstream'; \
echo 'Package: postgresql* libpq*'; \
echo 'Pin: release o=Debian'; \
echo 'Pin-Priority: -10'; \
} > /etc/apt/preferences.d/postgres.pref; \
\
dpkgArch="$(dpkg --print-architecture)"; \
case "$dpkgArch" in \
amd64 | i386 | ppc64el) \
Expand Down
12 changes: 12 additions & 0 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ RUN set -ex; \
# see note below about "*.pyc" files
export PYTHONDONTWRITEBYTECODE=1; \
\
{ \
echo 'Explanation: block installation of the "postgresql" metapackage, since it will almost always pull in something different than we expect'; \
echo 'Package: postgresql'; \
echo 'Pin: version *'; \
echo 'Pin-Priority: -10'; \
echo; \
echo 'Explanation: block installation of Debian postgresql packages, since we only want upstream'; \
echo 'Package: postgresql* libpq*'; \
echo 'Pin: release o=Debian'; \
echo 'Pin-Priority: -10'; \
} > /etc/apt/preferences.d/postgres.pref; \
\
dpkgArch="$(dpkg --print-architecture)"; \
case "$dpkgArch" in \
%%ARCH_LIST%%) \
Expand Down