Skip to content

OakLabsInc/component-reboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reboot OakOS application

Application for OakOS v5.0.X

Running locally

Running locally is easiest when you specify an OakOS Unit as a global in the package.json Change PLATFORM_HOST=192.168.0.66:443 to the IP of the unit running OakOS on your LAN or run

export PLATFORM_HOST=[OakOS IP]:443

Before you begin

Make sure that you are running the right version of Node locally. You will find the required version in the .nvmrc file If you are not running the same version (node -v) then you will need to run

nvm install $(cat .nvmrc)
npm run rebuild

Now you can run electron locally

npm run dev

Running local Docker container

Running docker container on Linux locally will still need to have the remote IP of the Unit running OakOS. To do this you can just run this first in a Linux environment

export PLATFORM_HOST=[OakOS IP]:443

or add the environmental variable to the Dockerfile

ENV NODE_ENV=production \
    PLATFORM_HOST=[OakOS IP]:443 \
    REBOOT_TIME="0 * * * * *" \
    TZ=America/Los_Angeles

see: https://github.com/node-schedule/node-schedule#readme for cron expression instructions

Now that you have the gRPC server set to an OakOS unit you can run

xhost +
docker-compose up --build

About

Oak component to reboot on a schedule

Resources

Stars

Watchers

Forks

Packages

No packages published