add some tests of git and cloning
This commit is contained in:
parent
2ff80eb759
commit
ccdff72b5e
1 changed files with 6 additions and 2 deletions
|
@ -6,8 +6,12 @@ RUN apt-get -y install apt-utils gcc \
|
|||
fakeroot dbus base whiptail hexedit \
|
||||
patch wamerican ucf manpages \
|
||||
file luajit make lua50 dialog curl \
|
||||
less cowsay netcat-openbsd
|
||||
less cowsay netcat-openbsd git
|
||||
RUN useradd -m user && echo "user:password" | chpasswd
|
||||
|
||||
RUN cd /home/user && git clone --depth=1 https://github.com/ArduPilot/ardupilot
|
||||
RUN cd /home/user && chown -R user:user ./ardupilot
|
||||
|
||||
COPY --chown=user:user ./examples /home/user/examples
|
||||
RUN chmod -R +x /home/user/examples/lua
|
||||
# We set WORKDIR, as this gets extracted by Webvm to be used as the cwd. This is optional.
|
||||
|
@ -15,4 +19,4 @@ WORKDIR /home/user/
|
|||
# We set env, as this gets extracted by Webvm. This is optional.
|
||||
ENV HOME="/home/user" TERM="xterm" USER="user" SHELL="/bin/bash" EDITOR="vim" LANG="en_US.UTF-8" LC_ALL="C"
|
||||
RUN echo 'root:password' | chpasswd
|
||||
CMD [ "/bin/bash" ]
|
||||
CMD [ "/bin/bash", "whoami" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue