diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-24 11:55:29 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-24 19:15:51 +0200 |
| commit | f45330a006a019b6892094a9cb734dd497add7c0 (patch) | |
| tree | e1daf4681f5c3e217d7516e36c239c66018015d1 /container-run.sh | |
| parent | dfc47cde3a41c2f3776f720a367cf8d042335ddd (diff) | |
| download | nissy-core-f45330a006a019b6892094a9cb734dd497add7c0.tar.gz nissy-core-f45330a006a019b6892094a9cb734dd497add7c0.zip | |
Added stuff to Dockerfile, switched to Debian for Emscripten compatibility
Diffstat (limited to 'container-run.sh')
| -rwxr-xr-x | container-run.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/container-run.sh b/container-run.sh index 9799f65..6865e32 100755 --- a/container-run.sh +++ b/container-run.sh | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | # ./container-run.sh arm ./build test | 7 | # ./container-run.sh arm ./build test |
| 8 | # | 8 | # |
| 9 | # builds nissy and runs the unit tests in an ARM container. | 9 | # builds nissy and runs the unit tests in an ARM container. |
| 10 | # The container images are based on Alpine Linux, see Dockerfile for details. | 10 | # The container images are based on Debian Linux, see Dockerfile for details. |
| 11 | # The images are built with a tag starting with 'localhost/nissy/'. | 11 | # The images are built with a tag starting with 'localhost/nissy/'. |
| 12 | # See below for a list of options. | 12 | # See below for a list of options. |
| 13 | 13 | ||
| @@ -46,12 +46,12 @@ arm|arm64) | |||
| 46 | esac | 46 | esac |
| 47 | 47 | ||
| 48 | platform="--platform=linux/$p" | 48 | platform="--platform=linux/$p" |
| 49 | image="localhost/nissy/alpine-$p" | 49 | image="localhost/nissy/debian-$p" |
| 50 | 50 | ||
| 51 | docker build "$platform" -t "$image" . | 51 | docker build "$platform" -t "$image" . |
| 52 | 52 | ||
| 53 | if [ -z "$2" ]; then | 53 | if [ -z "$2" ]; then |
| 54 | docker run "$platform" -it "$image" /bin/sh | 54 | docker run --rm "$platform" -it "$image" /bin/sh |
| 55 | else | 55 | else |
| 56 | docker run "$platform" -t "$image" $@ | 56 | docker run --rm "$platform" -t "$image" $@ |
| 57 | fi | 57 | fi |
