Skip to content

Commit 60c7c77

Browse files
authored
Merge pull request #48 from strangest-quark/master
Fixing stack-brew.py #39
2 parents 20aafe6 + 3c484ee commit 60c7c77

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

brew/stack-brew.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
clients = [x for x in args if x in CLIENTS]
2525

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

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

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

5353
if len(error_services) > 0:

brew/stackbox-brew.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ else
132132
echo "Unable to find a python 3 installation"
133133
fi
134134

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

138138
printf "\n"
139139
echo "######## DEPLOYING YOUR STACK ##############"
140140

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

143143
sleep 5
144144

0 commit comments

Comments
 (0)