You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-07-28 10:42:06 +03:00
Minor whitespace and consistency changes
This commit is contained in:
@ -39,6 +39,7 @@ RUN set -ex \
|
|||||||
\
|
\
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
bison \
|
bison \
|
||||||
|
coreutils \
|
||||||
flex \
|
flex \
|
||||||
gcc \
|
gcc \
|
||||||
# krb5-dev \
|
# krb5-dev \
|
||||||
@ -57,7 +58,9 @@ RUN set -ex \
|
|||||||
util-linux-dev \
|
util-linux-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
\
|
\
|
||||||
&& wget -O uuid.tar.gz "http://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/uuid-$OSSP_UUID_VERSION.tar.gz" \
|
# install OSSP uuid (http://www.ossp.org/pkg/lib/uuid/)
|
||||||
|
# see https://github.com/docker-library/postgres/pull/255 for more details
|
||||||
|
&& wget -O uuid.tar.gz "https://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/uuid-$OSSP_UUID_VERSION.tar.gz" \
|
||||||
&& echo "$OSSP_UUID_SHA256 *uuid.tar.gz" | sha256sum -c - \
|
&& echo "$OSSP_UUID_SHA256 *uuid.tar.gz" | sha256sum -c - \
|
||||||
&& mkdir -p /usr/src/ossp-uuid \
|
&& mkdir -p /usr/src/ossp-uuid \
|
||||||
&& tar \
|
&& tar \
|
||||||
@ -66,13 +69,15 @@ RUN set -ex \
|
|||||||
--directory /usr/src/ossp-uuid \
|
--directory /usr/src/ossp-uuid \
|
||||||
--strip-components 1 \
|
--strip-components 1 \
|
||||||
&& rm uuid.tar.gz \
|
&& rm uuid.tar.gz \
|
||||||
&& cd /usr/src/ossp-uuid \
|
&& ( \
|
||||||
|
cd /usr/src/ossp-uuid \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr/local \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)"\
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& cd / \
|
) \
|
||||||
&& rm -rf /usr/src/ossp-uuid \
|
&& rm -rf /usr/src/ossp-uuid \
|
||||||
|
\
|
||||||
&& cd /usr/src/postgresql \
|
&& cd /usr/src/postgresql \
|
||||||
# update "DEFAULT_PGSOCKET_DIR" to "/var/run/postgresql" (matching Debian)
|
# update "DEFAULT_PGSOCKET_DIR" to "/var/run/postgresql" (matching Debian)
|
||||||
# see https://anonscm.debian.org/git/pkg-postgresql/postgresql.git/tree/debian/patches/51-default-sockets-in-var.patch?id=8b539fcb3e093a521c095e70bdfa76887217b89f
|
# see https://anonscm.debian.org/git/pkg-postgresql/postgresql.git/tree/debian/patches/51-default-sockets-in-var.patch?id=8b539fcb3e093a521c095e70bdfa76887217b89f
|
||||||
@ -94,6 +99,8 @@ RUN set -ex \
|
|||||||
--with-pgport=5432 \
|
--with-pgport=5432 \
|
||||||
--with-system-tzdata=/usr/share/zoneinfo \
|
--with-system-tzdata=/usr/share/zoneinfo \
|
||||||
--prefix=/usr/local \
|
--prefix=/usr/local \
|
||||||
|
--with-includes=/usr/local/include \
|
||||||
|
--with-libraries=/usr/local/lib \
|
||||||
\
|
\
|
||||||
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
||||||
# --with-krb5 \
|
# --with-krb5 \
|
||||||
@ -106,7 +113,7 @@ RUN set -ex \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-libxml \
|
--with-libxml \
|
||||||
--with-libxslt \
|
--with-libxslt \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" world \
|
&& make -j "$(nproc)" world \
|
||||||
&& make install-world \
|
&& make install-world \
|
||||||
&& make -C contrib install \
|
&& make -C contrib install \
|
||||||
\
|
\
|
||||||
|
@ -39,6 +39,7 @@ RUN set -ex \
|
|||||||
\
|
\
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
bison \
|
bison \
|
||||||
|
coreutils \
|
||||||
flex \
|
flex \
|
||||||
gcc \
|
gcc \
|
||||||
# krb5-dev \
|
# krb5-dev \
|
||||||
@ -57,7 +58,9 @@ RUN set -ex \
|
|||||||
util-linux-dev \
|
util-linux-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
\
|
\
|
||||||
&& wget -O uuid.tar.gz "http://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/uuid-$OSSP_UUID_VERSION.tar.gz" \
|
# install OSSP uuid (http://www.ossp.org/pkg/lib/uuid/)
|
||||||
|
# see https://github.com/docker-library/postgres/pull/255 for more details
|
||||||
|
&& wget -O uuid.tar.gz "https://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/uuid-$OSSP_UUID_VERSION.tar.gz" \
|
||||||
&& echo "$OSSP_UUID_SHA256 *uuid.tar.gz" | sha256sum -c - \
|
&& echo "$OSSP_UUID_SHA256 *uuid.tar.gz" | sha256sum -c - \
|
||||||
&& mkdir -p /usr/src/ossp-uuid \
|
&& mkdir -p /usr/src/ossp-uuid \
|
||||||
&& tar \
|
&& tar \
|
||||||
@ -66,13 +69,15 @@ RUN set -ex \
|
|||||||
--directory /usr/src/ossp-uuid \
|
--directory /usr/src/ossp-uuid \
|
||||||
--strip-components 1 \
|
--strip-components 1 \
|
||||||
&& rm uuid.tar.gz \
|
&& rm uuid.tar.gz \
|
||||||
&& cd /usr/src/ossp-uuid \
|
&& ( \
|
||||||
|
cd /usr/src/ossp-uuid \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr/local \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)"\
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& cd / \
|
) \
|
||||||
&& rm -rf /usr/src/ossp-uuid \
|
&& rm -rf /usr/src/ossp-uuid \
|
||||||
|
\
|
||||||
&& cd /usr/src/postgresql \
|
&& cd /usr/src/postgresql \
|
||||||
# update "DEFAULT_PGSOCKET_DIR" to "/var/run/postgresql" (matching Debian)
|
# update "DEFAULT_PGSOCKET_DIR" to "/var/run/postgresql" (matching Debian)
|
||||||
# see https://anonscm.debian.org/git/pkg-postgresql/postgresql.git/tree/debian/patches/51-default-sockets-in-var.patch?id=8b539fcb3e093a521c095e70bdfa76887217b89f
|
# see https://anonscm.debian.org/git/pkg-postgresql/postgresql.git/tree/debian/patches/51-default-sockets-in-var.patch?id=8b539fcb3e093a521c095e70bdfa76887217b89f
|
||||||
@ -94,6 +99,8 @@ RUN set -ex \
|
|||||||
--with-pgport=5432 \
|
--with-pgport=5432 \
|
||||||
--with-system-tzdata=/usr/share/zoneinfo \
|
--with-system-tzdata=/usr/share/zoneinfo \
|
||||||
--prefix=/usr/local \
|
--prefix=/usr/local \
|
||||||
|
--with-includes=/usr/local/include \
|
||||||
|
--with-libraries=/usr/local/lib \
|
||||||
\
|
\
|
||||||
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
||||||
# --with-krb5 \
|
# --with-krb5 \
|
||||||
@ -106,7 +113,7 @@ RUN set -ex \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-libxml \
|
--with-libxml \
|
||||||
--with-libxslt \
|
--with-libxslt \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" world \
|
&& make -j "$(nproc)" world \
|
||||||
&& make install-world \
|
&& make install-world \
|
||||||
&& make -C contrib install \
|
&& make -C contrib install \
|
||||||
\
|
\
|
||||||
|
@ -36,6 +36,7 @@ RUN set -ex \
|
|||||||
\
|
\
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
bison \
|
bison \
|
||||||
|
coreutils \
|
||||||
flex \
|
flex \
|
||||||
gcc \
|
gcc \
|
||||||
# krb5-dev \
|
# krb5-dev \
|
||||||
@ -76,6 +77,8 @@ RUN set -ex \
|
|||||||
--with-pgport=5432 \
|
--with-pgport=5432 \
|
||||||
--with-system-tzdata=/usr/share/zoneinfo \
|
--with-system-tzdata=/usr/share/zoneinfo \
|
||||||
--prefix=/usr/local \
|
--prefix=/usr/local \
|
||||||
|
--with-includes=/usr/local/include \
|
||||||
|
--with-libraries=/usr/local/lib \
|
||||||
\
|
\
|
||||||
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
||||||
# --with-krb5 \
|
# --with-krb5 \
|
||||||
@ -88,7 +91,7 @@ RUN set -ex \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-libxml \
|
--with-libxml \
|
||||||
--with-libxslt \
|
--with-libxslt \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" world \
|
&& make -j "$(nproc)" world \
|
||||||
&& make install-world \
|
&& make install-world \
|
||||||
&& make -C contrib install \
|
&& make -C contrib install \
|
||||||
\
|
\
|
||||||
|
@ -36,6 +36,7 @@ RUN set -ex \
|
|||||||
\
|
\
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
bison \
|
bison \
|
||||||
|
coreutils \
|
||||||
flex \
|
flex \
|
||||||
gcc \
|
gcc \
|
||||||
# krb5-dev \
|
# krb5-dev \
|
||||||
@ -76,6 +77,8 @@ RUN set -ex \
|
|||||||
--with-pgport=5432 \
|
--with-pgport=5432 \
|
||||||
--with-system-tzdata=/usr/share/zoneinfo \
|
--with-system-tzdata=/usr/share/zoneinfo \
|
||||||
--prefix=/usr/local \
|
--prefix=/usr/local \
|
||||||
|
--with-includes=/usr/local/include \
|
||||||
|
--with-libraries=/usr/local/lib \
|
||||||
\
|
\
|
||||||
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
||||||
# --with-krb5 \
|
# --with-krb5 \
|
||||||
@ -88,7 +91,7 @@ RUN set -ex \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-libxml \
|
--with-libxml \
|
||||||
--with-libxslt \
|
--with-libxslt \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" world \
|
&& make -j "$(nproc)" world \
|
||||||
&& make install-world \
|
&& make install-world \
|
||||||
&& make -C contrib install \
|
&& make -C contrib install \
|
||||||
\
|
\
|
||||||
|
@ -36,6 +36,7 @@ RUN set -ex \
|
|||||||
\
|
\
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
bison \
|
bison \
|
||||||
|
coreutils \
|
||||||
flex \
|
flex \
|
||||||
gcc \
|
gcc \
|
||||||
# krb5-dev \
|
# krb5-dev \
|
||||||
@ -76,6 +77,8 @@ RUN set -ex \
|
|||||||
--with-pgport=5432 \
|
--with-pgport=5432 \
|
||||||
--with-system-tzdata=/usr/share/zoneinfo \
|
--with-system-tzdata=/usr/share/zoneinfo \
|
||||||
--prefix=/usr/local \
|
--prefix=/usr/local \
|
||||||
|
--with-includes=/usr/local/include \
|
||||||
|
--with-libraries=/usr/local/lib \
|
||||||
\
|
\
|
||||||
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
||||||
# --with-krb5 \
|
# --with-krb5 \
|
||||||
@ -88,7 +91,7 @@ RUN set -ex \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-libxml \
|
--with-libxml \
|
||||||
--with-libxslt \
|
--with-libxslt \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" world \
|
&& make -j "$(nproc)" world \
|
||||||
&& make install-world \
|
&& make install-world \
|
||||||
&& make -C contrib install \
|
&& make -C contrib install \
|
||||||
\
|
\
|
||||||
|
@ -37,6 +37,7 @@ RUN set -ex \
|
|||||||
\
|
\
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
bison \
|
bison \
|
||||||
|
coreutils \
|
||||||
flex \
|
flex \
|
||||||
gcc \
|
gcc \
|
||||||
# krb5-dev \
|
# krb5-dev \
|
||||||
@ -78,6 +79,8 @@ RUN set -ex \
|
|||||||
--with-pgport=5432 \
|
--with-pgport=5432 \
|
||||||
--with-system-tzdata=/usr/share/zoneinfo \
|
--with-system-tzdata=/usr/share/zoneinfo \
|
||||||
--prefix=/usr/local \
|
--prefix=/usr/local \
|
||||||
|
--with-includes=/usr/local/include \
|
||||||
|
--with-libraries=/usr/local/lib \
|
||||||
\
|
\
|
||||||
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
|
||||||
# --with-krb5 \
|
# --with-krb5 \
|
||||||
@ -90,7 +93,7 @@ RUN set -ex \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-libxml \
|
--with-libxml \
|
||||||
--with-libxslt \
|
--with-libxslt \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)" world \
|
&& make -j "$(nproc)" world \
|
||||||
&& make install-world \
|
&& make install-world \
|
||||||
&& make -C contrib install \
|
&& make -C contrib install \
|
||||||
\
|
\
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
&& wget -O uuid.tar.gz "http://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/uuid-$OSSP_UUID_VERSION.tar.gz" \
|
# install OSSP uuid (http://www.ossp.org/pkg/lib/uuid/)
|
||||||
|
# see https://github.com/docker-library/postgres/pull/255 for more details
|
||||||
|
&& wget -O uuid.tar.gz "https://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/uuid-$OSSP_UUID_VERSION.tar.gz" \
|
||||||
&& echo "$OSSP_UUID_SHA256 *uuid.tar.gz" | sha256sum -c - \
|
&& echo "$OSSP_UUID_SHA256 *uuid.tar.gz" | sha256sum -c - \
|
||||||
&& mkdir -p /usr/src/ossp-uuid \
|
&& mkdir -p /usr/src/ossp-uuid \
|
||||||
&& tar \
|
&& tar \
|
||||||
@ -7,10 +9,12 @@
|
|||||||
--directory /usr/src/ossp-uuid \
|
--directory /usr/src/ossp-uuid \
|
||||||
--strip-components 1 \
|
--strip-components 1 \
|
||||||
&& rm uuid.tar.gz \
|
&& rm uuid.tar.gz \
|
||||||
&& cd /usr/src/ossp-uuid \
|
&& ( \
|
||||||
|
cd /usr/src/ossp-uuid \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr/local \
|
||||||
&& make -j "$(getconf _NPROCESSORS_ONLN)"\
|
&& make -j "$(nproc)" \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& cd / \
|
) \
|
||||||
&& rm -rf /usr/src/ossp-uuid \
|
&& rm -rf /usr/src/ossp-uuid \
|
||||||
|
\
|
||||||
|
22
update.sh
22
update.sh
@ -12,7 +12,7 @@ versions=( "${versions[@]%/}" )
|
|||||||
packagesBase='http://apt.postgresql.org/pub/repos/apt/dists/jessie-pgdg'
|
packagesBase='http://apt.postgresql.org/pub/repos/apt/dists/jessie-pgdg'
|
||||||
mainList="$(curl -fsSL "$packagesBase/main/binary-amd64/Packages.bz2" | bunzip2)"
|
mainList="$(curl -fsSL "$packagesBase/main/binary-amd64/Packages.bz2" | bunzip2)"
|
||||||
|
|
||||||
uuidConfigFlag="--with-uuid=e2fs"
|
# https://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/?C=M;O=D
|
||||||
osspUuidVersion='1.6.2'
|
osspUuidVersion='1.6.2'
|
||||||
osspUuidHash='11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0'
|
osspUuidHash='11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0'
|
||||||
|
|
||||||
@ -37,17 +37,29 @@ for version in "${versions[@]}"; do
|
|||||||
set -x
|
set -x
|
||||||
cp docker-entrypoint.sh "$version/$variant/"
|
cp docker-entrypoint.sh "$version/$variant/"
|
||||||
sed -i 's/gosu/su-exec/g' "$version/$variant/docker-entrypoint.sh"
|
sed -i 's/gosu/su-exec/g' "$version/$variant/docker-entrypoint.sh"
|
||||||
sed 's/%%PG_MAJOR%%/'"$version"'/g; s/%%PG_VERSION%%/'"$srcVersion"'/g; s/%%PG_SHA256%%/'"$srcSha256"'/g' Dockerfile-$variant.template > "$version/$variant/Dockerfile"
|
sed -e 's/%%PG_MAJOR%%/'"$version"'/g' \
|
||||||
if [[ $version =~ ^9.[23]$ ]]; then
|
-e 's/%%PG_VERSION%%/'"$srcVersion"'/g' \
|
||||||
|
-e 's/%%PG_SHA256%%/'"$srcSha256"'/g' \
|
||||||
|
"Dockerfile-$variant.template" > "$version/$variant/Dockerfile"
|
||||||
|
|
||||||
|
# TODO remove all this when 9.2 and 9.3 are EOL (2017-10-01 and 2018-10-01 -- from http://www.postgresql.org/support/versioning/)
|
||||||
|
case "$version" in
|
||||||
|
9.2|9.3)
|
||||||
uuidConfigFlag='--with-ossp-uuid'
|
uuidConfigFlag='--with-ossp-uuid'
|
||||||
sed -i 's/%%OSSP_UUID_ENV_VARS%%/ENV OSSP_UUID_VERSION '"$osspUuidVersion"'\nENV OSSP_UUID_SHA256 '"$osspUuidHash"'\n/' "$version/$variant/Dockerfile"
|
sed -i 's/%%OSSP_UUID_ENV_VARS%%/ENV OSSP_UUID_VERSION '"$osspUuidVersion"'\nENV OSSP_UUID_SHA256 '"$osspUuidHash"'\n/' "$version/$variant/Dockerfile"
|
||||||
sed -i $'/%%INSTALL_OSSP_UUID%%/ {r ossp-uuid.template\n d}' "$version/$variant/Dockerfile"
|
sed -i $'/%%INSTALL_OSSP_UUID%%/ {r ossp-uuid.template\n d}' "$version/$variant/Dockerfile"
|
||||||
|
|
||||||
|
# configure: WARNING: unrecognized options: --enable-tap-tests
|
||||||
sed -i '/--enable-tap-tests/d' "$version/$variant/Dockerfile"
|
sed -i '/--enable-tap-tests/d' "$version/$variant/Dockerfile"
|
||||||
fi
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
uuidConfigFlag='--with-uuid=e2fs'
|
||||||
sed -i '/%%OSSP_UUID_ENV_VARS%%/d' "$version/$variant/Dockerfile"
|
sed -i '/%%OSSP_UUID_ENV_VARS%%/d' "$version/$variant/Dockerfile"
|
||||||
sed -i '/%%INSTALL_OSSP_UUID%%/d' "$version/$variant/Dockerfile"
|
sed -i '/%%INSTALL_OSSP_UUID%%/d' "$version/$variant/Dockerfile"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
sed -i 's/%%UUID_CONFIG_FLAG%%/'"$uuidConfigFlag"'/' "$version/$variant/Dockerfile"
|
sed -i 's/%%UUID_CONFIG_FLAG%%/'"$uuidConfigFlag"'/' "$version/$variant/Dockerfile"
|
||||||
|
|
||||||
)
|
)
|
||||||
travisEnv="\n - VERSION=$version VARIANT=$variant$travisEnv"
|
travisEnv="\n - VERSION=$version VARIANT=$variant$travisEnv"
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user