Skip to content

Commit 8f0eb78

Browse files
QiJunewangkuiyi
andauthored
a small fix of minikube tutorial (#2120)
* fix minikube tutorial * Update elasticdl_local.md * fix format Co-authored-by: Yi Wang <[email protected]>
1 parent 97eeedc commit 8f0eb78

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/tutorials/elasticdl_local.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ Clone elasticdl repo for model zoo and some scripts.
3434
git clone https://github.com/sql-machine-learning/elasticdl.git
3535
```
3636

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.
3841

3942
```bash
4043
export DATA_PATH={a_folder_path_to_store_training_data}
@@ -44,8 +47,6 @@ kubectl apply -f elasticdl/manifests/elasticdl-rbac.yaml
4447
eval $(minikube docker-env)
4548
```
4649

47-
Mount the host path $DATA_PATH to /data of minikube
48-
4950
### Build the Docker image for distributed training
5051

5152
```bash
@@ -69,9 +70,12 @@ docker run --rm -it \
6970
-v $HOME/.keras/datasets:/root/.keras/datasets \
7071
-v $PWD:/work \
7172
-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
7375
```
7476

77+
We generate datasets and copy them to `$DATA_PATH`.
78+
7579
### Summit a training job
7680

7781
We use the following command to submit a training job:

0 commit comments

Comments
 (0)