Skip to content

Commit 0289092

Browse files
Get just the static container volume in build
This is done because the CI (Jenkins) will have multiple running containers and it might send two volumes back bricking the docker run command generated by the script.
1 parent bfca41a commit 0289092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build_multiarch_stanc3.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SHA=$(skopeo inspect --raw docker://stanorg/stanc3:multiarch | jq '.manifests |
2626
docker run --rm --privileged multiarch/qemu-user-static --reset
2727

2828
# Run docker, inheriting mounted volumes from sibling container (including stanc3 directory), and build stanc3
29-
docker run --volumes-from=$(docker ps -q):rw stanorg/stanc3:multiarch@$SHA /bin/bash -c "cd $(pwd) && eval \$(opam env) && dune build @install --profile static"
29+
docker run --volumes-from=$(docker ps -aqf "ancestor=stanorg/stanc3:static"):rw stanorg/stanc3:multiarch@$SHA /bin/bash -c "cd $(pwd) && eval \$(opam env) && dune build @install --profile static"
3030

3131
# Update ownership of build folders
3232
chown -R opam: _build

0 commit comments

Comments
 (0)