29 lines
1.3 KiB
Docker
29 lines
1.3 KiB
Docker
FROM px4io/px4-dev-simulation-focal
|
|
|
|
COPY --link --from=git.spirirobotics.com/spiri/gazebo-resources:latest /models /usr/share/gazebo-11/models/
|
|
COPY --link --from=git.spirirobotics.com/spiri/gazebo-resources:latest /worlds /usr/share/gazebo-11/worlds/
|
|
COPY --link --from=git.spirirobotics.com/spiri/gazebo-resources:latest /plugins /usr/lib/x86_64-linux-gnu/gazebo-11/plugins
|
|
|
|
RUN apt-get update && apt-get upgrade --yes
|
|
|
|
#Install base packages for distrobox
|
|
# RUN apt-get install --yes bc bzip2 chpasswd curl diff find findmnt gpg hostname less lsof man mount passwd pigz pinentry ping ps rsync script ssh sudo time tree umount unzip useradd wc wget xauth zip
|
|
|
|
WORKDIR /opt/spiri-sdk
|
|
|
|
RUN git clone --depth 1 -b v1.15.0-beta1 https://github.com/PX4/PX4-Autopilot.git --recursive
|
|
WORKDIR /opt/spiri-sdk/PX4-Autopilot/
|
|
RUN DONT_RUN=1 make px4_sitl gazebo-classic
|
|
|
|
RUN apt-get install --yes virtualbox-guest-dkms virtualbox-guest-utils
|
|
|
|
#This should be the first real user created and the `users` group on most linux distros
|
|
RUN chown -R 1000:100 /opt/spiri-sdk
|
|
#Install our desktop environment last
|
|
RUN apt-get install --yes --no-install-recommends lxqt
|
|
|
|
RUN useradd -m -s /bin/bash spiri && echo 'spiri:spiri-friend' | chpasswd
|
|
|
|
# Optional: Add spiri to sudo group if needed
|
|
RUN usermod -aG sudo spiri
|