initial commit
This commit is contained in:
commit
fec95c3980
|
@ -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"]
|
|
@ -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
|
||||||
|
```
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
/root/.cargo/bin/wireguard-vanity-address $@
|
||||||
|
|
Loading…
Reference in New Issue