This is a first attempt at a Docker configuration for a build of the Apollo-11 sources using the VirtualAgc tools. To use it, you'll need Docker (on Linux, Mac or Windows). Then do: $ docker build -t apollo-11 . It first clones and builds the VirtualAgc tools and mission code. Then it compiles the Apollo-11 sources (from the current directory) and compares the generated rope binaries against those in the VirtualAgc build. This is based on an Ubuntu 16.04 base image. Note that the VirtualAgc tools are sensitive to spaces/tabs, so assembly errors may result from using a different formatting standard.
27 lines
679 B
Docker
27 lines
679 B
Docker
FROM ubuntu:16.04
|
|
MAINTAINER Jim Lawton
|
|
|
|
RUN apt-get -y update
|
|
RUN apt-get -y upgrade
|
|
|
|
RUN apt-get -y install git
|
|
RUN apt-get -y install build-essential
|
|
RUN apt-get -y install make
|
|
RUN apt-get -y install g++
|
|
RUN apt-get -y install python
|
|
RUN apt-get -y install libncurses5
|
|
RUN apt-get -y install libncurses5-dev
|
|
|
|
RUN git clone https://github.com/rburkey2005/virtualagc
|
|
|
|
# Use this to build a copy of the current directory.
|
|
RUN mkdir /apollo-11
|
|
COPY . /apollo-11
|
|
|
|
# Build virtulagc tools.
|
|
RUN cd virtualagc && make clean
|
|
RUN cd virtualagc && make yaLEMAP yaAGC yaAGS yaYUL missions
|
|
|
|
# Use virtualagc to build Apollo-11 source.
|
|
RUN cd apollo-11 && VIRTUALAGC=/virtualagc make all
|