Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit d8edfa8

Browse files
Resolved conflicts
2 parents e097012 + 6550263 commit d8edfa8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+428
-253
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ body:
5555
attributes:
5656
label: Docker Selenium version (tag)
5757
description: What version of Docker Selenium are you using?
58-
placeholder: 4.1.0-20211209? Please use the full tag, avoid "latest"
58+
placeholder: 4.1.2-20220217? Please use the full tag, avoid "latest"
5959
validations:
6060
required: true

.github/workflows/deploy.yml

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,35 @@ jobs:
4545
run: ./update_tag_in_docs_and_files.sh ${LATEST_TAG} ${NEXT_TAG}
4646
- name: Build images
4747
run: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make build
48+
- name: Login Docker Hub
49+
run: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
50+
env:
51+
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
52+
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
53+
- name: Deploy new images
54+
uses: nick-invision/retry@v2
55+
with:
56+
timeout_minutes: 20
57+
max_attempts: 3
58+
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release
59+
- name: Tag images as latest
60+
uses: nick-invision/retry@v2
61+
with:
62+
timeout_minutes: 20
63+
max_attempts: 3
64+
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make tag_latest
65+
- name: Deploy latest tag
66+
uses: nick-invision/retry@v2
67+
with:
68+
timeout_minutes: 20
69+
max_attempts: 3
70+
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release_latest
71+
- name: Tag browser images
72+
uses: nick-invision/retry@v2
73+
with:
74+
timeout_minutes: 20
75+
max_attempts: 3
76+
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} PUSH_IMAGE=true make tag_and_push_browser_images
4877
- name: Commit files
4978
run: |
5079
git config --local user.email "[email protected]"
@@ -55,19 +84,6 @@ jobs:
5584
with:
5685
github_token: ${{ secrets.SELENIUM_CI_TOKEN }}
5786
branch: trunk
58-
- name: Login Docker Hub
59-
run: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
60-
env:
61-
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
62-
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
63-
- name: Deploy new images
64-
run: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release
65-
- name: Tag images as latest
66-
run: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make tag_latest
67-
- name: Deploy latest tag
68-
run: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release_latest
69-
- name: Tag browser images
70-
run: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} PUSH_IMAGE=true make tag_and_push_browser_images
7187
- name: Create release notes (release_notes.md)
7288
run: ./generate_release_notes.sh ${LATEST_TAG} origin/trunk ${GRID_VERSION} ${BUILD_DATE}
7389
- name: Create Release

.github/workflows/k8s-deploy-test.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
name: "Test Selenium Grid 4 deployment on Minikube Cluster"
22

33
on:
4-
push:
5-
branches:
6-
- trunk
7-
pull_request:
8-
branches:
9-
- trunk
4+
workflow_dispatch:
105

116
jobs:
127
deploy:
@@ -18,10 +13,10 @@ jobs:
1813
- name: Checkout
1914
uses: actions/checkout@v1
2015
- name: Setup Minikube
21-
uses: manusa/actions-setup-minikube@v2.3.0
16+
uses: manusa/actions-setup-minikube@v2.4.3
2217
with:
23-
minikube version: "v1.13.1"
24-
kubernetes version: "v1.19.2"
18+
minikube version: 'v1.24.0'
19+
kubernetes version: 'v1.23.0'
2520
github token: ${{ secrets.GITHUB_TOKEN }}
2621
driver: none
2722
- name: Interact with Minikube

Base/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ COPY supervisord.conf /etc
7878
RUN mkdir -p /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
7979
&& touch /opt/selenium/config.toml \
8080
&& chmod -R 777 /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor /etc/passwd \
81-
&& wget --no-verbose https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.1.0/selenium-server-4.1.0.jar \
81+
&& wget --no-verbose https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.1.0/selenium-server-4.1.2.jar \
8282
-O /opt/selenium/selenium-server.jar \
8383
&& chgrp -R 0 /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
8484
&& chmod -R g=u /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor
@@ -88,5 +88,9 @@ RUN mkdir -p /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/su
8888
#===================================================
8989
USER 1200:1201
9090

91+
# Boolean value, maps "--bind-host"
92+
ENV SE_BIND_HOST false
93+
94+
9195

9296
CMD ["/opt/bin/entry_point.sh"]

Distributor/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
33
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
44
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5-
FROM selenium/base:4.1.0-20211209
5+
FROM selenium/base:4.1.2-20220217
66
LABEL authors=SeleniumHQ
77

88
USER 1200

Distributor/start-selenium-grid-distributor.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ java ${JAVA_OPTS} -jar /opt/selenium/selenium-server.jar distributor \
6060
--sessionqueue-host "${SE_SESSION_QUEUE_HOST}" --sessionqueue-port "${SE_SESSION_QUEUE_PORT}" \
6161
--publish-events tcp://"${SE_EVENT_BUS_HOST}":"${SE_EVENT_BUS_PUBLISH_PORT}" \
6262
--subscribe-events tcp://"${SE_EVENT_BUS_HOST}":"${SE_EVENT_BUS_SUBSCRIBE_PORT}" \
63+
--bind-host ${SE_BIND_HOST} \
6364
--bind-bus false \
6465
${HOST_CONFIG} \
6566
${PORT_CONFIG} \

EventBus/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
33
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
44
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5-
FROM selenium/base:4.1.0-20211209
5+
FROM selenium/base:4.1.2-20220217
66
LABEL authors=SeleniumHQ
77

88
USER 1200

EventBus/start-selenium-grid-eventbus.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if [ ! -z "$SE_OPTS" ]; then
2020
fi
2121

2222
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server.jar event-bus \
23+
--bind-host ${SE_BIND_HOST} \
2324
${HOST_CONFIG} \
2425
${PORT_CONFIG} \
2526
${SE_OPTS}

Hub/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ EXPOSE 4444
1818
# In seconds, maps to "--session-request-timeout"
1919
ENV SE_SESSION_REQUEST_TIMEOUT 300
2020
# In seconds, maps to "--session-retry-interval"
21-
ENV SE_SESSION_RETRY_INTERVAL 5
21+
ENV SE_SESSION_RETRY_INTERVAL 0
2222
# Boolean value, maps "--relax-checks"
2323
ENV SE_RELAX_CHECKS true
2424

Hub/Dockerfile.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ EXPOSE 4444
1111
# In seconds, maps to "--session-request-timeout"
1212
ENV SE_SESSION_REQUEST_TIMEOUT 300
1313
# In seconds, maps to "--session-retry-interval"
14-
ENV SE_SESSION_RETRY_INTERVAL 5
14+
ENV SE_SESSION_RETRY_INTERVAL 0
1515
# Boolean value, maps "--relax-checks"
1616
ENV SE_RELAX_CHECKS true
1717

0 commit comments

Comments
 (0)