-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-llserver-ecui
65 lines (47 loc) · 1.63 KB
/
Dockerfile-llserver-ecui
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
# specify the node base image with your desired version node:<version>
FROM ubuntu
ARG branch=main
ARG ssh_key_path=~/.ssh/id_github
WORKDIR /home
# Update aptitude with new repo
RUN apt-get update
# Install software
RUN apt-get install -y git
# Make ssh dir
RUN mkdir /root/.ssh/
# Copy over private key, and set permissions
# Warning! Anyone who gets their hands on this image will be able
# to retrieve this private key file from the corresponding image layer
ADD $ssh_key_path /root/.ssh/id_github
RUN echo " IdentityFile /root/.ssh/id_github" >> /etc/ssh/ssh_config
# Create known_hosts
RUN touch /root/.ssh/known_hosts
# Add bitbuckets key
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
### KVASER Driver
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y linux-headers-`uname -r`
RUN apt-get install -y cmake make
RUN apt-get install -y wget
RUN apt-get install -y python3.10-dev
RUN wget --content-disposition "https://www.kvaser.com/downloads-kvaser/?utm_source=software&utm_ean=7330130980754&utm_status=latest"
RUN tar xvzf linuxcan.tar.gz
WORKDIR /home/linuxcan/canlib
RUN make
RUN make install
RUN /usr/doc/canlib/examples/listChannels
WORKDIR /home/
# Clone the conf files into the docker container
RUN git clone [email protected]:SpaceTeam/llserver_ecui_houbolt.git
WORKDIR /home/llserver_ecui_houbolt
RUN git checkout $branch
RUN git pull
RUN git submodule init
RUN git submodule update
RUN mkdir build
WORKDIR /home/llserver_ecui_houbolt/build
RUN cmake -D NO_PYTHON=false -D NO_CANLIB=false -S ../ -B ./
RUN make -j
ENV ECUI_CONFIG_PATH=/home/config_ecui
ENTRYPOINT ./llserver_ecui_houbolt