File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ Clone elasticdl repo for model zoo and some scripts.
34
34
git clone https://github.com/sql-machine-learning/elasticdl.git
35
35
```
36
36
37
- ### Setup Kubernetes related environment
37
+ ### Start Kubernetes Cluster
38
+
39
+ We start minikube with a command-line option ` --mount-string ` ,
40
+ which mounts the host directory ` $DATA_PATH ` to ` /data ` path in all minikube containers.
38
41
39
42
``` bash
40
43
export DATA_PATH={a_folder_path_to_store_training_data}
@@ -44,8 +47,6 @@ kubectl apply -f elasticdl/manifests/elasticdl-rbac.yaml
44
47
eval $( minikube docker-env)
45
48
```
46
49
47
- Mount the host path $DATA_PATH to /data of minikube
48
-
49
50
### Build the Docker image for distributed training
50
51
51
52
``` bash
@@ -69,9 +70,12 @@ docker run --rm -it \
69
70
-v $HOME /.keras/datasets:/root/.keras/datasets \
70
71
-v $PWD :/work \
71
72
-w /work elasticdl/elasticdl:dev \
72
- bash -c " scripts/gen_dataset.sh $DATA_PATH "
73
+ bash -c " scripts/gen_dataset.sh data"
74
+ cp -r data/* $DATA_PATH
73
75
```
74
76
77
+ We generate datasets and copy them to ` $DATA_PATH ` .
78
+
75
79
### Summit a training job
76
80
77
81
We use the following command to submit a training job:
You can’t perform that action at this time.
0 commit comments