Sign inSign up

mpvd/wol

By mpvd

•Updated over 6 years ago

Wake-on-LAN-Tool for installation on raspbian pi

Image
0

946

mpvd/wol repository overview

⁠WAKE ON LAN (WOL)

⁠Usage

Place the MAC of the computer you would like to create it's own Wake-Up-Container. You can wake up more than one computer, just by adding up the MAC-addresses as in the example below

sudo docker run -d \
	--name WakeOnLan \
	--net=host \
	-e MAC='11:11:11:11:11:11:11 22:22:22:22:22:22:22' \
mpvd/wol:latest
sudo docker logs -f WakeOnLan

or if you already have run it once:

sudo docker start WakeOnLan

⁠Based on

  • alpine:latest
  • Python 3
  • awake [options] MAC1 [MAC2 MAC3 MAC...]

⁠Build your own

⁠build.sh
sudo docker build -f dockerfile -t mpvd/wol:latest .
⁠dockerfile
FROM alpine:latest

MAINTAINER MPvD

# install awake (WOL) package
# delete not needed things and reduce size
RUN apk add --no-cache awake \
&& apk del --no-cache python3-dev \
&& apk del --no-cache build-base \
&& apk del --no-cache zlib-dev \
&& find /usr/lib -name \*.pyc -exec rm -f {} \; \
&& find /usr/lib -type f -name \*.exe -exec rm -f {} \;  \
&& rm -f /usr/lib/libsqlite* \
&& rm -f /usr/lib/libncursesw* \
&& rm -f /usr/lib/libturbojpeg* \
&& rm -f /usr/lib/libreadline* \
&& rm -f /usr/lib/libjpeg* \
&& rm -f /usr/lib/libtls* \
&& rm -f /lib/libcrypto* \
&& rm -f /lib/libssl* \
&& rm -rf /usr/lib/python3.8/email/* \
&& rm -rf /var/lib/apt/lists/* 

# start awake command
CMD awake ${OPTIONS} ${MAC}

Tag summary

Content type

Image

Digest

Size

9.5 MB

Last updated

over 6 years ago

docker pull mpvd/wol