[FIX] Odoo 11.0-13.0: use an absolute path for psql source list
When creating an apt source list for Postgresql Debian package, the redirection uses a relative path. It works because the default WORKDIR but it's a fragile bad practice. Thanks to @fractalf and @alorence for the bug report and investigation. closes #287, closes #290
This commit is contained in:
parent
b82980338d
commit
740e5dc53d
@ -36,7 +36,7 @@ RUN set -x; \
|
||||
|
||||
# install latest postgresql-client
|
||||
RUN set -x; \
|
||||
echo 'deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main' > etc/apt/sources.list.d/pgdg.list \
|
||||
echo 'deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
&& repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8' \
|
||||
&& gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}" \
|
||||
|
@ -36,7 +36,7 @@ RUN set -x; \
|
||||
|
||||
# install latest postgresql-client
|
||||
RUN set -x; \
|
||||
echo 'deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main' > etc/apt/sources.list.d/pgdg.list \
|
||||
echo 'deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
&& repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8' \
|
||||
&& gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}" \
|
||||
|
@ -34,7 +34,7 @@ RUN set -x; \
|
||||
|
||||
# install latest postgresql-client
|
||||
RUN set -x; \
|
||||
echo 'deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main' > etc/apt/sources.list.d/pgdg.list \
|
||||
echo 'deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
&& repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8' \
|
||||
&& gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}" \
|
||||
|
Loading…
Reference in New Issue
Block a user