Skip to content

Commit

Permalink
Merge pull request duplicati#4410 from warwickmm/use_consistent_mono_…
Browse files Browse the repository at this point in the history
…images

Use consistent (and updated) mono versions for Docker and Travis
  • Loading branch information
kenkendk authored Mar 6, 2021
2 parents 0c37b4f + 529e4c7 commit 2ec0831
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions Installer/Docker/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ docker buildx create --use --name duplicati-multiarch
docker buildx build \
${args} \
--platform ${PLATFORMS} \
--build-arg PARENT_IMAGE="$(cat mono_image.txt)-slim" \
--build-arg VERSION=${VERSION} \
--build-arg CHANNEL=${CHANNEL} \
--file context/Dockerfile \
Expand Down
3 changes: 2 additions & 1 deletion Installer/Docker/context/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM --platform=$TARGETPLATFORM mono:5-slim
ARG PARENT_IMAGE
FROM --platform=$TARGETPLATFORM ${PARENT_IMAGE}

RUN apt-get update && \
apt-get install -y --no-install-recommends \
Expand Down
1 change: 1 addition & 0 deletions Installer/Docker/mono_image.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mono:6
2 changes: 1 addition & 1 deletion pipeline/shared/duplicati.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ declare -a FORWARD_OPTS

export UPDATE_SOURCE="${DUPLICATI_ROOT}/Updates/build/${BUILDTAG}_source"
export UPDATE_TARGET="${DUPLICATI_ROOT}/Updates/build/${BUILDTAG}_target"

export MONO_IMAGE="$(cat "${TRAVIS_BUILD_DIR}/Installer/Docker/mono_image.txt")"
5 changes: 3 additions & 2 deletions pipeline/stage_build/trigger.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
. error_handling.sh
. ./pipeline/shared/duplicati.sh

PACKAGES="libgtk2.0-cil rsync"
docker-run --image mono \
docker-run --image "${MONO_IMAGE}" \
--packages "$PACKAGES" \
--command "/pipeline/stage_build/job.sh" $@
--command "/pipeline/stage_build/job.sh" $@
5 changes: 3 additions & 2 deletions pipeline/stage_unittests/trigger.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
. error_handling.sh
. ./pipeline/shared/duplicati.sh

PACKAGES="wget unzip rsync"
docker-run --image mono \
docker-run --image "${MONO_IMAGE}" \
--packages "$PACKAGES" \
--command "/pipeline/stage_unittests/job.sh" $@
--command "/pipeline/stage_unittests/job.sh" $@

0 comments on commit 2ec0831

Please sign in to comment.