-
Notifications
You must be signed in to change notification settings - Fork 1
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 #5 from bitraf/build-rpi
Build for Raspberry Pi on Travis
- Loading branch information
Showing
4 changed files
with
50 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM resin/rpi-raspbian:jessie-20171101 | ||
|
||
RUN mkdir -p /var/app | ||
WORKDIR /var/app | ||
|
||
# Install Dlock13 sources | ||
COPY ./dlock13-msgflo /var/app/ | ||
|
||
# Install dependencies | ||
RUN apt-get update | ||
RUN apt-get install libmosquitto-dev libev-dev git cmake g++ build-essential | ||
|
||
# Run build | ||
RUN ./build.sh |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/bin/bash -xe | ||
|
||
mkdir -p build | ||
git submodule update --init --recursive | ||
|
||
if [[ $MsgFlo_DIR == "" ]] | ||
then | ||
|
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,8 @@ | ||
version: '3' | ||
services: | ||
dlock: | ||
image: bitraf/dlock13-rpi | ||
build: | ||
context: . | ||
dockerfile: Dockerfile-raspberrypi3 | ||
container_name: dlock |