mirror of
https://github.com/linuxserver/docker-beets
synced 2025-12-06 16:34:31 +01:00
deprecate cpu_core routine lack of scaling
This commit is contained in:
parent
c15023975a
commit
0cdc5061bd
2 changed files with 3 additions and 15 deletions
17
Dockerfile
17
Dockerfile
|
|
@ -49,19 +49,7 @@ RUN \
|
|||
cd /tmp/mp3gain-src && \
|
||||
unzip -qq /tmp/mp3gain-src/mp3gain.zip && \
|
||||
sed -i "s#/usr/local/bin#/usr/bin#g" /tmp/mp3gain-src/Makefile && \
|
||||
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 && \
|
||||
make && \
|
||||
make install && \
|
||||
echo "**** compile chromaprint ****" && \
|
||||
git clone https://bitbucket.org/acoustid/chromaprint.git \
|
||||
|
|
@ -71,8 +59,7 @@ RUN \
|
|||
-DBUILD_TOOLS=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr && \
|
||||
make -j $CPU_CORES && \
|
||||
set +ex && \
|
||||
make && \
|
||||
make install && \
|
||||
echo "**** install pip packages ****" && \
|
||||
pip install --no-cache-dir -U \
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ Contains [beets-copyartifacts](https://github.com/sbarakat/beets-copyartifacts)
|
|||
|
||||
## Versions
|
||||
|
||||
+ **02.01.18:** Deprecate cpu_core routine lack of scaling.
|
||||
+ **27.12.17:** Add beautifulsoup4 pip package.
|
||||
+ **06.12.17:** Rebase to alpine linux 3.7.
|
||||
+ **25.05.17:** Rebase to alpine linux 3.6.
|
||||
|
|
|
|||
Loading…
Reference in a new issue