deprecate cpu_core routine lack of scaling
This commit is contained in:
parent
c9ea1189e7
commit
c8f3dca10e
2 changed files with 2 additions and 14 deletions
15
Dockerfile
15
Dockerfile
|
@ -33,20 +33,7 @@ RUN \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc && \
|
--sysconfdir=/etc && \
|
||||||
echo "**** attempt to set number of cores available for make to use ****" && \
|
make && \
|
||||||
set -ex && \
|
|
||||||
CPU_CORES=$( < /proc/cpuinfo grep -c processor ) || echo "failed cpu look up" && \
|
|
||||||
if echo $CPU_CORES | grep -E -q '^[0-9]+$'; then \
|
|
||||||
: ;\
|
|
||||||
if [ "$CPU_CORES" -gt 7 ]; then \
|
|
||||||
CPU_CORES=$(( CPU_CORES - 3 )); \
|
|
||||||
elif [ "$CPU_CORES" -gt 5 ]; then \
|
|
||||||
CPU_CORES=$(( CPU_CORES - 2 )); \
|
|
||||||
elif [ "$CPU_CORES" -gt 3 ]; then \
|
|
||||||
CPU_CORES=$(( CPU_CORES - 1 )); fi \
|
|
||||||
else CPU_CORES="1"; fi && \
|
|
||||||
make -j $CPU_CORES && \
|
|
||||||
set +ex && \
|
|
||||||
make install && \
|
make install && \
|
||||||
echo "**** install app ****" && \
|
echo "**** install app ****" && \
|
||||||
git clone --depth 1 https://github.com/rembo10/headphones.git /app/headphones && \
|
git clone --depth 1 https://github.com/rembo10/headphones.git /app/headphones && \
|
||||||
|
|
|
@ -80,6 +80,7 @@ Access WebUI at `<your-ip>:8181` and walk through the wizard.
|
||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
+ **05.01.18:** Deprecate cpu_core routine lack of scaling.
|
||||||
+ **12.12.17:** Rebase to alpine 3.7.
|
+ **12.12.17:** Rebase to alpine 3.7.
|
||||||
+ **20.07.17:** Internal git pull instead of at runtime.
|
+ **20.07.17:** Internal git pull instead of at runtime.
|
||||||
+ **12.07.17:** Add inspect commands to README, move to jenkins build and push.
|
+ **12.07.17:** Add inspect commands to README, move to jenkins build and push.
|
||||||
|
|
Loading…
Add table
Reference in a new issue