]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Limit maximum open file handles in Docker images. Increase the level of optimisation...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 8 Jun 2024 13:05:26 +0000 (14:05 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 8 Jun 2024 13:05:26 +0000 (14:05 +0100)
docker/Dockerfile
docker/classic/Dockerfile
docker/classic/etc/s6-overlay/s6-rc.d/01-startup/script.sh
docker/etc/s6-overlay/s6-rc.d/01-startup/script.sh

index c6da2efdb40f9fea1c1616ecc24c26929f711f13..e47dc5d7f1bac19aa2490a5ab5eb28c888ab0e65 100644 (file)
@@ -55,7 +55,7 @@ COPY . .
 RUN git checkout "$SHAIRPORT_SYNC_BRANCH"
 WORKDIR /shairport-sync/build
 RUN autoreconf -i ../
-RUN ../configure --sysconfdir=/etc --with-alsa --with-pa --with-soxr --with-avahi --with-ssl=openssl \
+RUN CFLAGS="-O3" CXXFLAGS="-O3" ../configure --sysconfdir=/etc --with-alsa --with-pa --with-soxr --with-avahi --with-ssl=openssl \
         --with-airplay-2 --with-metadata --with-dummy --with-pipe --with-dbus-interface \
         --with-stdout --with-mpris-interface --with-mqtt-client \
         --with-apple-alac --with-convolution
index d597841074f68ae6e42b8872da084e4f9d67f8e6..d41cac4fbe0efe35672e6fa3f918a839da2e910e 100644 (file)
@@ -40,7 +40,7 @@ COPY . .
 RUN git checkout "$SHAIRPORT_SYNC_BRANCH"
 WORKDIR /shairport-sync/build
 RUN autoreconf -i ../
-RUN ../configure --sysconfdir=/etc --with-alsa --with-pa --with-soxr --with-avahi --with-ssl=mbedtls \
+RUN CFLAGS="-O3" CXXFLAGS="-O3" ../configure --sysconfdir=/etc --with-alsa --with-pa --with-soxr --with-avahi --with-ssl=mbedtls \
         --with-metadata --with-dummy --with-pipe --with-dbus-interface \
         --with-stdout --with-mpris-interface --with-mqtt-client \
         --with-apple-alac --with-convolution
index 3037e98ad2910beacec23c4adf26bead52b96030..253c0afabfdc0622d41b2f5b9152dcb7f7582376 100644 (file)
@@ -1,2 +1,5 @@
 #!/bin/sh
 echo "STARTING - $(date)"
+
+# Set the limit to the same value Docker has been using in earlier version.
+ulimit -n 1048576
index 3037e98ad2910beacec23c4adf26bead52b96030..253c0afabfdc0622d41b2f5b9152dcb7f7582376 100644 (file)
@@ -1,2 +1,5 @@
 #!/bin/sh
 echo "STARTING - $(date)"
+
+# Set the limit to the same value Docker has been using in earlier version.
+ulimit -n 1048576