-
Notifications
You must be signed in to change notification settings - Fork 24
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
fe62763
commit 27fb616
Showing
4 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
Dockerfiles/Dockerfile.selenium-jenkins-python311-chromium
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
Dockerfiles/Dockerfile.selenium-jenkins-python311-plus-chromedriver126
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,23 @@ | ||
FROM --platform=linux/amd64 python:3.11 | ||
# For build CBC Jenkins job ECR image | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN mkdir /code | ||
ADD . /code/ | ||
WORKDIR /code | ||
|
||
RUN pip install --upgrade pip | ||
RUN apt-get update && apt-get install -yq git unzip curl | ||
# Install Chrome for Selenium | ||
RUN curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /chrome.deb \ | ||
&& dpkg -i /chrome.deb || apt-get install -yf \ | ||
&& rm /chrome.deb | ||
# Install chromedriver for Selenium | ||
# RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip \ | ||
# && unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ \ | ||
# && chmod +x /usr/local/bin/chromedriver | ||
|
||
# hard code the zip URL here since `curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` still points to 114 which is out of date | ||
RUN wget -O /tmp/chromedriver.zip https://storage.googleapis.com/chrome-for-testing-public/126.0.6478.55/linux64/chromedriver-linux64.zip \ | ||
&& unzip -p /tmp/chromedriver.zip chromedriver-linux64/chromedriver > /usr/local/bin/chromedriver \ | ||
&& chmod +x /usr/local/bin/chromedriver |
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