oceanus: use absolute subpaths for the pinned image mounts
This commit is contained in:
parent
45ef3e322c
commit
04185561da
@ -14,14 +14,14 @@ args=(--rm --pull=never --cgroups=disabled --name "$agent"
|
|||||||
--env "OCEANUS_WORKER_IMAGE=$AMD_IMAGE"
|
--env "OCEANUS_WORKER_IMAGE=$AMD_IMAGE"
|
||||||
--volume /srv/lesavkaci/input/lesavka.git:/opt/lesavka-source.git:ro
|
--volume /srv/lesavkaci/input/lesavka.git:/opt/lesavka-source.git:ro
|
||||||
--volume "$owned/home:/home/jenkins:rw"
|
--volume "$owned/home:/home/jenkins:rw"
|
||||||
--mount "type=image,source=$TRANSPORT_IMAGE,subpath=opt/java/openjdk,dst=/opt/agent-java"
|
--mount "type=image,source=$TRANSPORT_IMAGE,subpath=/opt/java/openjdk,dst=/opt/agent-java"
|
||||||
--mount "type=image,source=$TRANSPORT_IMAGE,subpath=usr/share/jenkins,dst=/opt/agent-remoting")
|
--mount "type=image,source=$TRANSPORT_IMAGE,subpath=/usr/share/jenkins,dst=/opt/agent-remoting")
|
||||||
if [[ $role == compiler ]]; then
|
if [[ $role == compiler ]]; then
|
||||||
target=aarch64-unknown-linux-gnu
|
target=aarch64-unknown-linux-gnu
|
||||||
rustup=/usr/local/rustup/toolchains
|
rustup=/usr/local/rustup/toolchains
|
||||||
args+=(--env "OCEANUS_SYSROOT_IMAGE=$ARM_IMAGE"
|
args+=(--env "OCEANUS_SYSROOT_IMAGE=$ARM_IMAGE"
|
||||||
--mount "type=image,source=$ARM_IMAGE,dst=/opt/lesavka-arm64"
|
--mount "type=image,source=$ARM_IMAGE,dst=/opt/lesavka-arm64"
|
||||||
--mount "type=image,source=$ARM_IMAGE,subpath=${rustup#/}/1.92.0-$target/lib/rustlib/$target,dst=$rustup/1.92.0-x86_64-unknown-linux-gnu/lib/rustlib/$target")
|
--mount "type=image,source=$ARM_IMAGE,subpath=${rustup}/1.92.0-$target/lib/rustlib/$target,dst=$rustup/1.92.0-x86_64-unknown-linux-gnu/lib/rustlib/$target")
|
||||||
fi
|
fi
|
||||||
if [[ $role == tests ]]; then
|
if [[ $role == tests ]]; then
|
||||||
args+=(--cap-add SETUID --cap-add SETGID
|
args+=(--cap-add SETUID --cap-add SETGID
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user