Skip to content

Commit 2e99bec

Browse files
authored
Release v2.5.0 (#483)
* Update dockerfile * Release v2.5.0 * [ci skip] Fix Dockerfile
1 parent 506bb7a commit 2e99bec

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-14
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Release 2.5.0a1 (WIP)
1+
## Release 2.5.0 (2025-01-27)
22

33
### Breaking Changes
44
- Upgraded to Pytorch >= 2.3.0
@@ -13,7 +13,7 @@
1313
### Documentation
1414

1515
### Other
16-
16+
- Updated Dockerfile
1717

1818
## Release 2.4.0 (2024-11-18)
1919

docker/Dockerfile

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
ARG PARENT_IMAGE
2-
ARG USE_GPU
32
FROM $PARENT_IMAGE
43

54
USER root
@@ -15,16 +14,23 @@ RUN apt-get -y update \
1514

1615
USER $MAMBA_USER
1716

18-
ENV CODE_DIR /home/$MAMBA_USER/code
17+
ENV CODE_DIR=/home/$MAMBA_USER/code
1918
COPY requirements.txt /tmp/
2019

20+
# Copy setup file only to install dependencies
21+
COPY --chown=$MAMBA_USER:$MAMBA_USER ./setup.py ${CODE_DIR}/rl_zoo3/setup.py
22+
COPY --chown=$MAMBA_USER:$MAMBA_USER ./rl_zoo3/version.txt ${CODE_DIR}/rl_zoo3/rl_zoo3/version.txt
23+
COPY --chown=$MAMBA_USER:$MAMBA_USER ./hyperparams ${CODE_DIR}/rl_zoo3/hyperparams
24+
COPY --chown=$MAMBA_USER:$MAMBA_USER ./rl_zoo3/plots ${CODE_DIR}/rl_zoo3/rl_zoo3/plots
25+
26+
2127
RUN \
2228
eval "$(micromamba shell hook --shell bash)" && \
2329
micromamba activate && \
24-
mkdir -p ${CODE_DIR}/rl_zoo3 && \
25-
pip uninstall -y stable-baselines3 && \
26-
pip install -r /tmp/requirements.txt && \
27-
pip install highway-env>=1.7.1 && \
28-
pip cache purge
30+
cd ${CODE_DIR}/rl_zoo3 && \
31+
uv pip uninstall stable-baselines3 && \
32+
uv pip install --system -r /tmp/requirements.txt && \
33+
uv pip install --system -e ".[plots,tests]" && \
34+
uv cache clean
2935

3036
CMD /bin/bash

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gym==0.26.2
2-
stable-baselines3[extra,tests,docs]>=2.5.0a0,<3.0
2+
stable-baselines3[extra,tests,docs]>=2.5.0,<3.0
33
box2d-py==2.3.8
44
pybullet_envs_gymnasium>=0.5.0
55
# minigrid

rl_zoo3/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.0a1
1+
2.5.0

scripts/build_docker.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
PARENT=stablebaselines/stable-baselines3
44

55
TAG=stablebaselines/rl-baselines3-zoo
6-
VERSION=2.2.0a1
6+
VERSION=$(cat ./rl_zoo3/version.txt)
77

88
if [[ ${USE_GPU} == "True" ]]; then
99
PARENT="${PARENT}:${VERSION}"
@@ -12,7 +12,7 @@ else
1212
TAG="${TAG}-cpu"
1313
fi
1414

15-
docker build --build-arg PARENT_IMAGE=${PARENT} --build-arg USE_GPU=${USE_GPU} -t ${TAG}:${VERSION} . -f docker/Dockerfile
15+
docker build --build-arg PARENT_IMAGE=${PARENT} -t ${TAG}:${VERSION} . -f docker/Dockerfile
1616
docker tag ${TAG}:${VERSION} ${TAG}:latest
1717

1818
if [[ ${RELEASE} == "True" ]]; then

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
See https://github.com/DLR-RM/rl-baselines3-zoo
1616
"""
1717
install_requires = [
18-
"sb3_contrib>=2.5.0a0,<3.0",
18+
"sb3_contrib>=2.5.0,<3.0",
1919
"gymnasium>=0.29.1,<1.1.0",
2020
"huggingface_sb3>=3.0,<4.0",
2121
"tqdm",

0 commit comments

Comments
 (0)