1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-18 11:40:18 +01:00

check for local mujoco key in build process (#105)

approved by scott.
This commit is contained in:
Zach Dwiel
2018-11-18 03:57:30 -05:00
committed by Gal Leibovich
parent dea1826658
commit 5b11fa5656

View File

@@ -2,6 +2,7 @@
REGISTRY=docker.io
ORGANIZATION=nervana
IMAGE=coach
CONTEXT = $(realpath ..)
BUILD_ARGUMENTS=
RUN_ARGUMENTS=
@@ -14,6 +15,14 @@ ifdef https_proxy
BUILD_ARGUMENTS+=--build-arg https_proxy=$(https_proxy)
RUN_ARGUMENTS+=--env https_proxy=$(https_proxy)
endif
ifndef MUJOCO_KEY
KEY_NAME=${CONTEXT}/mjkey.txt
ifneq ("$(wildcard ${KEY_NAME})", "")
MUJOCO_KEY:=$(shell cat ${KEY_NAME} | base64 -w 0)
endif
endif
ifdef MUJOCO_KEY
BUILD_ARGUMENTS+=--build-arg MUJOCO_KEY=$(MUJOCO_KEY)
endif
@@ -32,8 +41,6 @@ endif
GOLDEN_TESTS=python3 rl_coach/tests/test_golden.py ${PRESETS}
TRACE_TESTS=python3 rl_coach/tests/trace_tests.py -prl ${PRESETS}
CONTEXT = $(realpath ..)
ifndef DOCKER
DOCKER = docker
endif