Files
openstack-helm-images/osh-selenium/Dockerfile.ubuntu_bionic
Tin Lam fc2a5cb320 fix(dockerfile): removes blank lines
This patch removes all the blank lines in the run-on \ command.
This also removes commented out block.

Signed-off-by: Tin Lam <t@lam.wtf>
Change-Id: I18d07e57adf05c4885eec02cb8aaf9e574ac5e1d
2021-06-23 16:41:49 +00:00

19 lines
1.0 KiB
Docker

ARG FROM=docker.io/ubuntu:bionic
FROM ${FROM}
RUN set -xe; \
apt-get -y update; \
apt-get install --no-install-recommends -y python3 python3-pip unzip wget gnupg; \
python3 -m pip install --upgrade pip; \
python3 -m pip install selenium; \
wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_88.0.4324.182-1_amd64.deb; \
apt install -y /tmp/chrome.deb; \
# We'll keep it here for later to be able to easily remove chrome pinning \
CHROME_VER=$(dpkg -s google-chrome-stable | grep -Po '(?<=^Version: ).*' | awk -F'.' '{print $1"."$2"."}'); \
wget -O /tmp/index.xml https://chromedriver.storage.googleapis.com/; \
DRIVER_PATH=$(grep -Po "(?<=<Key>)${CHROME_VER}[^<]*?chromedriver_linux64\.zip(?=</Key>)" /tmp/index.xml | tail -1); \
wget --directory-prefix=/tmp/ https://chromedriver.storage.googleapis.com/${DRIVER_PATH}; \
unzip /tmp/chromedriver_linux64.zip -d /etc/selenium; \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/*