From 567aed9bdd978ddda640014466256a8183280e1b Mon Sep 17 00:00:00 2001 From: Volodymyr Yurchenko <volodymyr.yurchenko@cern.ch> Date: Wed, 26 Jan 2022 10:02:06 +0100 Subject: [PATCH] Fix linking cta binaries in buildtreerunner --- .../docker/ctafrontend/cc7/opt/run/bin/init_pod.sh | 2 +- .../docker/ctafrontend/cc7/opt/run/bin/mkSymlinks.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init_pod.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init_pod.sh index dc68881e31..e89a53f3b5 100755 --- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init_pod.sh +++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init_pod.sh @@ -35,7 +35,7 @@ echo "Mounting logs volume ${PV_PATH} in /var/log" mount --bind ${PV_PATH} /var/log # all core dumps will go there as all the pods AND kubelet are sharing the same kernel.core_pattern -mkdir /var/log/tmp +mkdir -p /var/log/tmp chmod 1777 /var/log/tmp echo '/var/log/tmp/%h-%t-%e-%p-%s.core' > /proc/sys/kernel/core_pattern diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/mkSymlinks.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/mkSymlinks.sh index d1406a9402..b2f5ba2f0e 100755 --- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/mkSymlinks.sh +++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/mkSymlinks.sh @@ -20,7 +20,7 @@ echo "Creating symlinks for CTA binaries." -ln -s -v -t /usr/bin `find ${BUILDTREE_BASE}/${CTA_BUILDTREE_SUBDIR} -type f -executable | egrep -v '\.so(\.|$)' | egrep -v '\.sh$' | grep -v RPM/BUILD | grep -v CMake | grep -v CPack` +find ${BUILDTREE_BASE}/${CTA_BUILDTREE_SUBDIR} -type f -executable | egrep -v '\.so(\.|$)' | egrep -v '\.sh$' | grep -v CMake | grep -v CPack | xargs -itoto ln -s -v -t /usr/bin toto echo Creating symlinks for CTA libraries. find ${BUILDTREE_BASE}/${CTA_BUILDTREE_SUBDIR} | grep '.so$' | xargs -itoto ln -s -v -t /usr/lib64 toto echo Creating symlink for frontend configuration file. -- GitLab