Docker Re-Building fails due to cp: cannot stat '/context/bin/*' [message #1810888] |
Wed, 21 August 2019 06:56  |
Eclipse User |
|
|
|
Hi,
I´m trying to build my own Docker container.
Even when I am using the unchanged Dockerfile with the default GIT repository (with the command: docker build -f kura/container/kura/Dockerfile .), I´m getting the following error quite at the end of the process.
So it looks like that the specified path /context/bin/* in the Dockerfile is causing the issue. I tried to run the re-build on 3 different host operating systems (Windows 10, Ubuntu, CentOS 7) and I am getting the error on all 3.
Does anyone have an idea to which path I should change it in the Dockerfile instead? Thanks a lot in advance!
Error message:
Extracting Kura files
cp: cannot stat '/context/bin/*': No such file or directory
The command '/bin/sh -c echo "$GIT_REPO / $GIT_BRANCH / $KURA_COMMIT" && chmod a+x -R /usr/local/bin && yum -y update && yum -y install scl-utils scl-utils-build centos-release-scl && yum -y install git java-1.8.0-openjdk-devel rh-maven35 && if [ -d /context/.git ]; then mv /context /kura; mv /kura/kura/container/kura /context; else git clone "$GIT_REPO" -b "$GIT_BRANCH"; fi && cd kura && if [ -n "$KURA_COMIT" ]; then git checkout "$KURA_COMMIT"; fi && git log -1 && ( cd /kura && `# Replace broken 'nn' script` cp kura/distrib/src/main/sh/extract.sh kura/distrib/src/main/sh/extract_nn.sh && scl enable rh-maven35 "mvn -B -f target-platform/pom.xml clean install $MAVEN_PROPS" && scl enable rh-maven35 "mvn -B -f kura/pom.xml clean install $MAVEN_PROPS -Pspeedup" && scl enable rh-maven35 "mvn -B -f kura/distrib/pom.xml clean install $MAVEN_PROPS -Pintel-up2-centos-7-nn -nsu" ) && ls -la /kura/kura/distrib/target && yum -y history undo last && yum -y install java-1.8.0-openjdk-headless && yum -y install procps zip unzip gzip tar psmisc socat telnet dos2unix openssl net-tools hostname which && yum -y clean all && rm -rf /var/cache/yum && /kura/kura/distrib/target/kura_*_intel-up2-centos-7-nn_installer.sh && chmod a+rw -R /opt/eclipse && find /opt/eclipse -type d | xargs chmod a+x && chmod a+rwx /var/log && `# Test for the existence of the entry point` test -x "${KURA_DIR}/bin/start_kura.sh" && cp -av /context/bin/* /usr/local/bin && chmod a+x /usr/local/bin/* && rm -Rf /context /kura /root/.m2 && install -m 0777 -d "${KURA_DIR}/data" && sed -i 's/kura.primary.network.interface/#kura.primary.network.interface/g' ${KURA_DIR}/framework/kura.properties && if [ "$PACKED" == "true" ]; then touch /kura.packed && pack-kura; fi' returned a non-zero code: 1
|
|
|
|
Powered by
FUDForum. Page generated in 0.09462 seconds