feat(scripts): view logs of PXE containers selectively

This commit is contained in:
Khue Doan 2022-02-21 01:46:30 +07:00
parent 4497676407
commit 441b2e6ea2
2 changed files with 12 additions and 1 deletions

View File

@ -8,6 +8,13 @@ To view PXE server (includes DHCP, TFTP and HTTP server) logs:
./scripts/pxe-logs
```
You can view the logs of one or more containers selectively, for example:
```sh
./scripts/pxe-logs dhcp
./scripts/pxe-logs tftp http
```
## Nodes not booting from the network
- Plug a monitor and a keyboard to one of the bare metal node if possible to make the debugging process easier

View File

@ -1,3 +1,7 @@
#!/bin/sh
docker compose --project-directory ./metal/roles/pxe_server/files/ logs --follow
docker compose \
--project-directory ./metal/roles/pxe_server/files/ \
logs \
--follow \
${@}