Skip to content

Commit

Permalink
adding dockerfile with cfs & onair dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
williamzhang0306 committed Jul 12, 2024
1 parent 642be16 commit 08091bc
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*

14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 08091bc

Please sign in to comment.