Skip to content

Commit

Permalink
automated commit
Browse files Browse the repository at this point in the history
Signed-off-by: Public copy <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Nov 4, 2024
1 parent f431c24 commit 9bf14db
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 17 deletions.
18 changes: 9 additions & 9 deletions generated.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Access noVNC:
http://localhost:7900/vnc.html`:
```

* Login with the password `secret`.
- Login with the password `secret`.

Any WebDriver tests should point to Selenium on on port 4444.

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ output "config" {
contents = {
packages = concat([
"docker-selenium-supervisor-config",
"docker-selenium-standalone-chrome",
"docker-selenium-standalone-chromium",
], var.extra_packages)
}
accounts = module.accts.block
Expand Down
File renamed without changes.
10 changes: 7 additions & 3 deletions images/docker-selenium/main.tf → images/selenium/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ variable "target_repository" {

module "config" {
source = "./config"
extra_packages = ["docker-selenium"]
extra_packages = ["docker-selenium-base"]
}

locals {
mangled_repository = replace(var.target_repository, "/selenium", "/docker-selenium")

}

module "latest" {
source = "../../tflib/publisher"
name = basename(path.module)
target_repository = var.target_repository
target_repository = local.mangled_repository
config = module.config.config
build-dev = true

Expand All @@ -30,7 +35,6 @@ module "latest" {

module "test" {
source = "./tests"

digest = module.latest.image_ref
}

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "imagetest_feature" "test" {
name = "basic test"
workdir = "/tests"
cmd = <<EOF
./smoke.sh
/tests/smoke.sh
EOF
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CONTAINER_NAME="docker-selenium-$(uuidgen)"

SELENIUM_PORT="4444"
NO_VNC_PORT="7900"
VNC_PORT="5900"
VNC_PORT="5900"

# Start container
docker run \
Expand All @@ -17,6 +17,16 @@ docker run \
-p "${NO_VNC_PORT}":7900 \
-p "${VNC_PORT}":5900 \
-e "SE_NO_VNC_PORT=${NO_VNC_PORT}" \
-e SE_ENABLE_TRACING="false" \
-e SE_NODE_HOST="localhost" \
-e CONFIG_FILE="/opt/selenium/config.toml" \
-e SE_SESSION_RETRY_INTERVAL="15" \
-e SE_SESSION_REQUEST_TIMEOUT="300" \
-e SE_RELAX_CHECKS="true" \
-e SE_HEALTHCHECK_INTERVAL="120" \
-e SE_HUB_HOST="localhost" \
-e "SE_BIND_HOST=true" \
-e "SE_ENABLE_BROWSER_LEFTOVERS_CLEANUP=false" \
-e "SE_VNC_PORT=${VNC_PORT}" \
--platform linux/x86_64 \
--name "${CONTAINER_NAME}" \
Expand Down Expand Up @@ -90,4 +100,4 @@ for assert in "${false_asserts[@]}"; do
fi
done

echo "All checks passed successfully."
echo "All checks passed successfully."

0 comments on commit 9bf14db

Please sign in to comment.