Skip to content

Commit 3ab0493

Browse files
cbeyer42cesmarvin
authored andcommitted
Merge branch 'release/v12.13-1'
2 parents d67605d + daf48f9 commit 3ab0493

File tree

5 files changed

+30
-8
lines changed

5 files changed

+30
-8
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [v12.13-1] - 2023-02-06
11+
### Changed
12+
- Upgrades PostgreSQL to 12.13 (#15)
13+
- This update contains several security fixes
14+
- Update base image to 3.17.1-1 (#15)
15+
- Set healthcheck interval to 5 seconds
16+
1017
## [v12.10-1] - 2022-04-06
1118
### Changed
1219
- Upgrades PostgreSQL to 12.10

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM registry.cloudogu.com/official/base:3.12.4-2
1+
FROM registry.cloudogu.com/official/base:3.17.1-1
22

33
LABEL NAME="official/postgresql" \
4-
VERSION="12.10-1" \
4+
VERSION="12.13-1" \
55
maintainer="[email protected]"
66

77
ENV LANG=en_US.utf8 \
88
PGDATA=/var/lib/postgresql \
9-
POSTGRESQL_VERSION=12.10-r0 \
9+
POSTGRESQL_VERSION=12.13-r1 \
1010
GOSU_SHA256=0f25a21cf64e58078057adc78f38705163c1d564a959ff30a891c31917011a54
1111

1212
# install postgresql and gosu
@@ -17,7 +17,7 @@ RUN set -x -o errexit \
1717
&& set -o pipefail \
1818
&& apk update \
1919
&& apk upgrade \
20-
&& apk add --update postgresql="${POSTGRESQL_VERSION}" \
20+
&& apk add --update postgresql12="${POSTGRESQL_VERSION}" \
2121
&& wget --progress=bar:force:noscroll "https://github.com/tianon/gosu/releases/download/1.12/gosu-amd64" \
2222
&& echo "${GOSU_SHA256} *gosu-amd64" | sha256sum -c - \
2323
&& mv /gosu-amd64 /usr/local/bin/gosu \
@@ -28,7 +28,7 @@ COPY resources/ /
2828

2929
VOLUME ["/var/lib/postgresql"]
3030

31-
HEALTHCHECK CMD doguctl healthy postgresql || exit 1
31+
HEALTHCHECK --interval=5s CMD doguctl healthy postgresql || exit 1
3232

3333
EXPOSE 5432
3434

Jenkinsfile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ node('vagrant') {
2929
// Keep only the last x builds to preserve space
3030
buildDiscarder(logRotator(numToKeepStr: '10')),
3131
// Don't run concurrent builds for a branch, because they use the same workspace directory
32-
disableConcurrentBuilds()
32+
disableConcurrentBuilds(),
33+
// Parameter to activate dogu upgrade test on demand
34+
parameters([
35+
booleanParam(defaultValue: false, description: 'Test dogu upgrade from latest release or optionally from defined version below', name: 'TestDoguUpgrade'),
36+
string(defaultValue: '', description: 'Old Dogu version for the upgrade test (optional; e.g. 4.1.0-3)', name: 'OldDoguVersionForUpgradeTest'),
37+
])
3338
])
3439

3540
EcoSystem ecoSystem = new EcoSystem(this, 'gcloud-ces-operations-internal-packer', 'jenkins-gcloud-ces-operations-internal')
@@ -59,6 +64,16 @@ node('vagrant') {
5964
ecoSystem.verify(doguDirectory)
6065
}
6166

67+
if (params.TestDoguUpgrade != null && params.TestDoguUpgrade){
68+
stage('Upgrade dogu'){
69+
ecoSystem.upgradeFromPreviousRelease(params.OldDoguVersionForUpgradeTest, doguName)
70+
}
71+
72+
stage('Verify - after upgrade') {
73+
ecoSystem.verify(doguDirectory)
74+
}
75+
}
76+
6277
if (gitflow.isReleaseBranch()) {
6378
String releaseVersion = git.getSimpleBranchName()
6479

dogu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Name": "official/postgresql",
3-
"Version": "12.10-1",
3+
"Version": "12.13-1",
44
"DisplayName": "PostgreSQL",
55
"Description": "PostgreSQL Database.",
66
"Url": "https://www.postgresql.org/",

spec/goss/goss.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ file:
3939
owner: postgres
4040
filetype: directory
4141
package:
42-
postgresql:
42+
postgresql12:
4343
installed: true
4444
port:
4545
tcp:5432:

0 commit comments

Comments
 (0)