Skip to content

Commit

Permalink
fix mujoco-related build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pzhokhov committed Oct 23, 2018
1 parent fb7dc3e commit 647e1e2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

install: "" # so travis doesn't do pip install requirements.txt
script:
- docker build -f test.dockerfile.${UBUNTU_VER} -t gym-test .
- docker build -f test.dockerfile.${UBUNTU_VER} -t gym-test --build-arg MUJOCO_KEY=$MUJOCO_KEY.
- docker run -e MUJOCO_KEY=$MUJOCO_KEY gym-test tox

deploy:
Expand Down
6 changes: 0 additions & 6 deletions bin/docker_entrypoint
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#!/bin/bash
# This script is the entrypoint for our Docker image.

set -x

if [[ ! -z "$MUJOCO_KEY" ]]; then
echo $MUJOCO_KEY | base64 --decode > /root/.mujoco/mjkey.txt
fi

set -ex

# Set up display; otherwise rendering will fail
Expand Down
8 changes: 4 additions & 4 deletions test.dockerfile.16.04
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ RUN \
mkdir /root/.mujoco && \
cd /root/.mujoco && \
wget https://www.roboti.us/download/mjpro150_linux.zip && \
unzip mjpro150_linux.zip && \

# setup vim to be humane and compatible with codebase standards
echo "set expandtab number shiftwidth=4 tabstop=4" > /root/.vimrc
unzip mjpro150_linux.zip

ARG MUJOCO_KEY
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/.mujoco/mjpro150/bin

RUN echo $MUJOCO_KEY | base64 --decode > /root/.mujoco/mjkey.txt

# install dependencies
COPY . /usr/local/gym/
RUN cd /usr/local/gym && \
Expand Down
2 changes: 2 additions & 0 deletions test.dockerfile.18.04
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ RUN \
wget https://www.roboti.us/download/mjpro150_linux.zip && \
unzip mjpro150_linux.zip

ARG MUJOCO_KEY
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/.mujoco/mjpro150/bin
RUN echo $MUJOCO_KEY | base64 --decode > /root/.mujoco/mjkey.txt

# install dependencies
COPY . /usr/local/gym/
Expand Down

0 comments on commit 647e1e2

Please sign in to comment.