1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-17 19:20:19 +01:00

first pass at kubernetes

This commit is contained in:
Zach Dwiel
2018-09-17 22:31:17 +00:00
committed by zach dwiel
parent 3328b25549
commit 0812a94fbd
3 changed files with 57 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
REGISTRY=nervana-dockrepo01.fm.intel.com:5001/
IMAGE=zdwiel/coach
# IMAGE=gcr.io/deep-greens/inference:v5
@@ -43,5 +44,9 @@ run_training_worker: build
run_rollout_worker: build
${DOCKER} run ${RUN_ARGUMENTS} -it ${IMAGE} python3 rl_coach/rollout_worker.py --preset CartPole_DQN_distributed
push:
docker push ${IMAGE}
kubernetes: build push
kubectl run -i --tty --attach --image=${IMAGE} --restart=Never date -- python3 rl_coach/orchestrators/start_training.py --preset CartPole_DQN_distributed --image ${IMAGE}
push: build
${DOCKER} tag ${IMAGE} ${REGISTRY}${IMAGE}
${DOCKER} push ${REGISTRY}${IMAGE}