This repository was archived by the owner on Jan 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #338 from davoclavo/fix_docker
Fix docker build
- Loading branch information
Showing
9 changed files
with
75 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Start Docker containers with configuration for Personal Food Computer V2. | ||
# See http://wiki.openag.media.mit.edu/food_computer_2 | ||
version: '2' | ||
services: | ||
brain: | ||
# Build from current folder | ||
build: . | ||
|
||
# Build from image | ||
# image: openag/rpi_brain | ||
|
||
# Build from git source with branch | ||
# build: https://github.com/OpenAgInitiative/openag_brain.git#develop | ||
container_name: brain | ||
expose: | ||
- 5000 | ||
devices: | ||
- "/dev/ttyACM0:/dev/ttyACM0" | ||
- "/dev/video0:/dev/video0" | ||
- "/dev/ttyACM0:/dev/serial/by-id/arduino" # https://github.com/openaginitiative/openag_brain/blob/develop/nodes/arduino_handler.py#L322 | ||
command: /home/pi/catkin_ws/devel/env.sh rosrun openag_brain main personal_food_computer_v2.launch -D http://db:5984 -A http://brain:5000 --screen | ||
depends_on: | ||
- db | ||
restart: unless-stopped | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "50m" | ||
max-file: "5" | ||
db: | ||
image: dogi/rpi-couchdb | ||
container_name: db | ||
expose: | ||
- 5984 | ||
ports: | ||
- 5984:5984 | ||
restart: unless-stopped | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "50m" | ||
max-file: "5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
# This script sets up a developer workspace. It is for a global stand-alone | ||
# system - not for a docker setup. | ||
set -e | ||
|
||
~/catkin_ws/src/openag_brain/scripts/install_db || exit 1 | ||
~/catkin_ws/src/openag_brain/scripts/install_dev || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sudo apt-get install -y -q couchdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters