Add debug build into docker containers.
This commit is contained in:
parent
d7a3910779
commit
a62b3c37af
3 changed files with 16 additions and 0 deletions
15
dev/README.md
Normal file
15
dev/README.md
Normal 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.
|
||||
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue