deprecate cpu_core routine lack of scaling
This commit is contained in:
+2
-15
@@ -49,19 +49,7 @@ RUN \
|
|||||||
cd /tmp/mp3gain-src && \
|
cd /tmp/mp3gain-src && \
|
||||||
unzip -qq /tmp/mp3gain-src/mp3gain.zip && \
|
unzip -qq /tmp/mp3gain-src/mp3gain.zip && \
|
||||||
sed -i "s#/usr/local/bin#/usr/bin#g" /tmp/mp3gain-src/Makefile && \
|
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 ****" && \
|
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 && \
|
||||||
echo "**** compile chromaprint ****" && \
|
echo "**** compile chromaprint ****" && \
|
||||||
git clone https://bitbucket.org/acoustid/chromaprint.git \
|
git clone https://bitbucket.org/acoustid/chromaprint.git \
|
||||||
@@ -71,8 +59,7 @@ RUN \
|
|||||||
-DBUILD_TOOLS=ON \
|
-DBUILD_TOOLS=ON \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr && \
|
-DCMAKE_INSTALL_PREFIX:PATH=/usr && \
|
||||||
make -j $CPU_CORES && \
|
make && \
|
||||||
set +ex && \
|
|
||||||
make install && \
|
make install && \
|
||||||
echo "**** install pip packages ****" && \
|
echo "**** install pip packages ****" && \
|
||||||
pip install --no-cache-dir -U \
|
pip install --no-cache-dir -U \
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ Contains [beets-copyartifacts](https://github.com/sbarakat/beets-copyartifacts)
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
+ **02.01.18:** Deprecate cpu_core routine lack of scaling.
|
||||||
+ **27.12.17:** Add beautifulsoup4 pip package.
|
+ **27.12.17:** Add beautifulsoup4 pip package.
|
||||||
+ **06.12.17:** Rebase to alpine linux 3.7.
|
+ **06.12.17:** Rebase to alpine linux 3.7.
|
||||||
+ **25.05.17:** Rebase to alpine linux 3.6.
|
+ **25.05.17:** Rebase to alpine linux 3.6.
|
||||||
|
|||||||
Reference in New Issue
Block a user