Vagrant - sendfile python3.5 debian-stretch (#12454)

* vagrant dev - force hass-AIOHTTP to not use sendfile
Ref: https://www.virtualbox.org/ticket/9069
strongly needed for `home-assistant-polymer`

* vagrant dev - python 3.4 to 3.5 by upgrade to debian-stretch
This commit is contained in:
Tabakhase 2018-02-16 06:53:10 +01:00 committed by Paulus Schoutsen
parent 0e2d98dbf5
commit facd833e6d
3 changed files with 5 additions and 2 deletions

View file

@ -2,7 +2,7 @@
# vi: set ft=ruby : # vi: set ft=ruby :
Vagrant.configure(2) do |config| Vagrant.configure(2) do |config|
config.vm.box = "debian/contrib-jessie64" config.vm.box = "debian/contrib-stretch64"
config.vm.synced_folder "../../", "/home-assistant" config.vm.synced_folder "../../", "/home-assistant"
config.vm.synced_folder "./config", "/root/.homeassistant" config.vm.synced_folder "./config", "/root/.homeassistant"
config.vm.network "forwarded_port", guest: 8123, host: 8123 config.vm.network "forwarded_port", guest: 8123, host: 8123

View file

@ -16,5 +16,8 @@ ExecStart=/usr/bin/hass --runner
SendSIGKILL=no SendSIGKILL=no
RestartForceExitStatus=100 RestartForceExitStatus=100
# on vagrant (vboxfs), disable sendfile https://www.virtualbox.org/ticket/9069
Environment=AIOHTTP_NOSENDFILE=1
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View file

@ -105,7 +105,7 @@ main() {
vagrant up --provision; exit ;; vagrant up --provision; exit ;;
esac esac
# ...otherwise we assume it's the Vagrant provisioner # ...otherwise we assume it's the Vagrant provisioner
if [ $(hostname) != "contrib-jessie" ]; then usage; exit; fi if [ $(hostname) != "contrib-jessie" ] && [ $(hostname) != "contrib-stretch" ]; then usage; exit; fi
if ! [ -f $SETUP_DONE ]; then setup; fi if ! [ -f $SETUP_DONE ]; then setup; fi
if [ -f $RESTART ]; then restart; fi if [ -f $RESTART ]; then restart; fi
if [ -f $RUN_TESTS ]; then run_tests; fi if [ -f $RUN_TESTS ]; then run_tests; fi