Skip to content

Commit

Permalink
Update the chrome version (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-shree authored May 17, 2024
1 parent 8a113db commit ffcf553
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
1.2.3
- [x] fix: Chrome and chromedriver issue for image build

1.2.2
- [x] update: Update Gitlab personal token

Expand Down
36 changes: 23 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM gpuci/miniconda-cuda:10.2-runtime-ubuntu18.04

ARG CHROME_VERSION="114.0.5735.90"

RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub \
&& apt-get -y update \
&& apt-get install -y wget gcc libpq-dev
Expand All @@ -12,22 +10,34 @@ RUN conda install python=3.8 -y\

WORKDIR /home/kfp

RUN wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}-1_amd64.deb \
&& apt install -y /tmp/chrome.deb \
&& rm /tmp/chrome.deb

# install chromedriver
RUN apt-get install -yqq unzip
RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/${CHROME_VERSION}/chromedriver_linux64.zip
RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/\
&& rm /tmp/chromedriver.zip\
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --fix-missing \
libxss1 libappindicator1 libindicator7 jq \
&& rm -rf /var/lib/apt/lists/*

RUN LATEST_CHROME_RELEASE=$(curl -s https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq '.channels.Stable') \
&& LATEST_CHROME_URL=$(echo "$LATEST_CHROME_RELEASE" | jq -r '.downloads.chrome[] | select(.platform == "linux64") | .url') \
&& wget -N "$LATEST_CHROME_URL" -P /root/ \
&& unzip /root/chrome-linux64.zip -d /root/ \
&& mv /root/chrome-linux64 /root/chrome \
&& ln -s /root/chrome/chrome /usr/local/bin/chrome \
&& chmod +x /root/chrome \
&& rm /root/chrome-linux64.zip

# Install Chromedriver
RUN LATEST_CHROME_RELEASE=$(curl -s https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq '.channels.Stable') \
&& LATEST_CHROME_DRIVER_URL=$(echo "$LATEST_CHROME_RELEASE" | jq -r '.downloads.chromedriver[] | select(.platform == "linux64") | .url') \
&& wget -N "$LATEST_CHROME_DRIVER_URL" -P /root/ \
&& unzip /root/chromedriver-linux64.zip -d /root/ \
&& mv /root/chromedriver-linux64 /root/chromedriver \
&& ln -s /root/chromedriver /usr/local/bin/chromedriver \
&& chmod +x /root/chromedriver \
&& rm /root/chromedriver-linux64.zip

# set display port to avoid crashgit
ENV DISPLAY=:99

RUN apt-get -y update\
&& apt-get -y install libblas-dev liblapack-dev gfortran ffmpeg cmake
&& apt-get -y --fix-missing install libblas-dev liblapack-dev gfortran ffmpeg cmake

# install johnny.
RUN curl -s https://api.github.com/repos/skit-ai/johnny/releases/latest \
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "skit-pipelines"
version = "1.2.2"
version = "1.2.3"
description = "Kubeflow components for ml workflows at skit.ai."
authors = ["ltbringer <amresh.venugopal@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit ffcf553

Please sign in to comment.