Open anasLearn opened 1 year ago
I have been running into this as well and trying to run it with a different user. Anyone got a fix for this? RUN USER=nobody doesn't work.
It looks like the RUN USER=nobody is not able to be used well with the install prereqs script. I am attempting to create a new user and try to get the script to run using that newly created user. Will report back if that works.
@jkronk did that work? I have same issue.
@jkronk did that work? I have same issue.
It did, I ended up doing the following
.......
RUN apt-get install -y sudo lsb-release tzdata
RUN useradd -m dockeruser && echo "dockeruser:dockeruser" | chpasswd && adduser dockeruser sudo
RUN echo 'dockeruser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
ENV SKIP_AP_GIT_CHECK=1
RUN su -c "Tools/environment_install/install-prereqs-ubuntu.sh -y" dockeruser
RUN export PATH=$PATH:$HOME/ardupilot/Tools/autotest
RUN export PATH=/usr/lib/ccache:$PATH
RUN python -m pip install empy
........
I still am having an issue with the python path because I cannot call sim_vehicle from inside the ArduPlane directory
EDIT: got it working with: RUN export PATH=$PATH:/ardupilot/Tools/autotest
How to reproduce: Change COPTER_TAG to a new release in the docker file. For example:
ARG COPTER_TAG=Copter-4.3.6
run the command:
docker build -t ardupilot .
Output:
Expected Output: Build succesful