Skip to content
Snippets Groups Projects
Commit 08a9d51a authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

add basic compose to makefile and docs

parent 68eb0809
No related branches found
No related tags found
1 merge request!848Update docs and first start of project
This commit is part of merge request !848. Comments created here will be created in the context of that merge request.
...@@ -85,6 +85,13 @@ dev-env-start: generate-gnmi-target-certs generate-gosdn-certs containerize-gosd ...@@ -85,6 +85,13 @@ dev-env-start: generate-gnmi-target-certs generate-gosdn-certs containerize-gosd
dev-env-stop: dev-env-stop:
./scripts/simple-dev-setup.sh --mode stop --topology dev_env_data/clab/basic_two_gnmi_targets.yaml ./scripts/simple-dev-setup.sh --mode stop --topology dev_env_data/clab/basic_two_gnmi_targets.yaml
basic-compose-up: generate-certs containerize-gosdn containerize-plugin-registry
docker-compose -f dev_env_data/docker-compose/basic_docker-compose.yml down
docker-compose -f dev_env_data/docker-compose/basic_docker-compose.yml up -d
basic-compose-down:
docker-compose -f dev_env_data/docker-compose/basic_docker-compose.yml down
generate-certs: generate-gnmi-target-certs generate-gosdn-certs generate-certs: generate-gnmi-target-certs generate-gosdn-certs
integration-tests: generate-certs containerize-gosdn containerize-plugin-registry integration-tests: generate-certs containerize-gosdn containerize-plugin-registry
......
...@@ -136,11 +136,32 @@ system. ...@@ -136,11 +136,32 @@ system.
With the help of [containerlab](https://containerlab.dev/) we provide simple test environments to play around with. With the help of [containerlab](https://containerlab.dev/) we provide simple test environments to play around with.
```sh
# start containerlab
make containerlab-slim-start
# stop the containerlab topology
make containerlab-slim-stop
```
If you don't want to install containerlab, you can also use a docker-compose config. For most tasks it works as well, but it is missing the static IP and link configurations.
```sh
# start the environment
make basic-compose-up
# stop the environment
make basic-compose-down
```
### Labs
The environment Lab 01 contains two [Arista The environment Lab 01 contains two [Arista
cEOS](https://www.arista.com/en/products/software-controlled-container-networking), cEOS](https://www.arista.com/en/products/software-controlled-container-networking),
a goSDN, a gNMI target, a plugin-registry, a MongoDB and a RabbitMQ. a goSDN, a gNMI target, a plugin-registry, a MongoDB and a RabbitMQ.
The environment Lab 00 contains two gNMI targets used as switches, s goSDN, two Linux servers, a plugin-registry, a MongoDB and a RabbitMQ. Lab 00 is lighter than Lab 01. The environment Lab 00 contains two gNMI targets used as switches, goSDN, two Linux servers, a plugin-registry, a MongoDB and a RabbitMQ. Lab 00 is lighter than Lab 01.
> If you're a member of the danet group you should have access to the > If you're a member of the danet group you should have access to the
> containers repo. Don't forget to `sudo docker login > containers repo. Don't forget to `sudo docker login
...@@ -153,14 +174,6 @@ The environment Lab 00 contains two gNMI targets used as switches, s goSDN, two ...@@ -153,14 +174,6 @@ The environment Lab 00 contains two gNMI targets used as switches, s goSDN, two
> cEOS image by yourself. Don't forget to change the image name (line `11` in > cEOS image by yourself. Don't forget to change the image name (line `11` in
> the `gosdn.clab.yml` file) to the local one you've downloaded. > the `gosdn.clab.yml` file) to the local one you've downloaded.
```sh
# starts the containerlab topology which contains two Arista cEOS, an cSBI orchestrator, a goSDN controller and gNMI target.
make containerlab-start
# stop the containerlab topology
make containerlab-stop
```
### Additional services ### Additional services
There are optional and mandatory services that can be used with the controller. They can be started via the provided `docker-compose.yml`: There are optional and mandatory services that can be used with the controller. They can be started via the provided `docker-compose.yml`:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment