1
1
Fork 0

initial commit

This commit is contained in:
david 2021-08-17 23:07:42 +02:00
commit fec95c3980
3 changed files with 35 additions and 0 deletions

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM archlinux:latest
LABEL Description="This image is based on Archlinux and is used to generate Wireguard keys" \
Author="david@socialnerds.org" \
Version="0.1" \
License="MIT"
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm --needed base-devel cargo && \
cargo install wireguard-vanity-address
COPY entrypoint.sh /root/
ENTRYPOINT ["/root/entrypoint.sh"]
CMD ["-h"]

16
README.md Normal file
View File

@ -0,0 +1,16 @@
# wg-vanity-address-docker
This image is based on Archlinux and is used to generate Wireguard keys.
## Usage example
```bash
git clone https://git.socialnerds.org/socialnerds/wg-vanity-address-docker.git
cd wg-vanity-address-docker
docker build . --tag socialnerds/wg-vanity-address:latest
docker run --rm -it socialnerds/wg-vanity-address:latest --in 6 dave
#or
docker run --rm -it socialnerds/wg-vanity-address:latest --in 6 dave
```

4
entrypoint.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
/root/.cargo/bin/wireguard-vanity-address $@