-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathrun_docker.sh
More file actions
executable file
·26 lines (21 loc) · 846 Bytes
/
run_docker.sh
File metadata and controls
executable file
·26 lines (21 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /usr/bin/env bash
source ./_repo_vars.sh
echo "Running project ${PROJECT_NAME} (Tag=${BUILD_IMAGE_NAME_AND_TAG})"
echo " - You can get to the API with: curl superego:8301/api/serverinfo"
echo " - You can get to the frontend with: curl superego:8301/frontend/"
docker run --rm -it \
-p 8301:80 \
--name ${PROJECT_NAME} \
--env APIAPP_APIURL=http://localhost:8301/api \
--env APIAPP_TRIGGERAPIURL=http://localhost:8301/triggerapi \
--env APIAPP_APIDOCSURL=http://localhost:8301/apidocs \
--env APIAPP_FRONTENDURL=http://localhost:8301/frontend \
--env APIAPP_COMMON_ACCESSCONTROLALLOWORIGIN="http://localhost:8301,http://superego:8301" \
--env DOCKJOB_EXTERNAL_TRIGGER_SYS_PASSWORD="somlocal_aasd" \
${BUILD_IMAGE_NAME_AND_TAG}
RUN_RES=$?
if [[ ${RUN_RES} -ne 0 ]]; then
echo "Run failed ${RUN_RES}"
exit 1
fi
exit 0