GithubHelp home page GithubHelp logo

brewpi-docker's Introduction

brewpi-docker: docker images to run a BrewPi server

This docker container runs the web interface and python scripts for BrewPi.

We have an image based on Ubuntu 16.04 and an image based on raspbian.

To deploy a brewpi container, take these steps:

For a raspberry pi (running hypriot)

Get the latest raspbian based image image

docker pull brewpi/brewpi-raspbian

Deploy a new container. Modify the command below to to your liking, especially the port and the data location on the host (default is ~/brewpi-data).

docker run -d --name brewpi -p 80:80 -v ~/brewpi-data:/data -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime --restart always brewpi/brewpi-raspbian

For x64/x86 based systems

Get the latest ubuntu based image image

docker pull brewpi/brewpi-ubuntu

Deploy a new container. Modify the command below to to your liking, especially the port and the data location on the host (default is ~/brewpi-data).

docker run -d --name brewpi -p 80:80 -v ~/brewpi-data:/data -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime --restart always brewpi/brewpi-ubuntu

Let's break that down to explain each part.

Parameter Explanation
-d After starting the container, run it as daemon in the background.
--name brewpi Name the new container brewpi, modify this you are running multiple brewpi containers.
-p 80:80 Map port 80 of the container to port 80 of the host.
If port 80 is in use, use a differnt port, for example 8000:80.
-v ~/brewpi-data:/data Store data and settings in ~/brewpi-data on the host.
-v /etc/timezone:/etc/timezone
-v /etc/localtime:/etc/localtime
Use timezone from the host.
--restart always Start on boot and always restart the container when it stops.
brewpi/brewpi-raspbian The image that is used. Usebrewpi/brewpi-raspbian for the raspberry pi, brewpi/brewpi-ubuntu for x64/x86 systems.

Connecting the BrewPi Spark via USB

If you want to connect to the BrewPi Spark over USB, you need to pass an extra argument to the container to forward the usb device.

Parameter Explanation
--device=/dev/ttyACM0:/dev/ttyACM0 Make the serial port device /dev/ttyACM0 available in the container

brewpi-docker's People

Contributors

elcojacobs avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.