Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
.tox
# General files
.git
.github
config

# Test related files
.tox

# Other virtualization methods
venv
.vagrant

# Temporary files
**/__pycache__
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Notice:
# When updating this file, please also update virtualization/Docker/Dockerfile.dev
# This way, the development image and the production image are kept in sync.

FROM python:3.6
MAINTAINER Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>

Expand All @@ -21,6 +25,7 @@ RUN virtualization/Docker/setup_docker_prereqs

# Install hass component dependencies
COPY requirements_all.txt requirements_all.txt

# Uninstall enum34 because some depenndecies install it but breaks Python 3.4+.
# See PR #8103 for more info.
RUN pip3 install --no-cache-dir -r requirements_all.txt && \
Expand Down
6 changes: 5 additions & 1 deletion virtualization/Docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ RUN virtualization/Docker/setup_docker_prereqs

# Install hass component dependencies
COPY requirements_all.txt requirements_all.txt

# Uninstall enum34 because some depenndecies install it but breaks Python 3.4+.
# See PR #8103 for more info.
RUN pip3 install --no-cache-dir -r requirements_all.txt && \
pip3 install --no-cache-dir mysqlclient psycopg2 uvloop cchardet
pip3 install --no-cache-dir mysqlclient psycopg2 uvloop cchardet && \
pip3 uninstall -y enum34

# BEGIN: Development additions

Expand Down
3 changes: 3 additions & 0 deletions virtualization/Docker/scripts/coap_client
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ set -e

apt-get install -y --no-install-recommends git autoconf automake libtool

cd /usr/src/app/
mkdir -p build && cd build

git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
cd libcoap
./autogen.sh
Expand Down
2 changes: 1 addition & 1 deletion virtualization/Docker/scripts/libcec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PYTHON_LDLIBRARY=$(python -c 'from distutils import sysconfig; print(sysconfig.g
PYTHON_LIBRARY="${PYTHON_LIBDIR}/${PYTHON_LDLIBRARY}"
PYTHON_INCLUDE_DIR=$(python -c 'from distutils import sysconfig; print(sysconfig.get_python_inc())')

cd "$(dirname "$0")/.."
cd /usr/src/app/
mkdir -p build && cd build

if [ ! -d libcec ]; then
Expand Down
7 changes: 5 additions & 2 deletions virtualization/Docker/scripts/openalpr
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ PACKAGES=(

apt-get install -y --no-install-recommends ${PACKAGES[@]}

cd /usr/src/app/
mkdir -p build && cd build

# Clone the latest code from GitHub
git clone --depth 1 https://github.com/openalpr/openalpr.git /usr/local/src/openalpr
git clone --depth 1 https://github.com/openalpr/openalpr.git openalpr

# Setup the build directory
cd /usr/local/src/openalpr/src
cd openalpr/src/
mkdir -p build
cd build

Expand Down
2 changes: 1 addition & 1 deletion virtualization/Docker/scripts/phantomjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e

PHANTOMJS_VERSION="2.1.1"

cd "$(dirname "$0")/.."
cd /usr/src/app/
mkdir -p build && cd build

curl -LSO https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
Expand Down
23 changes: 9 additions & 14 deletions virtualization/Docker/scripts/ssocr
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,15 @@ PACKAGES=(

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
cd /usr/src/app/
mkdir -p build && cd build

# compile the library
make
# Clone the latest code from GitHub
git clone --depth 1 https://github.com/auerswal/ssocr.git ssocr
cd ssocr/

# Install the binaries/libraries to your local system (prefix is /usr/local)
make install
# Compile the library
make

# Cleanup
make clean
)
# Install the binaries/libraries to your local system (prefix is /usr/local)
make install
6 changes: 3 additions & 3 deletions virtualization/Docker/setup_docker_prereqs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ PACKAGES=(

# Required debian packages for building dependencies
PACKAGES_DEV=(
cmake git
# libcec
cmake
git
swig
)

Expand Down Expand Up @@ -73,4 +73,4 @@ apt-get -y --purge autoremove

# Cleanup
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* build/
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/src/app/build/