Skip to content

Commit

Permalink
[Feat]: Apply to get the new files that push containers to dockerhub. (
Browse files Browse the repository at this point in the history
…#52)

Both elegy and elegy-gpu are pushed to dockerhub, containers defined in the containers folder
  • Loading branch information
David Cardozo authored Jul 21, 2020
1 parent 9fc946d commit de72282
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions containers/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ARG PY_VERSION=3.8
FROM docker.io/python:${PY_VERSION}

RUN pip install jaxlib jax elegy dataget matplotlib typer
WORKDIR /usr/src/app
COPY examples/ /usr/src/app/

18 changes: 18 additions & 0 deletions containers/GPU/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM docker.io/nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04

RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common && \
add-apt-repository ppa:deadsnakes -y && \
apt-get update && apt-get install -y --no-install-recommends \
python3.8-dev \
python3.8-distutils \
curl \
&& curl -Lk "https://bootstrap.pypa.io/get-pip.py" | python3.8 && \
rm -rf /var/lib/apt/lists/*

ENV BASE_URL="https://storage.googleapis.com/jax-releases"
RUN python3.8 -m pip install --upgrade $BASE_URL/cuda102/jaxlib-0.1.51-cp38-none-manylinux2010_x86_64.whl
RUN python3.8 -m pip install --upgrade jax elegy dataget matplotlib typer
ENV XLA_PYTHON_CLIENT_ALLOCATOR="platform"

COPY examples/ /usr/src/app/

0 comments on commit de72282

Please sign in to comment.