create image to build psensor
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 19 Dec 2016 23:41:09 +0000 (23:41 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 19 Dec 2016 23:41:09 +0000 (23:41 +0000)
docker/docker_build.sh [new file with mode: 0755]
docker/dockerfile [new file with mode: 0644]
docker/psensor_build.sh [new file with mode: 0755]

diff --git a/docker/docker_build.sh b/docker/docker_build.sh
new file mode 100755 (executable)
index 0000000..ba6b2f3
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+docker build -f dockerfile . -t psensor-build-armhf
diff --git a/docker/dockerfile b/docker/dockerfile
new file mode 100644 (file)
index 0000000..d6167cf
--- /dev/null
@@ -0,0 +1,22 @@
+FROM resin/rpi-raspbian
+
+RUN apt-get update
+RUN apt-get install git
+RUN apt-get install make
+RUN apt-get install gcc
+RUN apt-get install libc6-dev
+RUN apt-get install pkg-config
+RUN apt-get install libgtk-3-dev
+RUN apt-get install automake
+
+RUN apt-get install autopoint
+RUN apt-get install intltool
+RUN apt-get install intltool-debian
+
+RUN apt-get install help2man
+
+RUN cd /root && git clone https://git.wpitchoune.net/psensor.git -b master
+
+COPY psensor_build.sh /root
+
+CMD /root/psensor_build.sh
diff --git a/docker/psensor_build.sh b/docker/psensor_build.sh
new file mode 100755 (executable)
index 0000000..2851d43
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+cd /root/psensor
+
+git pull --all
+
+autoreconf -i 
+./configure
+make clean all