8000 Merge pull request #22 from xenit-eu/master · xenit-eu/docker-postgres@2b3942a · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b3942a

Browse files
authored
Merge pull request #22 from xenit-eu/master
new release adding wal-g support and maintenance updates
2 parents de7e923 + 26de3f3 commit 2b3942a

File tree

5 files changed

+30
-15
lines changed

5 files changed

+30
-15
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
.gradle/
22
.idea/
3+
.settings/
4+
.project
5+
.vscode/
36
pglogical.iml
47
**/build
8+
**/bin
9+
**/.classpath

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# Xenit PostgreSQL docker image changelog
22

3+
## WAL-G support and maintenance releases - 2019-12-18
4+
5+
- [#19](https://github.com/xenit-eu/docker-postgres/issues/19): Update to [latest maintenance releases](https://www.postgresql.org/about/news/1994/)
6+
- [#11](https://github.com/xenit-eu/docker-postgres/issues/11): Add support for WAL-G
7+
38
## Migrate to xenit/postgres - 2019-10-01
9+
410
- Docker image can now be pulled from xenit/postgres instead of ~~xeniteu/postgres~~
511

612
## 11.5 - 2019-08-21
13+
714
- [#12](https://github.com/xenit-eu/docker-postgres/issues/12): Update to [new maintenance release](https://www.postgresql.org/about/news/1960/)
815

916
## 11.4 - 2019-06-25
@@ -14,4 +21,4 @@
1421

1522
## 11.2 - 2019-02-20
1623

17-
- [DOCKER-149](https://xenitsupport.jira.com/browse/DOCKER-149): Update to latest release PG
24+
- [DOCKER-149](https://xenitsupport.jira.com/browse/DOCKER-149): Update to latest release PG

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,5 @@ Setting `PGHBAREPLACE=true` will remove the pg_hba.conf and will search for all
7777

7878
This image is based on [github.com/docker-library/postgres](https://github.com/docker-library/postgres/) and extends it with:
7979

80-
* pglogical
80+
* [pglogical](https://www.2ndquadrant.com/en/resources/pglogical/)
81+
* [WAL-G](https://github.com/wal-g/wal-g)

build.gradle

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,36 @@ plugins {
44

55
project(':9.4') {
66
project.ext {
7-
baseImage = 'postgres:9.4.24'
8-
tags = ['9.4', '9.4.24']
7+
baseImage = 'postgres:9.4.25'
8+
tags = ['9.4', '9.4.25']
99
}
1010
}
1111

1212
project(':9.5') {
1313
project.ext {
14-
baseImage = 'postgres:9.5.19'
15-
tags = ['9.5', '9.5.19']
14+
baseImage = 'postgres:9.5.20'
15+
tags = ['9.5', '9.5.20']
1616
}
1717
}
1818

1919
project(':9.6') {
2020
project.ext {
21-
baseImage = 'postgres:9.6.15'
22-
tags = ['9', '9.6', '9.6.15']
21+
baseImage = 'postgres:9.6.16'
22+
tags = ['9', '9.6', '9.6.16']
2323
}
2424
}
2525

2626
project(':10') {
2727
project.ext {
28-
baseImage = 'postgres:10.10'
29-
tags = ['10', '10.10']
28+
baseImage = 'postgres:10.11'
29+
tags = ['10', '10.11']
3030
}
3131
}
3232

3333
project(':11') {
3434
project.ext {
35-
baseImage = 'postgres:11.5'
36-
tags = ['11', '11.5', 'latest']
35+
baseImage = 'postgres:11.6'
36+
tags = ['11', '11.6', 'latest']
3737
}
3838
}
3939

@@ -45,6 +45,7 @@ subprojects {
4545

4646
project.ext {
4747
pgVersion = project.projectDir.name
48+
walgVersion = 'v0.2.14'
4849
}
4950

5051
apply plugin: 'eu.xenit.docker'
@@ -99,7 +100,7 @@ subprojects {
99100
}
100101

101102
buildDockerImage {
102-
buildArgs = ['PGVERSION': project.pgVersion, 'BASEIMAGE': project.baseImage]
103+
buildArgs = ['PGVERSION': project.pgVersion, 'BASEIMAGE': project.baseImage, 'WALGVERSION': project.walgVersion]
103104
}
104105

105106
dockerCompose.isRequiredBy(test)

src/main/docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
ARG BASEIMAGE
22

3+
34
FROM $BASEIMAGE
45
MAINTAINER thijs.lemmens@xenit.eu
56

67
ARG PGVERSION
7-
8-
ARG INSTALL_PGLOGICAL
8+
ARG WALGVERSION
99

1010
# Only install pglogical if configured
1111
RUN apt-get update && apt-get install -y wget gnupg \
1212
&& echo "deb [arch=amd64] http://packages.2ndquadrant.com/pglogical/apt/ stretch-2ndquadrant main" > /etc/apt/sources.list.d/2ndquadrant.list \
1313
&& wget --quiet -O - http://packages.2ndquadrant.com/pglogical/apt/AA7A6805.asc | apt-key add - \
1414
&& apt-get update \
1515
&& apt-get install -y postgresql-${PGVERSION}-pglogical \
16+
&& wget -qO- https://github.com/wal-g/wal-g/releases/download/${WALGVERSION}/wal-g.linux-amd64.tar.gz | tar zxv -C /usr/bin/ \
1617
&& apt-get remove -y wget \
1718
&& rm -rf /var/lib/apt/lists/*
1819

0 commit comments

Comments
 (0)
0