參考資料:
https://github.com/COVESA/vsomeip
https://github.com/COVESA/vsomeip/wiki/vsomeip-in-10-minutes
Dockerfile
FROM ubuntu:18.04 RUN apt-get update RUN apt-get install git vim sudo build-essential make cmake libboost-all-dev net-tools python3 scapy python3-pip tcpdump -y RUN pip3 install scapy RUN git clone https://github.com/COVESA/vsomeip /vsomeip RUN cd /vsomeip && git checkout 3.1.16.1 RUN mkdir /vsomeip/build RUN cd /vsomeip/build && cmake -DENABLE_SIGNAL_HANDLING=1 -DENABLE_MULTIPLE_ROUTING_MANAGERS=1 .. && make -j2 && make install
編譯
$ sudo docker build -t someip . $ sudo docker run -it --rm -v `pwd`:/myfolder someip /bin/bash # cd /vsomeip/build/examples # make
如果要刪除該Docker Image,使用如下指令
$ sudo docker image rm someip