Skip to content

Commit

Permalink
Merge pull request #42 from zebrunner/develop
Browse files Browse the repository at this point in the history
1.6 rc
  • Loading branch information
vdelendik authored Jul 29, 2022
2 parents 25bb068 + a9d8d27 commit 74d0433
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.original
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TAG_SELENOID=1.10.7
TAG_SELENOID=1.10.8

S3_ENDPOINT=http://minio:9000
S3_ACCESS_KEY_ID=zebrunner
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.disabled
.env
.env_*
bin/cm
browsers.json
backup
Expand Down
19 changes: 18 additions & 1 deletion zebrunner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

setup() {

source .env.original
# load current .env if exist to read actual vars even manually updated!
if [[ -f .env ]]; then
source .env
fi

if [[ $ZBR_INSTALLER -eq 0 ]]; then
# load default interactive installer settings
source backup/settings.env.original
Expand Down Expand Up @@ -29,6 +35,17 @@
fi
fi

replace .env "CPU=1.0" "CPU=${CPU}"
replace .env "MEMORY=1024m" "MEMORY=${MEMORY}"
replace .env "LIMIT=5" "LIMIT=${LIMIT}"
replace .env "RETRY_COUNT=1" "RETRY_COUNT=${RETRY_COUNT}"
replace .env "SAVE_ALL_LOGS=-save-all-logs" "SAVE_ALL_LOGS=${SAVE_ALL_LOGS}"
replace .env "SERVICE_STARTUP_TIMEOUT=30s" "SERVICE_STARTUP_TIMEOUT=${SERVICE_STARTUP_TIMEOUT}"
replace .env "SESSION_ATTEMPT_TIMEOUT=30s" "SESSION_ATTEMPT_TIMEOUT=${SESSION_ATTEMPT_TIMEOUT}"
replace .env "SESSION_DELETE_TIMEOUT=30s" "SESSION_DELETE_TIMEOUT=${SESSION_DELETE_TIMEOUT}"
replace .env "TIMEOUT=3m0s" "TIMEOUT=${TIMEOUT}"
replace .env "MAX_TIMEOUT=1h0m0s" "MAX_TIMEOUT=${MAX_TIMEOUT}"

# export all ZBR* variables to save user input
export_settings

Expand Down Expand Up @@ -59,7 +76,7 @@
$VERSION
"

bin/cm selenoid configure --browsers 'chrome;firefox;opera;MicrosoftEdge' --vnc --last-versions 1 --config-dir "${BASEDIR}" $*
bin/cm selenoid configure --force --browsers 'chrome;firefox;opera;MicrosoftEdge' --vnc --last-versions 1 --config-dir "${BASEDIR}" $*
# no need to remove selenoid container as we don't start and only configure prerequisites
}

Expand Down

0 comments on commit 74d0433

Please sign in to comment.