deprecate cpu_core routine lack of scaling
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -51,19 +51,7 @@ RUN \
|
|||||||
--disable-debug \
|
--disable-debug \
|
||||||
--enable-encryption \
|
--enable-encryption \
|
||||||
--prefix=/usr && \
|
--prefix=/usr && \
|
||||||
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 && \
|
|
||||||
make install && \
|
make install && \
|
||||||
strip --strip-unneeded \
|
strip --strip-unneeded \
|
||||||
/usr/lib/libtorrent-rasterbar.so* \
|
/usr/lib/libtorrent-rasterbar.so* \
|
||||||
@@ -83,8 +71,7 @@ RUN \
|
|||||||
./configure \
|
./configure \
|
||||||
--disable-gui \
|
--disable-gui \
|
||||||
--prefix=/usr && \
|
--prefix=/usr && \
|
||||||
make -j $CPU_CORES && \
|
make && \
|
||||||
set +ex && \
|
|
||||||
make install && \
|
make install && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apk del --purge \
|
apk del --purge \
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ To monitor the logs of the container in realtime: `docker logs -f qbittorrent`
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
+ **02.01.18:** Deprecate cpu_core routine lack of scaling.
|
||||||
+ **19.12.17:** Update to v4.0.3.
|
+ **19.12.17:** Update to v4.0.3.
|
||||||
+ **09.12.17:** Rebase to alpine 3.7.
|
+ **09.12.17:** Rebase to alpine 3.7.
|
||||||
+ **01.12.17:** Update to v4.0.2.
|
+ **01.12.17:** Update to v4.0.2.
|
||||||
|
|||||||
Reference in New Issue
Block a user