Switched from geckodriver to chrome

This commit is contained in:
2022-09-18 19:26:55 +02:00
parent 7cf7422b46
commit db161e50c8
13 changed files with 135 additions and 61 deletions

16
launch
View File

@@ -8,9 +8,7 @@ echo "Bash script launching COSS_ARCHIVING..."
# CHANGE ME ONCE!
export CONTAINER_DATA=/mnt/media/@Bulk/COSS/Downloads/coss_archiving
export UNAME=remy
# CHANGE ME WHEN UPDATING FIREFOX
export GECKODRIVER_IMG=selenium/standalone-firefox:104.0
# version must be >= than the one on the host or firefox will not start (because of mismatched config)
export U_ID=1000
if [[ $1 == "debug" ]]
then
@@ -18,8 +16,8 @@ then
export HEADFULL=true
export CODE=./
export ENTRYPOINT=/bin/bash
# since service ports does not open ports on implicitly started containers, also start geckodriver:
docker compose up -d geckodriver
# since service ports does not open ports on implicitly started containers, also start chrome:
docker compose up -d chrome
elif [[ $1 == "production" ]]
then
export DEBUG=false
@@ -32,6 +30,14 @@ elif [[ $1 == "down" ]]
then
docker compose stop
exit 0
elif [[ $1 == "init" ]]
then
export CODE=./
export HEADFULL=true
docker compose up -d chrome
sleep 5
docker compose exec chrome /bin/bash /code/chrome/change_configuration.sh
else
echo "Please specify the execution mode (debug/production/build) as the first argument"
exit 1