Skip to content
Snippets Groups Projects
Unverified Commit 81a7cf45 authored by Tianon Gravi's avatar Tianon Gravi Committed by GitHub
Browse files

Merge pull request #436 from infosiftr/alpine3.7

Update to Alpine 3.7
parents aeae1436 c66fc738
Branches
Tags
No related merge requests found
# vim:set ft=dockerfile:
FROM alpine:3.5
FROM alpine:3.7
# alpine includes "postgres" user/group in base install
# /etc/passwd:22:postgres:x:70:70::/var/lib/postgresql:/bin/sh
......@@ -60,7 +60,7 @@ RUN set -ex \
# openldap-dev \
openssl-dev \
# configure: error: prove not found
perl \
perl-utils \
# configure: error: Perl module IPC::Run is required to run TAP tests
perl-ipc-run \
# perl-dev \
......
# vim:set ft=dockerfile:
FROM alpine:3.5
FROM alpine:3.7
# alpine includes "postgres" user/group in base install
# /etc/passwd:22:postgres:x:70:70::/var/lib/postgresql:/bin/sh
......@@ -57,7 +57,7 @@ RUN set -ex \
# openldap-dev \
openssl-dev \
# configure: error: prove not found
perl \
perl-utils \
# configure: error: Perl module IPC::Run is required to run TAP tests
perl-ipc-run \
# perl-dev \
......
# vim:set ft=dockerfile:
FROM alpine:3.5
FROM alpine:3.7
# alpine includes "postgres" user/group in base install
# /etc/passwd:22:postgres:x:70:70::/var/lib/postgresql:/bin/sh
......@@ -57,7 +57,7 @@ RUN set -ex \
# openldap-dev \
openssl-dev \
# configure: error: prove not found
perl \
perl-utils \
# configure: error: Perl module IPC::Run is required to run TAP tests
perl-ipc-run \
# perl-dev \
......
# vim:set ft=dockerfile:
FROM alpine:3.5
FROM alpine:3.7
# alpine includes "postgres" user/group in base install
# /etc/passwd:22:postgres:x:70:70::/var/lib/postgresql:/bin/sh
......@@ -57,7 +57,7 @@ RUN set -ex \
# openldap-dev \
openssl-dev \
# configure: error: prove not found
perl \
perl-utils \
# configure: error: Perl module IPC::Run is required to run TAP tests
perl-ipc-run \
# perl-dev \
......
......@@ -58,7 +58,7 @@ RUN set -ex \
# openldap-dev \
openssl-dev \
# configure: error: prove not found
perl \
perl-utils \
# configure: error: Perl module IPC::Run is required to run TAP tests
perl-ipc-run \
# perl-dev \
......
......@@ -16,12 +16,9 @@ declare -A debianSuite=(
[9.6]='jessie'
[10]='stretch'
)
defaultAlpineVersion='3.7'
declare -A alpineVersion=(
[9.3]='3.5'
[9.4]='3.5'
[9.5]='3.5'
[9.6]='3.5'
[10]='3.7'
#[9.6]='3.5'
)
packagesBase='http://apt.postgresql.org/pub/repos/apt/dists/'
......@@ -83,13 +80,8 @@ for version in "${versions[@]}"; do
sed -e 's/%%PG_MAJOR%%/'"$version"'/g' \
-e 's/%%PG_VERSION%%/'"$srcVersion"'/g' \
-e 's/%%PG_SHA256%%/'"$srcSha256"'/g' \
-e 's/%%ALPINE-VERSION%%/'"${alpineVersion[$version]}"'/g' \
-e 's/%%ALPINE-VERSION%%/'"${alpineVersion[$version]:-$defaultAlpineVersion}"'/g' \
"Dockerfile-$variant.template" > "$version/$variant/Dockerfile"
if [ "${alpineVersion[$version]}" != '3.5' ]; then
# prove was moved out of the perl package and into perl-utils in 3.6
# https://pkgs.alpinelinux.org/contents?file=prove&path=&name=&branch=&repo=&arch=x86_64
sed -ri 's/(\s+perl)(\s+)/\1-utils\2/' "$version/$variant/Dockerfile"
fi
if [ "$majorVersion" = '9' ]; then
sed -i -e 's/WALDIR/XLOGDIR/g' \
-e 's/waldir/xlogdir/g' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment