Merge pull request #32 from linuxserver/deprecate_cpu_core

deprecate cpu_core routine lack of scaling
This commit is contained in:
sparklyballs 2018-01-05 19:32:29 +00:00 committed by GitHub
commit eee309a141
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 14 deletions

View file

@ -33,20 +33,7 @@ RUN \
--mandir=/usr/share/man \
--prefix=/usr \
--sysconfdir=/etc && \
echo "**** attempt to set number of cores available for make to use ****" && \
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 && \
make install && \
echo "**** install app ****" && \
git clone --depth 1 https://github.com/rembo10/headphones.git /app/headphones && \

View file

@ -80,6 +80,7 @@ Access WebUI at `<your-ip>:8181` and walk through the wizard.
## Versions
+ **05.01.18:** Deprecate cpu_core routine lack of scaling.
+ **12.12.17:** Rebase to alpine 3.7.
+ **20.07.17:** Internal git pull instead of at runtime.
+ **12.07.17:** Add inspect commands to README, move to jenkins build and push.