Skip to content

Commit

Permalink
Release 4.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Builder Service committed Aug 3, 2018
1 parent 6647ddf commit b78f3be
Show file tree
Hide file tree
Showing 54 changed files with 797 additions and 205 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

This repository will contain orchestration files and documentation for using the individual Hub Docker containers.

## Location of hub 4.7.3 archive:
## Location of hub 4.8.0 archive:

https://github.com/blackducksoftware/hub/archive/v4.7.3.tar.gz
https://github.com/blackducksoftware/hub/archive/v4.8.0.tar.gz

## Important Upgrade Announcement

Expand Down
1 change: 0 additions & 1 deletion docker-compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,4 +399,3 @@ This example will add a second Job Runner container. It is also possible to remo
```
docker-compose -p hub scale jobrunner=1
```

2 changes: 1 addition & 1 deletion docker-compose/bin/hub_add_replication_user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

TIMEOUT=${TIMEOUT:-10}
HUB_VERSION=${HUB_VERSION:-4.7.3}
HUB_VERSION=${HUB_VERSION:-4.8.0}
HUB_DATABASE_IMAGE_NAME=${HUB_DATABASE_IMAGE_NAME:-postgres}

function fail() {
Expand Down
25 changes: 23 additions & 2 deletions docker-compose/bin/hub_create_data_dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
set -e

TIMEOUT=${TIMEOUT:-10}
HUB_VERSION=${HUB_VERSION:-4.7.3}
HUB_VERSION=${HUB_VERSION:-4.8.0}
HUB_DATABASE_IMAGE_NAME=${HUB_DATABASE_IMAGE_NAME:-postgres}

function fail() {
Expand Down Expand Up @@ -68,7 +68,28 @@ docker exec -i ${container_id} pg_dump -U blackduck -Fc -f /tmp/bds_hub.dump bds
exitCode=$?
[ ${exitCode} -ne 0 ] && fail "Cannot create the dump file from the container [Container Id: ${container_id}]" 8

docker cp ${container_id}:/tmp/bds_hub.dump ${local_dest_dump_file}
# Create an absolute path to copy to, adds support for symbolic links
if [ ! -d "$local_dest_dump_file" ]; then
cd `dirname $local_dest_dump_file`
base_file=`basename $local_dest_dump_file`
symlink_count=0
while [ -L "$base_file" ]; do
(( symlink_count++ ))
if [ "$symlink_count" -gt 100 ]; then
fail "MAXSYMLINK level reached." 1
fi
base_file=`readlink $base_file`
cd `dirname $base_file`
base_file=`basename $base_file`
done
present_dir=`pwd -P`
local_absolute_path=$present_dir/$base_file

else
local_absolute_path=${local_dest_dump_file}
fi

docker cp ${container_id}:/tmp/bds_hub.dump "${local_absolute_path}"
exitCode=$?
[ ${exitCode} -ne 0 ] && fail "Was not able to copy the dump file over [Container Id: ${container_id}]" 9

Expand Down
2 changes: 1 addition & 1 deletion docker-compose/bin/hub_db_migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
set -e

TIMEOUT=${TIMEOUT:-10}
HUB_VERSION=${HUB_VERSION:-4.7.3}
HUB_VERSION=${HUB_VERSION:-4.8.0}
HUB_DATABASE_IMAGE_NAME=${HUB_DATABASE_IMAGE_NAME:-postgres}

function fail() {
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/bin/hub_replication_changepassword.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

TIMEOUT=${TIMEOUT:-10}
HUB_VERSION=${HUB_VERSION:-4.7.3}
HUB_VERSION=${HUB_VERSION:-4.8.0}
HUB_DATABASE_IMAGE_NAME=${HUB_DATABASE_IMAGE_NAME:-postgres}

function fail() {
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/bin/hub_reportdb_changepassword.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

TIMEOUT=${TIMEOUT:-10}
HUB_VERSION=${HUB_VERSION:-4.7.3}
HUB_VERSION=${HUB_VERSION:-4.8.0}
HUB_DATABASE_IMAGE_NAME=${HUB_DATABASE_IMAGE_NAME:-postgres}

function fail() {
Expand Down
Loading

0 comments on commit b78f3be

Please sign in to comment.