aboutsummaryrefslogtreecommitdiffstats
path: root/compose/start-compose.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compose/start-compose.sh')
-rwxr-xr-xcompose/start-compose.sh23
1 files changed, 5 insertions, 18 deletions
diff --git a/compose/start-compose.sh b/compose/start-compose.sh
index a5da09d8..671927ba 100755
--- a/compose/start-compose.sh
+++ b/compose/start-compose.sh
@@ -32,7 +32,6 @@ COMPOSE_FOLDER="${WORKSPACE}"/compose
# Set default values for the options
grafana=false
-gui=false
# Parse the command-line arguments
while [[ $# -gt 0 ]]
@@ -44,11 +43,6 @@ do
grafana=true
shift
;;
- --gui)
- gui=true
- shift 2
- break;
- ;;
*)
component="$1"
shift
@@ -72,6 +66,9 @@ if [ -z "$ROBOT_LOG_DIR" ]; then
export ROBOT_LOG_DIR=/tmp/
fi
+# always 'docker' if running docker compose
+export TEST_ENV="docker"
+
if [ -n "$component" ]; then
if [ "$component" == "logs" ]; then
echo "Collecting logs..."
@@ -81,24 +78,14 @@ if [ -n "$component" ]; then
docker compose up -d "${component}" grafana
echo "Prometheus server: http://localhost:${PROMETHEUS_PORT}"
echo "Grafana server: http://localhost:${GRAFANA_PORT}"
- elif [ "$gui" = true ]; then
- echo "Starting application with gui..."
- docker compose -f docker-compose.yml -f docker-compose.gui.yml up -d "${component}" policy-gui
- echo "Clamp GUI: https://localhost:2445/clamp"
else
echo "Starting ${component} application"
docker compose up -d "${component}"
fi
else
export PROJECT=api # api has groups.json complete with all 3 pdps
- if [ "$gui" = true ]; then
- echo "Starting application with gui..."
- docker compose -f docker-compose.yml -f docker-compose.gui.yml up -d
- echo "Clamp GUI: https://localhost:2445/clamp"
- else
- echo "Starting all components..."
- docker compose up -d
- fi
+ echo "Starting all components..."
+ docker compose up -d
fi
cd ${WORKSPACE}