builder: Change base image to v0.16, add clever-show service file

This commit is contained in:
Arthur
2019-05-16 21:48:34 +03:00
parent 8005dd9f90
commit 2cb04808c0
3 changed files with 22 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Clever Show Client Service
Requires=clever.service
After=clever.service
[Service]
WorkingDirectory=/home/pi/CleverSwarm/Drone
EnvironmentFile=/lib/systemd/system/roscore.env
ExecStart=/usr/bin/python /home/pi/CleverSwarm/Drone/client.py
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target

View File

@@ -2,7 +2,7 @@
set -e # Exit immidiately on non-zero result
SOURCE_IMAGE="https://github.com/CopterExpress/clever/releases/download/v0.16-alpha.3/clever_v0.16-alpha.3.img.zip"
SOURCE_IMAGE="https://github.com/CopterExpress/clever/releases/download/v0.16/clever_v0.16.img.zip"
export DEBIAN_FRONTEND=${DEBIAN_FRONTEND:='noninteractive'}
export LANG=${LANG:='C.UTF-8'}
@@ -96,6 +96,12 @@ losetup -d ${DEV_IMAGE}
# Install software
img-chroot ${IMAGE_PATH} exec ${SCRIPTS_DIR}'/image-software.sh'
# Configure image
img-chroot ${IMAGE_PATH} exec ${SCRIPTS_DIR}'/image-configure.sh'
# Copy service file for clever show client
img-chroot ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/clever-show.service' '/lib/systemd/system/'
# Shrink image
img-resize ${IMAGE_PATH}

View File

@@ -3,10 +3,6 @@
#
# Script for install software to the image.
#
# Copyright (C) 2018 Copter Express Technologies
#
# Author: Artem Smirnov <urpylka@gmail.com>
#
set -e # Exit immidiately on non-zero result
@@ -62,8 +58,8 @@ apt-get update -qq
echo_stamp "Software installing"
apt-get install -y \
samba \
winbind \
chrony \
ros-kinetic-vl53l1x \
&& echo_stamp "Everything was installed!" "SUCCESS" \
|| (echo_stamp "Some packages wasn't installed!" "ERROR"; exit 1)