# build by yourself
build base image
```
docker build -f Dockerfile_base -t webfunctiontestbase  --no-cache .
```

build image
```
docker build -t webfunctiontest --no-cache .
```

# use the image you build
go to an empty folder

init
```
docker run -it --rm -v $(pwd):/usr/src webfunctiontest wft init
```

generate example
```
docker run -it --rm -v $(pwd):/usr/src webfunctiontest wft example
cat ./executeCaseList.json
```

find id

run test
```
docker run -it --rm -v $(pwd):/usr/src webfunctiontest wft run -p <id>
```

got result from ./output

launch ui
```
docker run -it -d --rm -v $(pwd):/usr/src -p 3000:3000 webfunctiontest wft ui
```

# use pre-build image

```
docker run -it --rm -v $(pwd):/usr/src k19810703/webfunctiontest bash /usr/local/bin/init.sh
```

find id rom console

```
docker run -it --rm -v $(pwd):/usr/src k19810703/webfunctiontest wft run -p <id>
```

```
docker run -it --rm -v $(pwd):/usr/src -p 3000:3000 k19810703/webfunctiontest wft ui
```