Improve development workflow in docker (#5079)
* Allow bower install of frontend components as root. Needed for frontend development in docker since everything runs as root in the docker image. * Improve development workflow in docker * Use LANG=C.UTF-8 in tox. Fixes installation of libraries with UTF-8 in it's readme. * Install mysqlclient psycopg2 uvloop after requirements_all.txt again, but with a --no-cache-dir this time. Allows bootstrap_frontend to be executed in a different path like the other scripts.
This commit is contained in:
1 parent
b2371c6614
commit
c864ea60c9
21 files changed
+142
-71
No files matched your search
@@ -1,7 +1,21 @@
|
||||
#!/bin/sh
|
||||
# Resolve all frontend dependencies that the application requires to run.
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
echo "Bootstrapping frontend..."
|
||||
|
||||
git submodule update
|
||||
cd homeassistant/components/frontend/www_static/home-assistant-polymer
|
||||
|
||||
# Install node modules
|
||||
npm install
|
||||
./node_modules/.bin/bower install
|
||||
|
||||
# Install bower web components. Allow to download the components as root since the user in docker is root.
|
||||
./node_modules/.bin/bower install --allow-root
|
||||
|
||||
npm run setup_js_dev
|
||||
cd ../../../../..
|
||||
Reference in new issue
Block a user