-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: GPU jenkins support * Update jenkins.Dockerfile Updated Dockerfile
- Loading branch information
Showing
2 changed files
with
82 additions
and
13 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,49 @@ | ||
# https://www.jenkins.io/doc/book/installing/docker/ - Follow these steps for starting jenkins. | ||
FROM nvidia/cuda:11.6.2-cudnn8-runtime-ubuntu20.04 | ||
|
||
# Docker image specific installation | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
python3-numpy \ | ||
python3-pip \ | ||
python3-pytest \ | ||
python3-pytest-cov \ | ||
python3-venv \ | ||
python3-yaml \ | ||
ffmpeg \ | ||
&& \ | ||
apt-get autoremove --purge -y && \ | ||
apt-get autoclean -y && \ | ||
rm -rf /var/cache/apt/* /var/lib/apt/lists/* | ||
|
||
# OpenCV Specific Installation | ||
RUN apt-get -qq update && \ | ||
apt-get -qq install -y --no-install-recommends \ | ||
build-essential \ | ||
cmake \ | ||
git \ | ||
wget \ | ||
unzip \ | ||
yasm \ | ||
pkg-config \ | ||
ffmpeg \ | ||
libsm6 \ | ||
libxext6 \ | ||
libswscale-dev \ | ||
libtbb2 \ | ||
libtbb-dev \ | ||
libjpeg-dev \ | ||
libpng-dev \ | ||
libtiff-dev \ | ||
libopenjp2-7-dev \ | ||
libavformat-dev \ | ||
libpq-dev \ | ||
python3-dev \ | ||
sudo \ | ||
openjdk-11-jdk \ | ||
openjdk-11-jre | ||
|
||
# Give Permission To Home Directory To Create EVA | ||
RUN mkdir /.eva && chmod -R 777 /.eva | ||
RUN mkdir /.cache && chmod -R 777 /.cache | ||
RUN mkdir /.EasyOCR && chmod -R 777 /.EasyOCR |