Wake-on-lan webapp - šµ Wake me up, when september ends šµ
To start, run the self-contained binary with a CSV list of host,mac
and visit localhost:3493.
It should render a table of devices using a default template.
october -a sample.csv
You can override the internal template with the --template
flag, giving it a handlebar template file.
For faster development, you can use the --autoreload
flag to preview changes locally.
The service will host the current working directory as HTTP assets if you want to provide images or CSS styling.
This project aims to run on Docker with minimal size, and also targets multiplaform builds, including Windows, Linux and Raspberry Pi (Zero to 4).
You can either compile it with cargo build --release
or use the provided bltavares/october
Docker image.
To run properly, it requires to be on the host
network without any isolation, otherwhise your router will not advertise the 'magic packet' to your devices.
Platform | Docker | Size |
---|---|---|
armv7-musleabihf | Yes | 2.03MB |
arm-musleabi | Yes | 2.08MB |
aarch64-musl | Yes | 1.99MB |
x86_64-musl | Yes | 2.49MB |
Windows | No | 2.29MB |
Mac | No | N/A |
Example command for Docker
docker run -d \
--restart=unless-stopped \
--network=host \
-p 3493:3493 \
-v sample.csv:/opt/sample.csv \
--name october \
bltavares/october -a /opt/sample.csv
To build and publish multi-architecture docker images:
make all
make publish
make manifest
sudo netcat -ulp 9
Then you should see something from netcat.