Howto:Building SimGear via Docker

From FlightGear wiki
Revision as of 21:30, 27 February 2020 by Hooray (talk | contribs) (reduce size by 50%)
Jump to navigation Jump to search
This article is a stub. You can help the wiki by expanding it.
Note  This builds SimGear in headless mode (aka no graphics), which is primarily useful for unit testing purposes.
FROM debian:buster-slim
Maintainer http://wiki.flightgear.org/Howto:Building_SimGear_via_Docker
RUN apt-get update  && apt-get install -y cmake git g++ libboost-dev libz-dev libcurl4-openssl-dev


RUN mkdir -p /SOURCES 
WORKDIR /SOURCES
RUN git clone git://git.code.sf.net/p/flightgear/simgear /SOURCES/simgear

RUN mkdir -p /BUILD/simgear 
WORKDIR /BUILD/simgear
RUN cmake . /SOURCES/simgear -DSIMGEAR_HEADLESS=ON -DENABLE_SOUND=OFF -DUSE_AEONWAVE=OFF -DENABLE_PKGUTIL=OFF

CMD cd /BUILD/simgear && make -j all test