Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions brew/stack-brew.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
clients = [x for x in args if x in CLIENTS]

# Loads the master yaml containing docker service definitions
with open(src_path+'/master.yaml') as master_service_file:
with open(src_path+'master.yaml') as master_service_file:
master_services = yaml.load(master_service_file, Loader=yaml.FullLoader)

# Populates clients in docker-compose
Expand All @@ -47,7 +47,7 @@
if service == 'kafka':
COMPOSITION['services'][service]['environment']['KAFKA_ADVERTISED_HOST_NAME'] = ip

with open(src_path+'/docker-compose.yml', 'w') as outfile:
with open(src_path+'docker-compose.yml', 'w') as outfile:
yaml.dump(COMPOSITION, outfile, default_flow_style=False, indent=2)

if len(error_services) > 0:
Expand Down
6 changes: 3 additions & 3 deletions brew/stackbox-brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ else
echo "Unable to find a python 3 installation"
fi

docker-compose -f srcPath/docker-compose.yml down 2> /dev/null > srcPath/logs/docker-compose-down-log.txt
docker-compose -f srcPath/docker-compose.yml build > srcPath/logs/docker-compose-build-log.txt
docker-compose -f $srcPath/docker-compose.yml down 2> /dev/null > $srcPath/logs/docker-compose-down-log.txt
docker-compose -f $srcPath/docker-compose.yml build > $srcPath/logs/docker-compose-build-log.txt

printf "\n"
echo "######## DEPLOYING YOUR STACK ##############"

docker-compose -f srcPath/docker-compose.yml up -d --remove-orphans
docker-compose -f $srcPath/docker-compose.yml up -d --remove-orphans

sleep 5

Expand Down