Skip to content

Commit

Permalink
Merge branch 'opiproject:main' into main
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Morgante Medina <alknopfler@users.noreply.github.com>
  • Loading branch information
alknopfler committed Oct 10, 2022
2 parents 4c687d8 + c3be628 commit cc07958
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,26 @@ See [CONTRIBUTING](https://github.com/opiproject/opi/blob/main/CONTRIBUTING.md)

![xPU sZTP provisioning block](./doc/sZTP-provisioning-blocks.png)

## Run sZTP
## Run everything

```text
docker-compose down --volumes
docker-compose up --build
```

## Test everything

```text
./tests.sh
```

## Run sZTP (Bootstrap) Server only

```text
docker-compose up --build bootstrap
```

## Test sZTP
## Test sZTP (Bootstrap) Server only

Fetching Host-meta

Expand Down Expand Up @@ -262,13 +275,13 @@ $ jq -r .\"ietf-sztp-conveyed-info:onboarding-information\".\"boot-image\".\"ima
"hash-value": "7b:ca:e6:ac:23:06:d8:79:06:8c:ac:03:80:e2:16:44:7e:40:6a:65:fa:d4:69:61:6e:05:ce:f5:87:dc:2b:97"
```

## Run DHCP
## Run DHCP server only

```text
docker-compose up --build dhcp
```

## Test DHCP with NMAP
## Test DHCP server with NMAP

```text
$ docker-compose run --rm -T nmap
Expand All @@ -289,7 +302,7 @@ WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.25 seconds
```

## Test DHCP with client
## Test DHCP server with DHCP client

```text
$ docker-compose run --rm -T client
Expand Down Expand Up @@ -332,13 +345,13 @@ lease {
}
```

## Run HTTP
## Run HTTP server only

```text
docker-compose up --build web
```

## Test HTTP from agent
## Test HTTP server from agent

```text
docker-compose run --rm -T agent curl --fail http://web:8082/var/lib/
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ services:
- client:ro
networks:
- opi
command: ['/opi-sztp-agent', 'status']
command: ['/opi-sztp-agent', 'daemon']

volumes:
dhcp-leases-folder:
Expand Down

0 comments on commit cc07958

Please sign in to comment.