Sign inSign up

bootjp/autorebootwg1200hp

By bootjp

•Updated over 8 years ago

NEC WG1200HP を再起動するためだけのdocker image

Image
0

2.7K

bootjp/autorebootwg1200hp repository overview

⁠AutoRebootWG1200HP

Build Status

⁠NEC WG1200HP の再起動ツール / docker images です

⁠How to use
⁠注意点

ルータの仕様上、再起動リクエスト後すぐに再起動が始まるため、
コネクションエラーがでて面倒なので、Guzzle Clientのexceptionをtry-catchで避けています。

⁠Use Source codes
$ [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  

⁠Use Docker images

go to -> hub.docker.com/r/bootjp/autorebootwg1200hp/⁠

以下のような ini ファイルを -v でマウントするなどして使用してください。

⁠setup
;sample
[192.168.1.2]
User = 'admin'
Password = 'PassWord'
[192.168.1.15]
User = 'admin'
Password = 'PassWord'
⁠execure
$ docker run -v $(pwd)/setting.ini:/app/setting.ini bootjp/autorebootwg1200hp

Tag summary

Content type

Image

Digest

sha256:75895f742…

Size

145.8 MB

Last updated

over 8 years ago

docker pull bootjp/autorebootwg1200hp