File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ export LOGHI_GPUS="-1"
44
44
# Start the API server in docker
45
45
container_id=$( docker run -u $( id -u ${USER} ) :$( id -g ${USER} ) -v $LOGHI_MODEL_PATH :$LOGHI_MODEL_PATH -v $TEMP_OUTPUT_DIR :$TEMP_OUTPUT_DIR -e LOGHI_MODEL_PATH=$LOGHI_MODEL_PATH -e LOGHI_CHARLIST_PATH=" $LOGHI_MODEL_PATH /charlist.txt" -e LOGHI_MODEL_CHANNELS=1 -e LOGHI_BATCH_SIZE=300 -e LOGHI_OUTPUT_PATH=" $TEMP_OUTPUT_DIR " -e LOGHI_MAX_QUEUE_SIZE=50000 -e LOGGING_LEVEL=" DEBUG" -e LOGHI_GPUS=" -1" -e GUNICORN_RUN_HOST=' 0.0.0.0:5000' -e GUNICORN_WORKERS=1 -e GUNICORN_THREADS=1 -e GUNICORN_ACCESSLOG=' -' --name htr-api-test -p 5000:5000 -d loghi/docker.htr python3 /src/loghi-htr/src/api/gunicorn_app.py)
46
46
47
-
47
+ echo " containerid: " $container_id
48
48
# Assuming the server takes a few seconds to start up, we sleep for a while
49
49
while [ $( curl -w " %{http_code}" -s -o /dev/null localhost:5000/) == " 000" ]; do
50
- echo echo waiting for webservice to start
50
+ echo waiting for webservice to start
51
51
sleep 5s
52
52
done
53
53
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# mkdir -p /tmp/upload
3
+ set -e
3
4
tmp_dir=$( mktemp -d)
4
5
container_id=$( docker run -u $( id -u ${USER} ) :$( id -g ${USER} ) -v $tmp_dir :/tmp/upload --name tooling_integrationtest -d -p 8080:8080 -p 8081:8081 loghi/docker.loghi-tooling /src/loghi-tooling/loghiwebservice/target/appassembler/bin/LoghiWebserviceApplication server /src/loghi-tooling/loghiwebservice/target/classes/configuration.yml)
6
+ echo $container_id
5
7
6
8
while [ " $( docker container inspect -f ' {{.State.Status}}' tooling_integrationtest ) " != " running" ]; do
7
9
echo waiting for the docker to start
You can’t perform that action at this time.
0 commit comments