Skip to content

Commit

Permalink
Add HF and python 3.8 support to image build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpalms committed Feb 18, 2024
1 parent 56d87fa commit e8dc33b
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions images/base/on.arg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
3.10-bullseye
3.9-bullseye
3.8-bullseye
3.7-bullseye
3 changes: 3 additions & 0 deletions images/ray_rllib/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ RUN apt-get -qy update && \
apt-get -qy clean

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 HOME=/tmp
ENV HF_HOME=/tmp

# Copy arena to tmp since bind-mount is read-only and pip doesn't support
# out-of-tree builds.
RUN --mount=target=/usr/src/arena,type=bind,source=. \
cp -r /usr/src/arena /tmp/arena && \
pip install /tmp/arena[ray-rllib] && \
rm -rf /tmp/arena

RUN pip install huggingface_hub
1 change: 1 addition & 0 deletions images/ray_rllib/on.arg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
3.10-bullseye
3.9-bullseye
3.8-bullseye
3 changes: 3 additions & 0 deletions images/sheeprl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ RUN apt-get -qy update && \
apt-get -qy clean

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV HF_HOME=/tmp

# Copy arena to tmp since bind-mount is read-only and pip doesn't support
# out-of-tree builds.
RUN --mount=target=/usr/src/arena,type=bind,source=. \
cp -r /usr/src/arena /tmp/arena && \
pip install /tmp/arena[sheeprl] && \
rm -rf /tmp/arena

RUN pip install huggingface_hub
3 changes: 3 additions & 0 deletions images/stable-baselines/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apt-get -qy update && \
apt-get -qy clean

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV HF_HOME=/tmp

# Copy arena to tmp since bind-mount is read-only and pip doesn't support
# out-of-tree builds.
Expand All @@ -18,3 +19,5 @@ RUN --mount=target=/usr/src/arena,type=bind,source=. \
pip install /tmp/arena[stable-baselines] && \
pip install tensorflow==1.15.0 && \
rm -rf /tmp/arena

RUN pip install huggingface_hub
3 changes: 3 additions & 0 deletions images/stable-baselines3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ RUN apt-get -qy update && \
apt-get -qy clean

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV HF_HOME=/tmp

# Copy arena to tmp since bind-mount is read-only and pip doesn't support
# out-of-tree builds.
RUN --mount=target=/usr/src/arena,type=bind,source=. \
cp -r /usr/src/arena /tmp/arena && \
pip install /tmp/arena[stable-baselines3] && \
rm -rf /tmp/arena

RUN pip install huggingface_hub
1 change: 1 addition & 0 deletions images/stable-baselines3/on.arg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
3.10-bullseye
3.9-bullseye
3.8-bullseye

0 comments on commit e8dc33b

Please sign in to comment.