@lunchbox/brain
Lunchbox Brain
Last updated 2 years ago by ujvzolee .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lunchbox/brain 
SYNC missed versions from official npm registry.

Setup

Prepare the Raspberry Pi

Enable SSH

For headless setup, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD card. When the Pi # boots, it looks for the ssh file. If it is found, SSH is enabled, and the file is deleted. The content of the file does not matter: it could contain text, or nothing at all.

Connect to the Internet / setup static IP

Install docker

curl -sSL get.docker.com | sh

sudo usermod -aG docker pi

sudo systemctl enable docker

sudo systemctl start docker

sudo pip install docker-compose

Create the udev rules

sudo nano /etc/udev/rules.d/99-usb.rules

KERNELS=="1-1.2", SUBSYSTEMS=="usb", SYMLINK+="1-1.2"
KERNELS=="1-1.2.1.1", SUBSYSTEMS=="usb", SYMLINK+="1-1.2.1.1"

Create the data & project folder

sudo mkdir /data/[lbox-computer-name]

sudo mkdir ~/lbox

Create the compose file

nano docker-compose.yml

version: "2.0"
services:
  lunchbox:
    image: lunchbox:[version]
    environment:
      - LBOX_COMPUTER_NAME=[lbox-computer-name]
      - LBOX_ORGANIZATION_NAME=[lbox-organization-name]
      - PLATFORMIO_BOARD_ID=[lbox-board-id]
      - TZ=Europe/Stockholm
    devices:
      - /dev/1-1.2:/dev/controller
    ports:
      - 2280:80
    volumes:
      - /data/[lbox-computer-name]:/data
    restart: always

Restart

sudo shutdown -r now

Spin up

docker-compose up

Current Tags

  • 1.0.5                                ...           latest (2 years ago)

21 Versions

  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0-beta.33                                ...           2 years ago
  • 1.0.0-beta.32                                ...           2 years ago
  • 1.0.0-beta.31                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-beta.29                                ...           3 years ago
  • 1.0.0-beta.28                                ...           3 years ago
  • 1.0.0-beta.27                                ...           3 years ago
  • 1.0.0-beta.26                                ...           3 years ago
  • 1.0.0-beta.25                                ...           3 years ago
  • 1.0.0-beta.24                                ...           3 years ago
  • 1.0.0-beta.23                                ...           3 years ago
  • 1.0.0-beta.22                                ...           3 years ago
  • 1.0.0-beta.21                                ...           3 years ago
  • 1.0.0-beta.20                                ...           3 years ago
  • 1.0.0-beta.19                                ...           3 years ago
  • 1.0.0-beta.18                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (26)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |