-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from FragileTech/ci
Fix codecov
- Loading branch information
Showing
7 changed files
with
75 additions
and
42 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 |
---|---|---|
@@ -1,35 +1,20 @@ | ||
FROM ubuntu:20.04 | ||
ARG JUPYTER_PASSWORD="plangym" | ||
ARG ROM_PASSWORD="" | ||
|
||
ENV BROWSER=/browser \ | ||
LC_ALL=en_US.UTF-8 \ | ||
LANG=en_US.UTF-8 | ||
COPY Makefile.docker Makefile | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-suggests --no-install-recommends make cmake && \ | ||
make install-python3.8 && \ | ||
make install-common-dependencies && \ | ||
make install-python-libs && \ | ||
make install-env-deps | ||
|
||
COPY . plangym/ | ||
|
||
RUN cd plangym \ | ||
&& make install-mujoco \ | ||
&& python3 -m pip install -r requirements-lint.txt \ | ||
&& python3 -m pip install -r requirements-test.txt \ | ||
&& python3 -m pip install -r requirements.txt \ | ||
&& python3 -m pip install ipython jupyter \ | ||
&& python3 -m pip install -e . \ | ||
&& ROM_PASSWORD=${ROM_PASSWORD} make import-roms \ | ||
&& git config --global init.defaultBranch master \ | ||
&& git config --global user.name "Whoever" \ | ||
&& git config --global user.email "[email protected]" | ||
|
||
RUN make remove-dev-packages | ||
|
||
RUN mkdir /root/.jupyter && \ | ||
echo 'c.NotebookApp.token = "'${JUPYTER_PASSWORD}'"' > /root/.jupyter/jupyter_notebook_config.py | ||
CMD jupyter notebook --allow-root --port 8080 --ip 0.0.0.0 | ||
FROM ubuntu:22.04 | ||
|
||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-suggests --no-install-recommends \ | ||
make cmake git xvfb build-essential curl ssh wget ca-certificates swig \ | ||
python3 python3-dev && \ | ||
wget -O - https://bootstrap.pypa.io/get-pip.py | python3 | ||
|
||
RUN python3 -m pip install uv | ||
COPY src ./src | ||
COPY requirements.lock . | ||
COPY pyproject.toml . | ||
COPY src/plangym/scripts/import_retro_roms.py . | ||
COPY LICENSE . | ||
COPY README.md . | ||
COPY ROMS.zip . | ||
|
||
RUN uv pip install --no-cache --system -r requirements.lock | ||
RUN python3 src/plangym/scripts/import_retro_roms.py |
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,35 @@ | ||
FROM ubuntu:20.04 | ||
ARG JUPYTER_PASSWORD="plangym" | ||
ARG ROM_PASSWORD="" | ||
|
||
ENV BROWSER=/browser \ | ||
LC_ALL=en_US.UTF-8 \ | ||
LANG=en_US.UTF-8 | ||
COPY Makefile.docker Makefile | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-suggests --no-install-recommends make cmake curl ssh && \ | ||
make install-python3.8 && \ | ||
make install-common-dependencies && \ | ||
make install-python-libs && \ | ||
make install-env-deps | ||
|
||
COPY . plangym/ | ||
|
||
RUN cd plangym \ | ||
&& make install-mujoco \ | ||
&& python3 -m pip install -r requirements-lint.txt \ | ||
&& python3 -m pip install -r requirements-test.txt \ | ||
&& python3 -m pip install -r requirements.txt \ | ||
&& python3 -m pip install ipython jupyter \ | ||
&& python3 -m pip install -e . \ | ||
&& ROM_PASSWORD=${ROM_PASSWORD} make import-roms \ | ||
&& git config --global init.defaultBranch master \ | ||
&& git config --global user.name "Whoever" \ | ||
&& git config --global user.email "[email protected]" | ||
|
||
RUN make remove-dev-packages | ||
|
||
RUN mkdir /root/.jupyter && \ | ||
echo 'c.NotebookApp.token = "'${JUPYTER_PASSWORD}'"' > /root/.jupyter/jupyter_notebook_config.py | ||
CMD jupyter notebook --allow-root --port 8080 --ip 0.0.0.0 |
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
Empty file.
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