Skip to content

Commit

Permalink
documents and dockerfiles have bee organized under their own directories
Browse files Browse the repository at this point in the history
  • Loading branch information
adibrastegarnia committed May 30, 2019
1 parent 296ae54 commit e991962
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions tools/test/devicesim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ ENV SIM_MODE=1

RUN mkdir -p $ONOS_CONFIG_ROOT/tools/test/devicesim

COPY ./target_configs target_configs
COPY ./certs certs
COPY ./scripts scripts
COPY ./gnmi_target gnmi_target
COPY ./gnmi $GOPATH/src/github.com/onosproject/onos-config/tools/test/devicesim/gnmi
COPY target_configs target_configs
COPY certs certs
COPY scripts scripts
COPY gnmi_target gnmi_target
COPY gnmi $GOPATH/src/github.com/onosproject/onos-config/tools/test/devicesim/gnmi


RUN cd $GOPATH/src/github.com/onosproject/onos-config/tools/test/devicesim/gnmi && go install
Expand Down
7 changes: 4 additions & 3 deletions tools/test/devicesim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Docker compose manages the running of several docker images at once.

For example to run 3 **SIM_MODE=1** (gNMI only devices) and **localhost** mode, use:
```bash
cd docker_compose
docker-compose -f docker-compose-gnmi.yml up
```

Expand All @@ -51,6 +52,7 @@ If you are fortunate enough to be using Docker on Linux, then you can use the
above method __or__ using the command below to start in **SIM_MODE=1** and **network** mode:

```bash
cd docker_compose
docker-compose -f docker-compose-linux.yml up
```

Expand Down Expand Up @@ -82,7 +84,6 @@ docker run --env "HOSTNAME=localhost" --env "SIM_MODE=3" \
```
To stop it use "docker kill"


## Create the docker image
By default the docker compose command will pull down the latest docker
image from the Docker Hub. If you need to build it locally, run:
Expand All @@ -94,7 +95,7 @@ docker build -t onosproject/devicesim:stable -f Dockerfile .
You can access to the information about client tools for each SIM_MODE
including troubleshooting tips using the following links:

[gNMI Client_User Manual](gnmi_user_manual.md)
[gNMI Client_User Manual](docs/gnmi_user_manual.md)

[gNOI Client_User Manual](gnoi_user_manual.md)
[gNOI Client_User Manual](docs/gnoi_user_manual.md)

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e991962

Please sign in to comment.