Add debug build into docker containers.

This commit is contained in:
redxef 2024-01-17 22:14:52 +01:00
parent d7a3910779
commit a62b3c37af
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921
3 changed files with 16 additions and 0 deletions

15
dev/README.md Normal file
View file

@ -0,0 +1,15 @@
# Start developing
## One time setup
**The binary has to be compiled with the musl target:**
```
$ rustup target add x86_64-unknown-linux-musl
$ cargo build --target=x86_64-unknown-linux-musl
```
1. Run `ansible-playbook setup.yaml` to generate all required
development files.
2. Run `docker compose up -d` to start 4 development servers which are
connected via wireguard.

View file

@ -8,6 +8,7 @@ services:
context: ./server/
volumes:
- ./config/{{ item.item }}-wg0.conf:/etc/wireguard/wg0.conf
- ../target/x86_64-unknown-linux-musl/debug/wgvirtipd:/usr/local/bin/wgvirtipd
networks:
- default
expose: