Commit graph

7 commits

Author SHA1 Message Date
Quentin McGaw
d18c045c98
Docker: use tini as init system (#72) 2021-07-16 15:14:02 +02:00
Quentin McGaw
8f44776745
Linting with Clippy (#69)
* Dockerfile: add test stage with cargo test entrypoint

* Workflows: merge all in docker.yml
- Run cargo test in docker.yml workflow
- Manage PRs, releases, branches and latest altogether with variables

* Workflows: update dockerhub description

* Add clippy linting
2021-07-16 15:11:51 +02:00
Quentin McGaw
3a74f8b5b0
Multi arch Dockerfile and CI (#63)
* Modify Dockerfile
- Use rustup from Docker image
- Give up on cross compilation (ring issue)
- Remove useless duplicate cargo install step
- No need to specify target as it is built statically for the docker platform targeted
- Shorten binary path output for shorter COPY

* Github Actions to build for all ARM as well

* Remove unneded musl-dev

* Adapt build for all platforms
- Use Debian based Rust for compilation
- Cross compile on build platform
- Compile static binaries using musl
- Set variables correctly for all Docker supported platforms
- Note: ppc64le, s390x and riscv64 do not support the Rust standard lib
- Persist target platform variables through files
- Define linkers in .cargo/config
- Cache dependencies properly for target platform
- Scratch stage to test the binary for target platform

* Add 386 arch to CI

* Use buildkit for docker build

* Only build for amd64 on branches

* Fix dependencies caching

* Split dependencies fetching and compilation

* Documentation

* Build for all architectures on branch

* Add STATIC build argument

* Documentation
2021-07-08 09:17:51 +02:00
Maxim Kuleshov
abd25e81db
Fix incorrect escape in sudoers file (#51) 2021-01-02 15:59:08 -05:00
Quentin McGaw
98d6a4df6d
Docker non root running user using sudoers and sudo (#49)
Docker container runs with a non root user which has sudo access to run `wg` only. Fixes #27
2020-10-13 08:07:40 -04:00
Quentin McGaw
98c251bba8 Run as root to access wg 2020-08-09 18:06:23 -04:00
Quentin McGaw
0f3dcfc57a Dockerfile 2020-08-09 17:49:13 -04:00