Skip to content

Commit

Permalink
different attempt to get build to work
Browse files Browse the repository at this point in the history
  • Loading branch information
donalffons committed Sep 22, 2020
1 parent 07709f7 commit f38f083
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,4 @@ ENV KILL_ALL_PROCESSES_TIMEOUT=300
WORKDIR /opencascade/
COPY . .

ENTRYPOINT \
source /emscripten/emsdk_env.sh && \
bash -c "./patience.sh &" && \
python3.8 make.py wasm > /dev/null 2>&1
ENTRYPOINT ["./execBuild.sh"]
7 changes: 7 additions & 0 deletions execBuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

source /emscripten/emsdk_env.sh

./patience.sh &
python3.8 make.py wasm > /dev/null 2>&1
echo "done."
11 changes: 0 additions & 11 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,16 +336,5 @@ def build():

stopThread = False

def printAliveSignal():
while not stopThread:
current_time = datetime.now().strftime("%H:%M:%S")
print("I'm alive! Current Time = " + str(current_time), flush=True)
time.sleep(15)
return True

if __name__ == '__main__':
process = Thread(target=printAliveSignal)
process.start()
build()
stopThread = True
process.join()
8 changes: 7 additions & 1 deletion patience.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/bin/bash

start=`date +%s`

while true
do
echo "patience is a virtue"
sleep 60
end=`date +%s`
runtime=$((end-start))
echo $runtime

sleep 300
done

0 comments on commit f38f083

Please sign in to comment.