-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47f4ef3
commit 0490870
Showing
24 changed files
with
332 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# To execute this docker-compose yml file use `docker-compose -f docker-compose.intel.yml up` | ||
# Add the `-d` flag at the end for detached execution | ||
# To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose-v3.yml down` | ||
version: "3" | ||
|
||
services: | ||
|
||
chromium: | ||
image: seleniarm/node-chromium:latest | ||
container_name: selenium-chromium | ||
shm_size: 2gb | ||
ports: | ||
- "7901:7900" | ||
depends_on: | ||
- selenium-hub | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-hub | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
networks: | ||
- grid | ||
|
||
firefox: | ||
image: seleniarm/node-firefox:latest | ||
container_name: selenium-firefox | ||
shm_size: 2gb | ||
ports: | ||
- "7903:7900" | ||
depends_on: | ||
- selenium-hub | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-hub | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
networks: | ||
- grid | ||
|
||
selenium-hub: | ||
image: seleniarm/hub:latest | ||
container_name: selenium-hub | ||
ports: | ||
- "4442:4442" | ||
- "4443:4443" | ||
- "4444:4444" | ||
networks: | ||
- grid | ||
|
||
webserver: | ||
container_name: webserver | ||
build: | ||
context: docker/ | ||
environment: | ||
- PYTHONDONTWRITEBYTECODE=1 | ||
networks: | ||
- grid | ||
depends_on: | ||
- firefox | ||
- chromium | ||
|
||
networks: | ||
grid: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# To execute this docker-compose yml file use `docker-compose -f docker-compose.intel.yml up` | ||
# Add the `-d` flag at the end for detached execution | ||
# To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose-v3.yml down` | ||
version: "3" | ||
|
||
services: | ||
|
||
chrome: | ||
image: selenium/node-chrome:latest | ||
container_name: selenium-chrome | ||
shm_size: 2gb | ||
ports: | ||
- "5901:5900" | ||
depends_on: | ||
- selenium-hub | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-hub | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
networks: | ||
- grid | ||
|
||
edge: | ||
image: selenium/node-edge:latest | ||
container_name: selenium-edge | ||
shm_size: 2gb | ||
ports: | ||
- "5902:5900" | ||
depends_on: | ||
- selenium-hub | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-hub | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
networks: | ||
- grid | ||
|
||
firefox: | ||
image: selenium/node-firefox:latest | ||
container_name: selenium-firefox | ||
shm_size: 2gb | ||
ports: | ||
- "5903:5900" | ||
depends_on: | ||
- selenium-hub | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-hub | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
networks: | ||
- grid | ||
|
||
selenium-hub: | ||
image: selenium/hub:latest | ||
container_name: selenium-hub | ||
ports: | ||
- "4442:4442" | ||
- "4443:4443" | ||
- "4444:4444" | ||
networks: | ||
- grid | ||
|
||
webserver: | ||
container_name: webserver | ||
build: | ||
context: docker/ | ||
environment: | ||
- PYTHONDONTWRITEBYTECODE=1 | ||
networks: | ||
- grid | ||
depends_on: | ||
- firefox | ||
- chrome | ||
- edge | ||
|
||
networks: | ||
grid: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM python:3.10-slim-buster | ||
|
||
WORKDIR /usr/src/app | ||
|
||
ENV FLASK_APP=webserver.py | ||
ENV FLASK_RUN_HOST=0.0.0.0 | ||
ENV FLASK_RUN_PORT=80 | ||
|
||
RUN python -m pip install --upgrade pip && \ | ||
pip install flask | ||
|
||
COPY webserver.py . | ||
|
||
CMD ["flask", "run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from flask import Flask | ||
|
||
app = Flask(__name__) | ||
|
||
|
||
@app.route("/") | ||
def home(): | ||
return """<h1>Success!</h1><a href="#">Link</a><p>Ё</p>""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
if [[ $(uname -m) == "arm64" ]]; then | ||
arch="arm" | ||
else | ||
arch="intel" | ||
fi | ||
|
||
docker-compose -f "docker-compose.${arch}.yml" up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
if [[ $(uname -m) == "arm64" ]]; then | ||
arch="arm" | ||
else | ||
arch="intel" | ||
fi | ||
|
||
docker-compose -f "docker-compose.${arch}.yml" down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.