Skip to content

Commit 5ebb220

Browse files
WIP dockerfile
1 parent da4c17b commit 5ebb220

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

ogma-core/templates/cfs/Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM ubuntu:25.10
2+
3+
RUN apt-get update
4+
RUN apt-get install cmake gcc git
5+
6+
ENV PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin":$PATH
7+
8+
WORKDIR /root
9+
10+
# Obtain cFS
11+
RUN git clone --recursive -b v6.7.0a https://github.com/nasa/cfs.git cfs
12+
13+
WORKDIR /root/cfs
14+
15+
# Copy Copilot app with other cFS apps
16+
ADD copilot /root/cfs/apps/
17+
18+
# Copy default setup, list of CPUs and applications
19+
RUN cp cfe/cmake/Makefile.sample Makefile
20+
RUN cp -r cfe/cmake/sample_defs .
21+
22+
# Enable Ogma-generated cFS app in cFS
23+
RUN sed -i -e 's/\(SET(TGT1_APPLIST.*\))/\1 copilot)/g' sample_defs/targets.cmake
24+
RUN sed -i -e '0,/^!/s//CFE_APP, \/cf\/copilot_cfs.so, COPILOT_AppMain, COPILOT_APP, 50, 16384, 0x0, 0;\n&/' sample_defs/cpu1_cfe_es_startup.scr
25+
26+
# Compile cFS
27+
RUN make SIMULATION=native prep
28+
RUN make install

0 commit comments

Comments
 (0)