-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update for PostgreSQL v12.3 and docker release script (#5)
* Release script added * [Update] PostgreSQL to version 12.3
- Loading branch information
Alex Vorobiev
authored
Jun 9, 2020
1 parent
26db729
commit 60c0c25
Showing
5 changed files
with
104 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM postgres:9.6.14 | ||
FROM postgres:12.3 | ||
MAINTAINER [email protected] | ||
|
||
COPY LICENSE / | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM postgres:9.6.14 | ||
FROM postgres:12.3 | ||
MAINTAINER [email protected] | ||
|
||
COPY LICENSE / | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
@echo off | ||
|
||
IF %1.==. GOTO VersionError | ||
set version=%1 | ||
|
||
GOTO Setup | ||
|
||
:VersionError | ||
ECHO. | ||
ECHO ERROR: No version was specified | ||
ECHO. | ||
|
||
GOTO End | ||
|
||
:Setup | ||
|
||
ECHO Releasing Version %version% | ||
|
||
set dry=false | ||
|
||
IF %2.==. GOTO Begin | ||
IF %2==dry GOTO Dry | ||
|
||
:Dry | ||
|
||
ECHO. | ||
ECHO Performing dry run... | ||
ECHO. | ||
|
||
set dry=true | ||
|
||
:Begin | ||
|
||
ECHO. | ||
ECHO Cleaning up... | ||
ECHO. | ||
|
||
REM cleanup previous if exists | ||
docker rmi cdp4-test-database-community-edition:%version% | ||
docker rmi rheagroup/cdp4-test-database-community-edition:%version% | ||
|
||
docker rmi cdp4-database-community-edition:%version% | ||
docker rmi rheagroup/cdp4-database-community-edition:%version% | ||
|
||
REM remove local latest if exists | ||
docker rmi cdp4-test-database-community-edition:latest | ||
docker rmi rheagroup/cdp4-test-database-community-edition:latest | ||
|
||
docker rmi cdp4-database-community-edition:latest | ||
docker rmi rheagroup/cdp4-database-community-edition:latest | ||
|
||
ECHO. | ||
ECHO Building images... | ||
ECHO. | ||
|
||
REM build and tag | ||
docker build -f cdp4-database-bare-community-edition\Dockerfile -t cdp4-test-database-community-edition:%version% -t cdp4-test-database-community-edition:latest .\cdp4-database-bare-community-edition | ||
docker tag cdp4-test-database-community-edition:%version% rheagroup/cdp4-test-database-community-edition:%version% | ||
docker tag cdp4-test-database-community-edition:latest rheagroup/cdp4-test-database-community-edition:latest | ||
|
||
docker build -f cdp4-database-community-edition\Dockerfile -t cdp4-database-community-edition:%version% -t cdp4-database-community-edition:latest .\cdp4-database-community-edition | ||
docker tag cdp4-database-community-edition:%version% rheagroup/cdp4-database-community-edition:%version% | ||
docker tag cdp4-database-community-edition:latest rheagroup/cdp4-database-community-edition:latest | ||
|
||
IF %dry% equ true GOTO End | ||
|
||
ECHO. | ||
ECHO Pushing... | ||
ECHO. | ||
|
||
REM push | ||
docker push rheagroup/cdp4-test-database-community-edition:%version% | ||
docker push rheagroup/cdp4-test-database-community-edition:latest | ||
|
||
docker push rheagroup/cdp4-database-community-edition:%version% | ||
docker push rheagroup/cdp4-database-community-edition:latest | ||
|
||
:End | ||
|
||
ECHO. | ||
ECHO Release %version% Completed | ||
ECHO. |