diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..b53110a93 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,44 @@ +FROM ubuntu:20.04 + +ARG DEBIAN_FRONTEND=noninteractive +ENV TZ=America/New_York + +RUN \ + apt-get update && \ + apt-get -y upgrade + +# cFS dependencies +RUN \ + apt-get install sudo && \ + apt-get install -y build-essential && \ + apt-get install -y gcc && \ + apt-get install -y git && \ + apt-get install -y cmake && \ + apt-get install -y xterm && \ + apt-get install -y python2 && \ + apt-get install -y lcov && \ + apt-get install -y xxd && \ + apt-get install -y zlib1g-dev + +# OnAIR dependencies + +RUN \ + apt-get install -y python3.9 && \ + apt-get install -y python3.9-dev && \ + apt-get install -y python3-pip + +RUN pip install \ + coverage==6.5.0 \ + numpy==1.23.4 \ + pytest==7.2.0 \ + pytest-mock==3.10.0 \ + pytest-randomly==3.12.0 \ + redis==4.6.0 + +# New packages go here to prevent re-running instructions when re buildingCOPY apps/onair_app/onair/requirements_pip.txt requirements.txt + +RUN \ + apt-get update && \ + apt-get -y upgrade && \ + rm -rf /var/lib/apt/lists/* + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..8da703761 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' + +services: + + cfs-onair: + container_name: cfs-onair + volumes: + - "./:/cFS-fsw" + working_dir: "/cFS-fsw" + build: + context: . + stdin_open: true + tty: true + privileged: true \ No newline at end of file