Add arg to install LS via OPAM when building image (#5233)

This commit is contained in:
Vaalyn 2022-03-25 22:28:42 +01:00 committed by GitHub
parent 31ca13519f
commit 5c6d2808a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -35,6 +35,7 @@ RUN chmod a+x /bd_build/*.sh \
&& /bd_build/cleanup.sh
# Build each set of dependencies in their own step for cacheability.
ARG ARM_FULL_BUILD
COPY ./util/docker/stations /bd_build/stations/
RUN bash /bd_build/stations/setup.sh \
&& bash /bd_build/cleanup.sh \

View File

@ -2,6 +2,10 @@ services:
web:
build:
context: .
# Control wether Liquidsoap should be built from source via OPAM or download the
# pre-built .deb file from the Liquidsoap GitHub Releases on ARM based machines
# args:
# ARM_FULL_BUILD: true
ports:
- "127.0.0.1:3306:3306"
- "127.0.0.1:6379:6379"

View File

@ -15,8 +15,9 @@ $minimal_apt_get_install frei0r-plugins-dev ladspa-sdk multimedia-audio-plugins
# Per-architecture LS installs
ARCHITECTURE=amd64
ARM_FULL_BUILD="${ARM_FULL_BUILD:-false}"
if [ "$(uname -m)" = "aarch64" ]; then
if [[ "$(uname -m)" = "aarch64" && ${ARM_FULL_BUILD} == "false" ]]; then
ARCHITECTURE=arm64
wget -O /tmp/liquidsoap.deb "https://github.com/savonet/liquidsoap/releases/download/v2.0.3/liquidsoap_2.0.3-ubuntu-focal-2_${ARCHITECTURE}.deb"