mirror of
https://github.com/gryf/coach.git
synced 2026-02-02 14:15:45 +01:00
introduce dockerfiles. (#169)
* introduce dockerfiles. * ensure golden tests are run not just collected. * Skip CI download of dockerfiles. * add StarCraft environment and tests. * add minimaps starcraft validation parameters. * Add functional test running (from Ayoob) * pin mujoco_py version to a 1.5 compatible release. * fix config syntax issue. * pin remaining mujoco_py install calls. * Relax pin of gym version in gym Dockerfile. * update makefile based on functional test filtering.
This commit is contained in:
33
docker/Dockerfile
Normal file
33
docker/Dockerfile
Normal file
@@ -0,0 +1,33 @@
|
||||
FROM coach-base:master as builder
|
||||
|
||||
# prep some of the more common environments
|
||||
# Gym (installed with coach)
|
||||
Run pip3 install gym[atari] box2d
|
||||
# Mujoco
|
||||
RUN mkdir -p ~/.mujoco \
|
||||
&& wget https://www.roboti.us/download/mjpro150_linux.zip -O mujoco.zip \
|
||||
&& unzip mujoco.zip -d ~/.mujoco \
|
||||
&& rm mujoco.zip
|
||||
ARG MUJOCO_KEY
|
||||
ENV MUJOCO_KEY=$MUJOCO_KEY
|
||||
ENV LD_LIBRARY_PATH /root/.mujoco/mjpro150/bin:$LD_LIBRARY_PATH
|
||||
RUN echo $MUJOCO_KEY | base64 --decode > /root/.mujoco/mjkey.txt
|
||||
RUN pip3 install mujoco_py==1.50.1.68
|
||||
# Vizdoom
|
||||
RUN pip3 install vizdoom
|
||||
|
||||
RUN mkdir /root/src
|
||||
COPY setup.py /root/src/.
|
||||
COPY requirements.txt /root/src/.
|
||||
RUN pip3 install -r /root/src/requirements.txt
|
||||
|
||||
FROM coach-base:master
|
||||
WORKDIR /root/src
|
||||
COPY --from=builder /root/.mujoco /root/.mujoco
|
||||
ENV LD_LIBRARY_PATH /root/.mujoco/mjpro150/bin:$LD_LIBRARY_PATH
|
||||
COPY --from=builder /root/.cache /root/.cache
|
||||
COPY setup.py /root/src/.
|
||||
COPY requirements.txt /root/src/.
|
||||
COPY README.md /root/src/.
|
||||
RUN pip3 install gym[atari] box2d mujoco_py==1.50.1.68 vizdoom && pip3 install -e .[all] && rm -rf /root/.cache
|
||||
COPY . /root/src
|
||||
Reference in New Issue
Block a user