Commit graph

125 commits

Author SHA1 Message Date
d5ccea6fc3 set version persistent 2023-10-09 20:06:18 +02:00
Francesco Cogno
2d82a9c06c
Issue/105 (#106)
* fixed tests

* updated lock
2022-11-21 10:28:17 +01:00
Francesco Cogno
56290d6801
Fix semver error from prometheus_exporter_base (#104)
* Fixed semver error

* updated README
2022-11-21 09:46:12 +01:00
Francesco Cogno
a21dc2852e
Rust to latest in Dockerfile 2022-11-20 16:23:15 +01:00
Francesco Cogno
9f0eb7f050
Issue/100 (#101)
* Updating clap

* completed clap ugprade

* Upgraded other deps

* removed unused use

* fixed tests

* exported delay

* fixed multiple params

* added actual calculation
2022-11-20 16:13:06 +01:00
Tim Meusel
8f586ed65b
Document systemd unit for normal users (#97) 2022-11-20 09:24:02 +01:00
Marcel
f0c7a8fbfc
Added GitHub Actions to automatic publish binaries for various architectures (#95)
* Create ci.yaml

* Update ci.yaml

* Update ci.yaml

* Update ci.yaml

* Update config.toml

* Update ci.yaml

* Update ci.yaml

* Update ci.yaml

* Update ci.yaml

* Delete release-binaries.yml

* Update ci.yaml

* Update ci.yaml
2022-05-09 12:05:46 +02:00
Francesco Cogno
f8222bc5ab
version bump 2022-03-29 10:26:26 +02:00
Francesco Cogno
eb7455fa85
Clarify option behavior (#93)
* version bump, README fix

* Fixed "important" sign
2022-03-29 10:23:40 +02:00
mbonino
86cc251954
Add systemd-networkd peer syntax (#92)
Systemd-networkd config file uses ``[WireGuardPeer]`` rather than ``[Peer]``.
2022-03-29 09:53:53 +02:00
Francesco Cogno
9206a4f595
Updated README version 2022-03-11 17:51:49 +01:00
Francesco Cogno
61de41169b
Dependency refresh (#90) 2022-03-11 17:48:35 +01:00
Michael Weinrich
d987baf1f1
feat(ci): add binary build and release workflow (#77)
This adds a workflow (or actually several parallel ones) that gets triggered for a new tag. It builds binaries for several different platforms, creates a release and attaches them as downloads. I wasn't able to make this work for arm64 (because of ring) therefore I commented that part for now.

Fix #59
2022-03-09 06:23:02 -05:00
Francesco Cogno
23298a72c4
Fixed version in README 2021-11-03 11:41:59 +01:00
Francesco Cogno
72d3f7393e
Escape friendly name double quote (#84)
* escape friendly name

* Updated README
2021-11-03 11:36:05 +01:00
Francesco Cogno
5b709b19f1
Ability to use env vars (#83)
* clippy

* exported variables

* docs

* updated deps

* typo

* version in docs

* better docs
2021-11-03 11:14:14 +01:00
Quentin McGaw
6222d71685
Fix Docker build badge in readme (#75) 2021-11-03 11:00:53 +01:00
Quentin McGaw
6678669dfb
Maintenance: remove microbadger CI hook (#76) 2021-11-03 11:00:31 +01:00
Quentin McGaw
d8237c8b7c
Docker: upgrade Alpine to 3.14 (#67) 2021-10-14 09:13:00 -07:00
Francesco Cogno
62fe64e1c0 swapped clippy dep version from * to 0.0.3 2021-08-06 09:50:53 +02:00
Quentin McGaw
638b9d1c33
CI fixes: dockerhub description and linting (#68)
- Github workflow: upgrade `peter-evans/dockerhub-description` to `v2.4.3`
- Dockerfile: fix: lint stage not running, changed from `ENTRYPOINT` to `RUN`
- Dockerfile: fix: install clippy for build platform
2021-07-17 12:40:58 -07:00
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