File tree Expand file tree Collapse file tree 3 files changed +27
-24
lines changed Expand file tree Collapse file tree 3 files changed +27
-24
lines changed Original file line number Diff line number Diff line change @@ -64,35 +64,37 @@ RUN yum update -y && \
64
64
yum clean all
65
65
66
66
# Build glog from source to get up-to-date version that can be found without FindGlog.cmake
67
- RUN git clone https://github.com/google/glog.git && \
68
- cd glog && \
67
+ RUN git clone https://github.com/google/glog.git /tmp/glog && \
68
+ cd /tmp/ glog && \
69
69
mkdir build && \
70
70
cd build && \
71
71
cmake -DBUILD_SHARED_LIBS=OFF .. && \
72
- make && \
73
- make install && \
74
- cd ../.. && \
75
- rm -rf glog
72
+ cmake --build . && \
73
+ cmake --install . && \
74
+ rm -rf /tmp/glog
76
75
77
76
# Build util_caching
78
- RUN git clone https://github.com/KIT-MRT/util_caching.git && \
79
- cd util_caching && \
77
+ RUN git clone https://github.com/KIT-MRT/util_caching.git /tmp/util_caching && \
78
+ cd /tmp/ util_caching && \
80
79
mkdir build && \
81
80
cd build && \
82
81
cmake .. && \
83
- make && \
84
- make install && \
85
- cd ../.. && \
86
- rm -rf util_caching
82
+ cmake --build . && \
83
+ cmake --install . && \
84
+ rm -rf /tmp/util_caching
87
85
88
86
# Build arbitration_graphs
89
- RUN git clone https://github.com/KIT-MRT/arbitration_graphs.git && \
90
- cd arbitration_graphs && \
91
- mkdir build && \
92
- cd build && \
93
- cmake -DBUILD_GUI=false .. && \
94
- make && \
95
- make install && \
96
- cd ../.. && \
97
- rm -rf arbitration_graphs
87
+ COPY cmake /tmp/arbitration_graphs/cmake
88
+ COPY CMakeLists.txt /tmp/arbitration_graphs/
89
+ COPY include /tmp/arbitration_graphs/include
90
+ COPY LICENSE /tmp/arbitration_graphs/
91
+ COPY README.md /tmp/arbitration_graphs/
92
+ COPY version /tmp/arbitration_graphs/
93
+
94
+ WORKDIR /tmp/arbitration_graphs/build
95
+
96
+ RUN cmake -DBUILD_GUI=false .. && \
97
+ cmake --build . && \
98
+ cmake --install . && \
99
+ rm -rf /tmp/arbitration_graphs
98
100
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ services:
10
10
11
11
wheel_builder :
12
12
build :
13
- context : .
13
+ context : ..
14
+ dockerfile : python_bindings/Dockerfile
14
15
target : wheel_builder
15
16
image : arbitration_graphs_wheel_builder
16
17
Original file line number Diff line number Diff line change 1
1
#! /bin/env bash
2
2
3
- SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd)
3
+ SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd)
4
4
cd $SCRIPT_DIR /..
5
5
6
- docker compose build wheel_builder
6
+ docker compose build --pull wheel_builder
7
7
8
8
# Temporary replace the symlinked version with a copy as the link can not be resolved inside the docker container
9
9
rm version
You can’t perform that action at this time.
0 commit comments