mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 15:13:26 +00:00
builder: Change base image to v0.16, add clever-show service file
This commit is contained in:
14
builder/assets/clever-show.service
Normal file
14
builder/assets/clever-show.service
Normal 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
|
||||
@@ -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}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user