Commit graph

104 commits

Author SHA1 Message Date
Quentin McGaw
5752476184
VSCode Rust development container (#71) 2021-07-17 11:49:23 -07:00
Quentin McGaw
d18c045c98
Docker: use tini as init system (#72) 2021-07-16 15:14:02 +02:00
Quentin McGaw
2bc7ea9e06
Readme development section (#70) 2021-07-16 15:12:30 +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
45472a35b1
Readme simplifications and improvements (#65)
- Split setup section in three subsections:
     1. Pre built binaries, empty for now, with a subscribe link to #59 
     2. Docker with simplified step-by-step instructions
         - Add Docker tagged images information
     3. Rust with simplified step-by-step instructions
- Fix `<switch>` not showing in tables
- Add syntax highlighting to code blocks
- Highlight Docker image cross cpu compatibility, as many users crave for this for their ARM devices
- Precise docker build only work on amd64/686 CPUs
- Clear up rustc version required to build
2021-07-08 10:57:40 -07:00
Francesco Cogno
9d37840b83
Implemented support for multiple peer files (#64) 2021-07-08 11:06:41 +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
Francesco Cogno
a07a3d0170
Support for friendly_json comment (#55)
* upgrading deps

* tst

* fixed tests

* Json exposed as strings

* fixed double quote

* bumped version

* corrected semantic version bump

* updated README
2021-03-25 14:17:41 +01:00
Francesco Cogno
33c5372b41
locked Cargo.lock 2021-01-10 11:11:21 +01:00
Francesco Cogno
32990c69ab
Update README.md 2021-01-10 11:09:28 +01:00
Francesco Cogno
1494e30b3b
Merge pull request #53 from MindFlavor/issue_52/friendly_names_comment
Bugfix: comments no longer remove friendly names
2021-01-10 11:07:16 +01:00
Francesco Cogno
4584bd6e50
Bugfix: comments no longer remove friendly names 2021-01-10 11:03:48 +01: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
3c27991831
Readme docker (#46)
* Add Docker badges
* Use pre-built docker image for running it
* Docker image build instructions
2020-10-13 08:06:12 -04:00
Quentin McGaw
eea9b11c85
Remove linux/386 platform from buildx (#47) 2020-10-12 17:33:01 -04:00
Francesco Cogno
512ac9e891
Added support for sudo 2020-10-11 20:44:11 +02:00
Francesco Cogno
38b55fca32
Merge pull request #45 from MindFlavor/issue/27/sudo_wg_optional
Added optional sudo to wg command
2020-10-11 20:38:56 +02:00
Francesco Cogno
73e0b12c22
added missing startup flag 2020-10-11 16:48:08 +02:00
Francesco Cogno
fa739c423c
Added optional sudo 2020-10-11 16:40:10 +02:00
Francesco Cogno
e77a3e26ee
Support for # key values in comment (friendly_name at the moment) (#44)
* Draft support for friendly_name

* updated version and readme
2020-10-11 16:21:51 +02:00
Francesco Cogno
d65b8f5862
Update README.md 2020-10-05 09:07:30 +02:00
Francesco Cogno
c514ec7f05
Merge pull request #42 from qdm12/ci-docker
Fix latest buildx workflow
2020-09-23 18:01:29 +02:00
Quentin McGaw
50e9bdf596 Fix latest buildx workflow 2020-09-23 07:29:33 -04:00
Francesco Cogno
988f536a35
Merge pull request #41 from qdm12/ci-docker
Docker CI
2020-09-18 14:59:53 +02:00
Quentin McGaw
f055d0a656 Docker Hub description sync 2020-08-31 20:53:11 -04:00
Quentin McGaw
610fcd1e0d Buildx tagged Docker build on releases/tags 2020-08-31 20:53:00 -04:00
Quentin McGaw
4a13a26869 Buildx latest on master branch changes 2020-08-31 20:52:50 -04:00
Quentin McGaw
e9e0690a88 Buildx tagged Docker build on branches 2020-08-31 20:52:37 -04:00
Quentin McGaw
970783e903 Simple Docker build on master pull request 2020-08-31 20:52:12 -04:00
Francesco Cogno
392c80eb1b
Merge pull request #39 from qdm12/master
Dockerize the app!
2020-08-17 13:24:52 +02:00
Quentin McGaw
01b7e16de0 Readme instructions to use with Docker 2020-08-09 18:06:48 -04:00
Quentin McGaw
98c251bba8 Run as root to access wg 2020-08-09 18:06:23 -04:00
Quentin McGaw
5cd14e0aa7 Add Dockerfile and itself to .dockerignore 2020-08-09 18:06:11 -04:00
Quentin McGaw
0f3dcfc57a Dockerfile 2020-08-09 17:49:13 -04:00
Francesco Cogno
5e9848dbba
Switch from Travis to GitHub actions (#33)
* github action badge added

* Update README.md

* removed travis file
2020-05-10 16:00:42 +02:00
Francesco Cogno
4e3083bf85
Merge pull request #32 from MindFlavor/issue/29/parsing_case_insensitive
Parse case insensitive
2020-05-10 15:47:46 +02:00
Francesco Cogno
ec967e7f9d Parse case insensitive 2020-05-10 15:40:45 +02:00
Francesco Cogno
f04208a810
Added github action 2020-05-09 16:54:48 +02:00
Francesco Cogno
52740036bf
Multiple interfaces from command line support (#31) 2020-05-09 16:48:52 +02:00
Francesco Cogno
2013f8b5af
Split interface name from peer configuration file (#26)
Split interface name from peer configuration file
2020-04-07 10:20:19 +02:00
Francesco Cogno
f2a11f0c3c updated deps 2020-03-24 11:58:33 +01:00
Francesco Cogno
ceeea75b3c
Support for stderr output in TRACE log level (#25)
* exported stderr

* version bump
2020-03-24 11:57:54 +01:00
Francesco Cogno
8b3b015492 version bump 2020-03-24 11:44:10 +01:00
Francesco Cogno
fd13be8806
Merge pull request #24 from MindFlavor/issue/23/dev
support for ipv6 address in command line
2020-03-24 11:42:33 +01:00
Francesco Cogno
ff5806571b support for ipv6 addr in command line 2020-03-24 09:36:13 +01:00
Francesco Cogno
8f0f5112ec
Merge pull request #21 from eth3rgeist/master
wrong param for interface
2020-01-10 20:59:11 +01:00
eth3rgeist
a92f49a150
wrong param for interface
Its '-l' instead of '-p'
2019-12-26 15:58:57 +01:00
Francesco Cogno
2293e4d878 version 3.2.2 2019-12-01 19:48:29 +01:00
Francesco Cogno
d398ccdb70
Merge pull request #20 from MindFlavor/std_future/pr
Migrated to std::future
2019-12-01 19:47:47 +01:00