Skip to content

Commit

Permalink
Run docker scripts in rosetta mode on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Dec 22, 2024
1 parent 52935d9 commit d80e6cc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tools/docker/18.04/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# run this script once to create the base container image,
# which would contain all necessary dependencies and build tools

docker build --progress plain -f tools/docker/18.04/Dockerfile-builder -t deadbeef-builder-player-clang-18.04 .
docker build --platform linux/amd64 --progress plain -f tools/docker/18.04/Dockerfile-builder -t deadbeef-builder-player-clang-18.04 .
4 changes: 2 additions & 2 deletions tools/docker/18.04/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

docker build --progress plain -t deadbeef-clang-18.04 -f tools/docker/18.04/Dockerfile . || exit 1
docker build --platform linux/amd64 --progress plain -t deadbeef-clang-18.04 -f tools/docker/18.04/Dockerfile . || exit 1
mkdir -p docker-artifacts
docker run --rm -v ${PWD}/docker-artifacts:/usr/src/deadbeef/portable deadbeef-clang-18.04 || exit 1
docker run --platform linux/amd64 --rm -v ${PWD}/docker-artifacts:/usr/src/deadbeef/portable deadbeef-clang-18.04 || exit 1
4 changes: 2 additions & 2 deletions tools/docker/18.04/distcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -e

docker build --progress plain -t deadbeef-clang-distcheck-18.04 -f tools/docker/18.04/Dockerfile-distcheck .
docker build --platform linux/amd64 --progress plain -t deadbeef-clang-distcheck-18.04 -f tools/docker/18.04/Dockerfile-distcheck .
mkdir -p docker-artifacts
docker run -i --rm -v ${PWD}/docker-artifacts:/usr/src/deadbeef/portable deadbeef-clang-distcheck-18.04
docker run --platform linux/amd64 -i --rm -v ${PWD}/docker-artifacts:/usr/src/deadbeef/portable deadbeef-clang-distcheck-18.04
4 changes: 2 additions & 2 deletions tools/docker/18.04/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

docker build --progress plain -t deadbeef-test-18.04 -f tools/docker/18.04/Dockerfile-test . || exit 1
docker run --rm deadbeef-test-18.04 || exit 1
docker build --platform linux/amd64 --progress plain -t deadbeef-test-18.04 -f tools/docker/18.04/Dockerfile-test . || exit 1
docker run --platform linux/amd64 --rm deadbeef-test-18.04 || exit 1

4 changes: 2 additions & 2 deletions tools/docker/18.04/unittest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -e

docker build --progress plain -t deadbeef-clang-unittest-18.04 -f tools/docker/18.04/Dockerfile-unittest .
docker build --platform linux/amd64 --progress plain -t deadbeef-clang-unittest-18.04 -f tools/docker/18.04/Dockerfile-unittest .
mkdir -p docker-artifacts
docker run -i --rm -v ${PWD}/docker-artifacts:/usr/src/deadbeef/portable deadbeef-clang-unittest-18.04
docker run --platform linux/amd64 -i --rm -v ${PWD}/docker-artifacts:/usr/src/deadbeef/portable deadbeef-clang-unittest-18.04

0 comments on commit d80e6cc

Please sign in to comment.