Skip to content

Commit 19ce93e

Browse files
committed
Install infragram
1 parent da170b3 commit 19ce93e

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

builder/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ ls -alh /image_with_kernel_*.tar.gz
8484

8585
# download the ready-made raw image for the RPi
8686
if [ ! -f "${BUILD_RESULT_PATH}/${RAW_IMAGE}.zip" ]; then
87-
wget -q -O "${BUILD_RESULT_PATH}/${RAW_IMAGE}.zip" "https://github.com/hypriot/image-builder-raw/releases/download/${RAW_IMAGE_VERSION}/${RAW_IMAGE}.zip"
87+
wget -q -O "${BUILD_RESULT_PATH}/${RAW_IMAGE}.zip" "https://jenkins.laboratoriopublico.org/job/image-builder-raw/ws/${RAW_IMAGE}.zip"
8888
fi
8989

9090
# verify checksum of the ready-made raw image

builder/chroot-script.sh

+15
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,21 @@ lighttpd-enable-mod fastcgi-php
211211
systemctl disable dhcpcd
212212
systemctl disable hciuart
213213

214+
echo "Installing infragram"
215+
216+
# install npm/node:
217+
curl -o node-v9.7.1-linux-armv6l.tar.gz https://nodejs.org/dist/v9.7.1/node-v9.7.1-linux-armv6l.tar.gz
218+
tar -xzf node-v9.7.1-linux-armv6l.tar.gz
219+
sudo cp -r node-v9.7.1-linux-armv6l/* /usr/local/
220+
sudo apt-get install git
221+
222+
# install infragram in the web public folder:
223+
cd /var/www/
224+
git clone https://github.com/publiclab/infragram.git
225+
cd infragram
226+
npm install
227+
cd /
228+
214229
echo "Installing rpi-serial-console script"
215230
wget -q https://raw.githubusercontent.com/lurch/rpi-serial-console/master/rpi-serial-console -O usr/local/bin/rpi-serial-console
216231
chmod +x usr/local/bin/rpi-serial-console

builder/files/var/www/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ <h2>Public Lab Pi Camera Kit</h2>
2525
<p>If you're seeing this in a pop-up, close it and open <a href="http://pi.local">http://pi.local</a> in a browser.</p>
2626

2727
<br />
28+
29+
<p><a href="http://pi.local/infragram/pi/">Access Infragram software</a></p>
30+
<p><a href="http://pi.local/cam/">Access the camera</a></p>
2831

2932
</body>
3033
</html>

versions.config

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ ROOTFS_TAR_CHECKSUM="d1e7e6d48a25b4a206c5df99ecb8815388ec6945e4f97e78413d5a80778
44

55
# name of the ready made raw image for RPi
66
RAW_IMAGE="rpi-raw.img"
7-
RAW_IMAGE_VERSION="v0.2.2"
8-
RAW_IMAGE_CHECKSUM="2fbeb13b7b0f2308dbd0d82780b54c33003ad43d145ff08498b25fb8bbe1c2c6"
7+
RAW_IMAGE_VERSION="master"
8+
RAW_IMAGE_CHECKSUM="e32c0b9f3cdb9c60bad97a724103fc1283cdc135848e6142d588cd96fac1d6a8"
99

1010
# specific versions of kernel/firmware and docker tools
1111
export KERNEL_BUILD="20180422-141901"

0 commit comments

Comments
 (0)