-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (19 loc) · 1.17 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
# Copyright (C) 2023 Zaitra s.r.o <info@zaitra.io>
# Zaitra s.r.o - All rights reserved.
#
# This source code is protected under international copyright law. All rights
# reserved and protected by the copyright holders.
# This file is confidential and only available to authorized individuals with the
# permission of the copyright holders. If you encounter this file and do not have
# permission, please contact the copyright holders and delete this file.
FROM --platform=amd64 ubuntu:18.04
ENV LD_LIBRARY_PATH="/home/libcsp/build:${PATH}"
ENV PYTHONPATH="/home/libcsp/build:${PATH}"
RUN apt-get update -y && apt-get install -y python3.7 python3.7-dev python3.7-venv python3-pip vim git gcc g++ pkg-config libsocketcan-dev libzmq3-dev can-utils curl tmux
RUN cd /home && git clone https://github.com/libcsp/libcsp.git && cd libcsp && git checkout libcsp-1
RUN mkdir -p /home/simple-client-server
COPY . /home/simple-client-server
WORKDIR /home/simple-client-server
RUN cp /home/simple-client-server/*.patch /home/libcsp
RUN cd /home/libcsp && patch examples/buildall.py buildall.patch && patch waf waf.patch && patch wscript wscript.patch
RUN cd /home/libcsp && python3.7 examples/buildall.py