Skip to content

Commit

Permalink
Create image for use in ML pipelines (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart authored Apr 29, 2024
1 parent f48bab4 commit 8c44af9
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
matrix:
dockerfile: [[e4s-ubuntu-18.04, e4s-ubuntu-18.04.dockerfile, 'linux/amd64,linux/ppc64le,linux/arm64'],
[e4s-ubuntu-20.04, e4s-ubuntu-20.04.dockerfile, 'linux/amd64,linux/ppc64le,linux/arm64'],
[ubuntu-22.04, ubuntu-22.04.dockerfile, 'linux/amd64,linux/ppc64le,linux/arm64'],
[linux-ubuntu22.04-x86_64_v2, linux-ubuntu22.04-x86_64_v2/Dockerfile, 'linux/amd64'],
[tutorial-ubuntu-22.04, tutorial-ubuntu-22.04/Dockerfile, 'linux/amd64'],
[e4s-amazonlinux-2, e4s-amazonlinux-2.dockerfile, 'linux/amd64,linux/arm64'],
Expand Down
57 changes: 57 additions & 0 deletions Dockerfiles/ubuntu-22.04.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Los_Angeles

RUN apt update -y \
&& apt upgrade -y \
&& apt install -y \
autoconf \
automake \
bzip2 \
cpio \
curl \
file \
findutils \
g++ \
gcc \
gettext \
gfortran \
git \
gpg \
iputils-ping \
jq \
libffi-dev \
libssl-dev \
libxml2-dev \
locales \
locate \
m4 \
make \
mercurial \
ncurses-dev \
patch \
patchelf \
pciutils \
python3-pip \
rsync \
unzip \
wget \
zlib1g-dev \
&& locale-gen en_US.UTF-8 \
&& apt autoremove --purge \
&& apt clean \
&& ln -s /usr/bin/gpg /usr/bin/gpg2 \
&& ln -s `which python3` /usr/bin/python

RUN python -m pip install --upgrade pip setuptools wheel \
&& python -m pip install gnureadline boto3 pyyaml pytz minio requests clingo \
&& rm -rf ~/.cache

CMD ["/bin/bash"]

ENV NVIDIA_VISIBLE_DEVICES=all \
NVIDIA_DRIVER_CAPABILITIES=compute,utility \
LANGUAGE=en_US:en \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8

0 comments on commit 8c44af9

Please sign in to comment.