mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 11:40:18 +01:00
committed by
Gal Leibovich
parent
dea1826658
commit
5b11fa5656
@@ -2,6 +2,7 @@
|
|||||||
REGISTRY=docker.io
|
REGISTRY=docker.io
|
||||||
ORGANIZATION=nervana
|
ORGANIZATION=nervana
|
||||||
IMAGE=coach
|
IMAGE=coach
|
||||||
|
CONTEXT = $(realpath ..)
|
||||||
|
|
||||||
BUILD_ARGUMENTS=
|
BUILD_ARGUMENTS=
|
||||||
RUN_ARGUMENTS=
|
RUN_ARGUMENTS=
|
||||||
@@ -14,6 +15,14 @@ ifdef https_proxy
|
|||||||
BUILD_ARGUMENTS+=--build-arg https_proxy=$(https_proxy)
|
BUILD_ARGUMENTS+=--build-arg https_proxy=$(https_proxy)
|
||||||
RUN_ARGUMENTS+=--env https_proxy=$(https_proxy)
|
RUN_ARGUMENTS+=--env https_proxy=$(https_proxy)
|
||||||
endif
|
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
|
ifdef MUJOCO_KEY
|
||||||
BUILD_ARGUMENTS+=--build-arg MUJOCO_KEY=$(MUJOCO_KEY)
|
BUILD_ARGUMENTS+=--build-arg MUJOCO_KEY=$(MUJOCO_KEY)
|
||||||
endif
|
endif
|
||||||
@@ -27,13 +36,11 @@ INTEGRATION_TESTS=python3 -m pytest rl_coach/tests -m integration_test --tb=shor
|
|||||||
ifdef PRESETS
|
ifdef PRESETS
|
||||||
PRESETS := -p $(PRESETS)
|
PRESETS := -p $(PRESETS)
|
||||||
else
|
else
|
||||||
PRESETS :=
|
PRESETS :=
|
||||||
endif
|
endif
|
||||||
GOLDEN_TESTS=python3 rl_coach/tests/test_golden.py ${PRESETS}
|
GOLDEN_TESTS=python3 rl_coach/tests/test_golden.py ${PRESETS}
|
||||||
TRACE_TESTS=python3 rl_coach/tests/trace_tests.py -prl ${PRESETS}
|
TRACE_TESTS=python3 rl_coach/tests/trace_tests.py -prl ${PRESETS}
|
||||||
|
|
||||||
CONTEXT = $(realpath ..)
|
|
||||||
|
|
||||||
ifndef DOCKER
|
ifndef DOCKER
|
||||||
DOCKER = docker
|
DOCKER = docker
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user