-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
108 lines (92 loc) · 2.75 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# syntax=docker/dockerfile:1
FROM mcr.microsoft.com/devcontainers/base:bookworm
ARG EVEREST_CMAKE_PATH=/usr/lib/cmake/everest-cmake
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
# basic command line tools
git \
curl \
rsync \
# build tools
ninja-build \
make \
cmake \
# compilers
binutils \
gcc \
g++ \
# compiler tools
clang-tidy \
clangd \
ccache \
# development tools
gdb \
valgrind \
# python3 support
python3-pip \
# required for testing
lcov
# additional packages
RUN apt-get install --no-install-recommends -y \
# required by some everest libraries
libboost-all-dev \
libcap-dev \
# required by libocpp
libsqlite3-dev \
libssl-dev \
# required by everest-framework
nodejs \
libnode-dev \
npm \
# required by packet sniffer module
pkg-config \
libpcap-dev \
# required by RiseV2G
maven \
# required by pybind11
python3-dev \
# required for certificate generation
openssl \
# required for cryptography
libffi-dev \
rust-all \
# required by gcovr
libxml2-dev \
libxslt1-dev
# clean up apt
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN rm -f /usr/lib/python3.11/EXTERNALLY-MANAGED
RUN python3 -m pip install \
environs>=9.5.0 \
pydantic==1.* \
psutil>=5.9.1 \
cryptography>=3.4.6 \
aiofile>=3.7.4 \
py4j>=0.10.9.5 \
netifaces>=0.11.0 \
python-dateutil>=2.8.2 \
gcovr==5.0
# install ev-cli
RUN python3 -m pip install git+https://github.com/EVerest/everest-utils@4a5ce956722929325cef3c2d73a8919c6d2e4013#subdirectory=ev-dev-tools
# install everest-testing
RUN python3 -m pip install git+https://github.com/EVerest/everest-utils@v0.1.6#subdirectory=everest-testing
# install edm
RUN python3 -m pip install git+https://github.com/EVerest/everest-dev-environment@v0.5.5#subdirectory=dependency_manager
# install everest-cmake
RUN git clone https://github.com/EVerest/everest-cmake.git $EVEREST_CMAKE_PATH
RUN ( \
cd $EVEREST_CMAKE_PATH \
git checkout 329f8db \
rm -r .git \
)
ENV CMAKE_GENERATOR=Ninja
ENV CMAKE_EXPORT_COMPILE_COMMANDS=ON
WORKDIR /home
RUN git clone https://github.com/US-JOET/libocpp.git \
&& cd libocpp \
&& git switch charin-demo \
&& cmake -B build -G Ninja -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="./dist" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
&& ninja -j$(nproc) -C build install
COPY --chmod=755 ./demo-runner.sh ./
CMD [ "bash", "./demo-runner.sh" ]