Adding ssocr to docker to support Seven Segments Display (#8028)
* Adding ssocr to docker to support Seven Segments Display * Adding cleanup
This commit is contained in:
parent
92a6f21cc2
commit
a3a702b269
4 changed files with 37 additions and 1 deletions
|
@ -8,6 +8,7 @@ MAINTAINER Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>
|
|||
#ENV INSTALL_LIBCEC no
|
||||
#ENV INSTALL_PHANTOMJS no
|
||||
#ENV INSTALL_COAP_CLIENT no
|
||||
#ENV INSTALL_SSOCR no
|
||||
|
||||
VOLUME /config
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ MAINTAINER Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>
|
|||
#ENV INSTALL_LIBCEC no
|
||||
#ENV INSTALL_PHANTOMJS no
|
||||
#ENV INSTALL_COAP_CLIENT no
|
||||
#ENV INSTALL_SSOCR no
|
||||
|
||||
VOLUME /config
|
||||
|
||||
|
|
29
virtualization/Docker/scripts/ssocr
Executable file
29
virtualization/Docker/scripts/ssocr
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
# Sets up ssocr to support Seven Segments Display.
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
PACKAGES=(
|
||||
libimlib2 libimlib2-dev
|
||||
)
|
||||
|
||||
apt-get install -y --no-install-recommends ${PACKAGES[@]}
|
||||
|
||||
# Clone the latest code from GitHub
|
||||
git clone --depth 1 https://github.com/auerswal/ssocr.git /usr/local/src/ssocr
|
||||
|
||||
# Build ssocr
|
||||
(
|
||||
# Setup the build directory
|
||||
cd /usr/local/src/ssocr
|
||||
|
||||
# compile the library
|
||||
make
|
||||
|
||||
# Install the binaries/libraries to your local system (prefix is /usr/local)
|
||||
make install
|
||||
|
||||
# Cleanup
|
||||
make clean
|
||||
)
|
|
@ -10,6 +10,7 @@ INSTALL_FFMPEG="${INSTALL_FFMPEG:-yes}"
|
|||
INSTALL_LIBCEC="${INSTALL_LIBCEC:-yes}"
|
||||
INSTALL_PHANTOMJS="${INSTALL_PHANTOMJS:-yes}"
|
||||
INSTALL_COAP_CLIENT="${INSTALL_COAP_CLIENT:-yes}"
|
||||
INSTALL_SSOCR="${INSTALL_SSOCR:-yes}"
|
||||
|
||||
# Required debian packages for running hass or components
|
||||
PACKAGES=(
|
||||
|
@ -62,6 +63,10 @@ if [ "$INSTALL_COAP_CLIENT" == "yes" ]; then
|
|||
virtualization/Docker/scripts/coap_client
|
||||
fi
|
||||
|
||||
if [ "$INSTALL_SSOCR" == "yes" ]; then
|
||||
virtualization/Docker/scripts/ssocr
|
||||
fi
|
||||
|
||||
# Remove packages
|
||||
apt-get remove -y --purge ${PACKAGES_DEV[@]}
|
||||
apt-get -y --purge autoremove
|
||||
|
|
Loading…
Add table
Reference in a new issue