Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Docker Re-Building fails due to cp: cannot stat '/context/bin/*'
Docker Re-Building fails due to cp: cannot stat '/context/bin/*' [message #1810888] Wed, 21 August 2019 10:56 Go to next message
Java Student is currently offline Java StudentFriend
Messages: 2
Registered: June 2019
Junior Member
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
Re: Docker Re-Building fails due to cp: cannot stat '/context/bin/*' [message #1811033 is a reply to message #1810888] Sat, 24 August 2019 15:47 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
I've just tested building the container using:
docker build -t eclipse/kura:4.2.0-SNAPSHOT .

I've done that invoking docker in kura/kura/container/kura folder

Best regard,
Matteo
Previous Topic:Problem using KURA Client to connect to AWS IoT
Next Topic:firewall warning
Goto Forum:
  


Current Time: Thu Nov 07 17:17:22 GMT 2024

Powered by FUDForum. Page generated in 0.03231 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top