mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 11:40:18 +01:00
add make stop_kubernetes
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
REGISTRY=nervana-dockrepo01.fm.intel.com:5001/
|
# REGISTRY=nervana-dockrepo01.fm.intel.com:5001/
|
||||||
|
# REGISTRY=gcr.io/
|
||||||
|
REGISTRY=docker.io/
|
||||||
IMAGE=zdwiel/coach
|
IMAGE=zdwiel/coach
|
||||||
# IMAGE=gcr.io/deep-greens/inference:v5
|
# IMAGE=gcr.io/deep-greens/inference:v5
|
||||||
|
|
||||||
@@ -44,8 +46,17 @@ run_training_worker: build
|
|||||||
run_rollout_worker: build
|
run_rollout_worker: build
|
||||||
${DOCKER} run ${RUN_ARGUMENTS} -it ${IMAGE} python3 rl_coach/rollout_worker.py --preset CartPole_DQN_distributed
|
${DOCKER} run ${RUN_ARGUMENTS} -it ${IMAGE} python3 rl_coach/rollout_worker.py --preset CartPole_DQN_distributed
|
||||||
|
|
||||||
kubernetes: build push
|
bootstrap_kubernetes: build push
|
||||||
kubectl run -i --tty --attach --image=${REGISTRY}${IMAGE} --restart=Never distributed-coach -- python3 rl_coach/orchestrators/start_training.py --preset CartPole_DQN_distributed --image ${IMAGE}
|
kubectl run -i --tty --attach --image=${REGISTRY}${IMAGE} --restart=Never distributed-coach -- python3 rl_coach/orchestrators/start_training.py --preset CartPole_DQN_distributed --image ${IMAGE} -ns 10.63.249.182 -np /
|
||||||
|
|
||||||
|
stop_kubernetes:
|
||||||
|
kubectl delete service --ignore-not-found redis-service
|
||||||
|
kubectl delete pv --ignore-not-found nfs-checkpoint-pv
|
||||||
|
kubectl delete pvc --ignore-not-found nfs-checkpoint-pvc
|
||||||
|
kubectl delete deployment --ignore-not-found redis-server
|
||||||
|
|
||||||
|
kubernetes: stop_kubernetes
|
||||||
|
python3 ${CONTEXT}/rl_coach/orchestrators/start_training.py --preset CartPole_DQN_distributed --image ${IMAGE} -ns 10.63.249.182 -np /
|
||||||
|
|
||||||
push: build
|
push: build
|
||||||
${DOCKER} tag ${IMAGE} ${REGISTRY}${IMAGE}
|
${DOCKER} tag ${IMAGE} ${REGISTRY}${IMAGE}
|
||||||
|
|||||||
Reference in New Issue
Block a user