Building container application

0

I'm building the application containers for the Hello World example following the RoboMaker Developer Guide. I have downloaded it from git, added under the helloworld folder the Dockerfile and the entrypoint.sh by coping and pasting them from the guide.

My question is: how do I have to change the entrypoint.sh file? Because the guide says "You may want to add your own environment configuration steps to this ENTRYPOINT file" ,

If I build the robot application using this command: "DOCKER_BUILDKIT=1 docker build . --build-arg ROS_DISTRO=melodic --build-arg LOCAL_WS_DIR=./robot_ws --build-arg APP_NAME=helloworld-robot-app -t robomaker-helloworld-robot-app" the following error pops up: "failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount171637073/Dockerfile: no such file or directory"

If it helps, the setup.bash and setup.sh files are both under helloworld/robot_ws/install and helloworld/simulation_ws/install folder, while the code for entrypoint.sh is as follows:

#!/bin/bash

set -e

source "/home/$USERNAME/workspace/$APP_NAME/setup.bash"

if [[ -f "/usr/share/$GAZEBO_VERSION/setup.sh" ]]

then

source /usr/share/$GAZEBO_VERSION/setup.sh

fi

printenv

exec "${@:1}"

gefragt vor 2 Jahren305 Aufrufe
1 Antwort
1
Akzeptierte Antwort

Solved, I did not run the DOCKER_BUILDKIT command in the directory helloworld

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen