Skip to content

Commit

Permalink
Upgraded hass to bionic
Browse files Browse the repository at this point in the history
  • Loading branch information
ngardiner committed Jun 11, 2018
1 parent 1931c1d commit 9545d5d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 31 deletions.
1 change: 1 addition & 0 deletions homeassistant/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ logfile
rootfs
*.tar.gz
*.whl
ubuntu-18.04-homeassistant_18.04-1_amd64.tar.gz
49 changes: 25 additions & 24 deletions homeassistant/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,35 @@ bootstrap:
dab install python3-markupsafe python3-pyparsing python3-requests python3-setuptools
dab install python3-tz python3-voluptuous python3-xmltodict python3-yaml python3-zeroconf

pip3 install -d . homeassistant
pip3 install -d . mysqlclient
pip3 install -d . pycrypto
pip3 download homeassistant
pip3 download mysqlclient
pip3 download pycrypto
install -m 0644 [email protected] ${BASEDIR}/etc/systemd/system/[email protected]
install -m 0600 aiohttp-2.0.7.tar.gz ${BASEDIR}/tmp
# install -m 0600 appdirs-1.4.3-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 astral-1.4-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 async_timeout-1.2.1-py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 chardet-3.0.2-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 homeassistant-0.45.1-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 Jinja2-2.9.6-py2.py3-none-any.whl ${BASEDIR}/tmp

install -m 0600 aiohttp-3.2.1-cp35-cp35m-manylinux1_x86_64.whl ${BASEDIR}/tmp
install -m 0600 astral-1.6.1-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 async_timeout-3.0.0-py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 attrs-18.1.0-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 certifi-2018.4.16-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 chardet-3.0.4-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 homeassistant-0.71.0-py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 idna-2.6-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 idna-ssl-1.0.1.tar.gz ${BASEDIR}/tmp
install -m 0600 Jinja2-2.10-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 MarkupSafe-1.0.tar.gz ${BASEDIR}/tmp
install -m 0600 multidict-2.1.5.tar.gz ${BASEDIR}/tmp
install -m 0600 mysqlclient-1.3.10.tar.gz ${BASEDIR}/tmp
# install -m 0600 packaging-16.8-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 pip-9.0.1-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 multidict-4.3.1-cp35-cp35m-manylinux1_x86_64.whl ${BASEDIR}/tmp
install -m 0600 mysqlclient-1.3.12.tar.gz ${BASEDIR}/tmp
install -m 0600 pip-10.0.1-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 pycrypto-2.6.1.tar.gz ${BASEDIR}/tmp
# install -m 0600 pyparsing-2.2.0-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 pytz-2017.2-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 pytz-2018.4-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 PyYAML-3.12.tar.gz ${BASEDIR}/tmp
install -m 0600 requests-2.14.2-py2.py3-none-any.whl ${BASEDIR}/tmp
# install -m 0600 setuptools-35.0.2-py2.py3-none-any.whl ${BASEDIR}/tmp
# install -m 0600 six-1.10.0-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 typing-3.6.1.tar.gz ${BASEDIR}/tmp
install -m 0600 voluptuous-0.10.5.tar.gz ${BASEDIR}/tmp
install -m 0600 yarl-0.10.2.tar.gz ${BASEDIR}/tmp
install -m 0600 requests-2.18.4-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 typing-3.6.4-py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 urllib3-1.22-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 voluptuous-0.11.1-py2.py3-none-any.whl ${BASEDIR}/tmp
install -m 0600 yarl-1.2.5-cp35-cp35m-manylinux1_x86_64.whl ${BASEDIR}/tmp

dab exec pip3 install --no-index --find-links=file:/tmp homeassistant mysqlclient pycrypto
dab exec pip3 install --no-index --find-links=file:/tmp aiohttp homeassistant mysqlclient pycrypto
dab exec rm -f /tmp/*.whl
dab exec rm -f /tmp/*.tar.gz
install -m 0700 runonce.sh ${BASEDIR}/etc/init.d/firstboot
Expand All @@ -59,7 +60,7 @@ info/init_ok: dab.conf

.PHONY: template
template:
cp ubuntu-16.04-homeassistant_16.04-1_amd64.tar.gz /var/lib/vz/template/cache
cp ubuntu-18.04-homeassistant_18.04-1_amd64.tar.gz /var/lib/vz/template/cache

.PHONY: clean
clean:
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Home Assistant is a home automation platform written in Python. It provides the
- Creates a Ubuntu Xenial template with Python 3 and Home Assistant home automation system
- NOTE: Currently, this image will require internet access for full functionality due to the software installing some dependancies at runtime.
- Adds any customizations such as root login enabled or SSH keys from ../Makefile.global
- Total uncompressed image size is *907 MB*
- Total compressed image size is *321 MB*
- Total uncompressed image size is *938 MB*
- Total compressed image size is *297 MB*

### Prerequisites
- Requires the python3-pip and libmysqlclient-dev packages to be installed on the (dab) system used to create the template.
Expand Down
10 changes: 5 additions & 5 deletions homeassistant/dab.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Suite: xenial
Suite: bionic
CacheDir: ../cache
#Source: http://archive.ubuntu.com/ubuntu SUITE main restricted universe multiverse
#Source: http://archive.ubuntu.com/ubuntu SUITE-updates main restricted universe multiverse
#Source: http://archive.ubuntu.com/ubuntu SUITE-security main restricted universe multiverse
Source: http://archive.ubuntu.com/ubuntu SUITE main restricted universe multiverse
Source: http://archive.ubuntu.com/ubuntu SUITE-updates main restricted universe multiverse
Source: http://archive.ubuntu.com/ubuntu SUITE-security main restricted universe multiverse
Architecture: amd64
Name: homeassistant
Version: 16.04-1
Version: 18.04-1
Section: system
Maintainer: Nathan Gardiner <[email protected]>
Infopage: https://home-assistant.io/
Expand Down

0 comments on commit 9545d5d

Please sign in to comment.