NEC WG1200HP を再起動するためだけのdocker image
2.7K
ルータの仕様上、再起動リクエスト後すぐに再起動が始まるため、
コネクションエラーがでて面倒なので、Guzzle Clientのexceptionをtry-catchで避けています。
$ [email protected]:bootjp/AutoRebootWG1200HP.git
$ cd AutoRebootWG1200HP
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install
or
$ composer install
$ vim setting.ini // edit config
$ php wrapper.php
go to -> hub.docker.com/r/bootjp/autorebootwg1200hp/
以下のような ini ファイルを -v でマウントするなどして使用してください。
;sample
[192.168.1.2]
User = 'admin'
Password = 'PassWord'
[192.168.1.15]
User = 'admin'
Password = 'PassWord'
$ docker run -v $(pwd)/setting.ini:/app/setting.ini bootjp/autorebootwg1200hp
Content type
Image
Digest
sha256:75895f742…
Size
145.8 MB
Last updated
over 8 years ago
docker pull bootjp/autorebootwg1200hp