using n for docker node versions
This commit is contained in:
1 parent
3b1b88b404
commit
8e859ff191
4 files changed
+11
-17
No files matched your search
+1
-2
@@ -14,8 +14,7 @@ ENV BUILD_VERSION $BUILD_VERSION
|
||||
# <--- System Wide Dependencies -->
|
||||
ENV LANG C.UTF-8
|
||||
RUN apt-get update -y && \
|
||||
apt-get install -y gcc git build-essential libtool automake && \
|
||||
pip install Cython
|
||||
apt-get install -y gcc git build-essential libtool automake curl
|
||||
|
||||
# <--- Scripts -->
|
||||
COPY docker/bin /app/bin
|
||||
|
||||
@@ -10,7 +10,10 @@ def find_hass_config() -> HassConfig:
|
||||
"""Try to find HASS config."""
|
||||
if config("USE_EXAMPLE_REPO", False, cast=bool):
|
||||
print("using USE_EXAMPLE_REPO")
|
||||
from tests.utils import create_copy_of_example_config, HA_CONFIG3_EXAMPLE
|
||||
from tests.utils import (
|
||||
HA_CONFIG3_EXAMPLE,
|
||||
create_copy_of_example_config,
|
||||
)
|
||||
|
||||
path = create_copy_of_example_config(HA_CONFIG3_EXAMPLE)
|
||||
print("|-> ", path)
|
||||
|
||||
+2
-7
@@ -18,12 +18,7 @@ function install_py() {
|
||||
popd
|
||||
}
|
||||
|
||||
declare -i err=0 werr=0
|
||||
install_py &
|
||||
install_yarn &
|
||||
while wait -fn || werr=$?; ((werr != 127)); do
|
||||
err=$werr
|
||||
done
|
||||
install_py
|
||||
install_yarn
|
||||
|
||||
echo "DONE BUILD"
|
||||
exit $err
|
||||
+4
-7
@@ -2,6 +2,8 @@
|
||||
set -e
|
||||
|
||||
function prep_yarn() {
|
||||
curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n
|
||||
bash n lts
|
||||
npm i -g yarn
|
||||
}
|
||||
|
||||
@@ -9,12 +11,7 @@ function prep_py() {
|
||||
pip install -U wheel setuptools pip Cython
|
||||
}
|
||||
|
||||
declare -i err=0 werr=0
|
||||
prep_py &
|
||||
prep_yarn &
|
||||
while wait -fn || werr=$?; ((werr != 127)); do
|
||||
err=$werr
|
||||
done
|
||||
prep_py
|
||||
prep_yarn
|
||||
|
||||
echo "DONE PREP"
|
||||
exit $err
|
||||
Reference in new issue
Block a user