Skip to content

Commit b608fae

Browse files
authored
Bug/version bump in docker up.sh (#2129)
* Bump version in .env.example Signed-off-by: wslulciuc <willy@datakin.com> * Remove version bump of docker/up.sh in new-version.sh Signed-off-by: wslulciuc <willy@datakin.com> * Use VERSION in docker/up.sh Signed-off-by: wslulciuc <willy@datakin.com> * Add version bump via VERSION Signed-off-by: wslulciuc <willy@datakin.com> * continued: Add version bump via VERSION Signed-off-by: wslulciuc <willy@datakin.com> * Fix version bump for docker/up.sh and .env.example Signed-off-by: wslulciuc <willy@datakin.com> * Revert version bump for psql Signed-off-by: wslulciuc <willy@datakin.com> Signed-off-by: wslulciuc <willy@datakin.com>
1 parent e61fe48 commit b608fae

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
API_PORT=5000
22
API_ADMIN_PORT=5001
33
WEB_PORT=3000
4-
TAG=0.19.0
4+
TAG=0.26.0

chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ postgresql:
107107
## @param image.tag PostgreSQL image tag (immutable tags are recommended)
108108
##
109109
image:
110-
tag: 0.26.0
110+
tag: 12.1.0
111111
## Authentication parameters
112112
## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run
113113
## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-on-first-run

docker/up.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
set -e
77

8-
SCRIPTDIR=$(dirname $0)
8+
VERSION=0.26.0
9+
DOCKER_DIR=$(dirname $0)
910

1011
title() {
1112
echo -e "\033[1m${1}\033[0m"
@@ -35,7 +36,7 @@ usage() {
3536
echo " -a, --api-port int api port (default: 5000)"
3637
echo " -m, --api-admin-port int api admin port (default: 5001)"
3738
echo " -w, --web-port int web port (default: 3000)"
38-
echo " -t, --tag string image tag (default: latest)"
39+
echo " -t, --tag string image tag (default: ${VERSION})"
3940
echo
4041
title "FLAGS:"
4142
echo " -b, --build build images from source"
@@ -55,7 +56,7 @@ args="-V --force-recreate --remove-orphans"
5556
API_PORT=5000
5657
API_ADMIN_PORT=5001
5758
WEB_PORT=3000
58-
TAG=0.19.0
59+
TAG=${VERSION}
5960
while [ $# -gt 0 ]; do
6061
case $1 in
6162
-a|'--api-port')
@@ -107,6 +108,6 @@ if [[ "${SEED}" = "true" ]]; then
107108
compose_files+=" -f docker-compose.seed.yml"
108109
fi
109110

110-
$SCRIPTDIR/volumes.sh marquez
111+
${DOCKER_DIR}/volumes.sh marquez
111112

112-
API_PORT=${API_PORT} API_ADMIN_PORT=${API_ADMIN_PORT} WEB_PORT=${WEB_PORT} TAG="${TAG}" docker-compose $compose_files up $args
113+
API_PORT=${API_PORT} API_ADMIN_PORT=${API_ADMIN_PORT} WEB_PORT=${WEB_PORT} TAG=${TAG} docker-compose $compose_files up $args

new-version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ sed -i "" "s/^version:.*/version: ${RELEASE_VERSION}/g" ./chart/Chart.yaml
130130
sed -i "" "s/tag:.*/tag: ${RELEASE_VERSION}/g" ./chart/values.yaml
131131

132132
# (3) Bump version in scripts
133-
sed -i "" "s/TAG=\d.*/TAG=${RELEASE_VERSION}/g" ./docker/up.sh
134-
sed -i "" "s/TAG=\d.*/TAG=${RELEASE_VERSION}/g" .env.example
133+
sed -i "" "s/VERSION=.*/VERSION=${RELEASE_VERSION}/g" ./docker/up.sh
134+
sed -i "" "s/TAG=.*/TAG=${RELEASE_VERSION}/g" .env.example
135135

136136
# (4) Bump version in docs
137137
sed -i "" "s/^ version:.*/ version: ${RELEASE_VERSION}/g" ./spec/openapi.yml

0 commit comments

Comments
 (0)