-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.5v5-light
62 lines (52 loc) · 1.38 KB
/
Dockerfile.5v5-light
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
FROM ubuntu:18.04 as cacher
# Set working directory
RUN mkdir /vsss_ws
WORKDIR /vsss_ws
# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
g++ \
cmake \
git \
qt5-default \
libqt5opengl5-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libprotobuf-dev \
protobuf-compiler \
libode-dev \
libboost-dev \
sudo && \
apt-get clean && \
cd /tmp && \
git clone https://github.com/jpfeltracco/vartypes.git &&\
cd vartypes && \
mkdir build && cd build && \
cmake .. && make && sudo make install
FROM cacher as builder
# Install FIRASim and VSSReferee
RUN cd /vsss_ws && \
git clone https://github.com/VSSSLeague/FIRASim.git && \
cd FIRASim && \
git checkout master && \
mkdir build && \
cd build && \
cmake .. && \
make
RUN cd /vsss_ws && \
git clone https://github.com/VSSSLeague/VSSReferee.git && \
cd VSSReferee && \
git checkout CBFRS && \
cd /vsss_ws/VSSReferee && \
mkdir build && \
cd build && \
qmake .. && \
make
FROM builder as runner
# Set enviroment variables
ENV QT_X11_NO_MITSHM=1
RUN mkdir -m 700 /tmp/runtime-root
ENV XDG_RUNTIME_DIR=/tmp/runtime-root
COPY constants.json /vsss_ws/VSSReferee/src/constants/
# Run FIRASim and VSSReferee
CMD /vsss_ws/FIRASim/bin/FIRASim -H --5v5 & /vsss_ws/VSSReferee/bin/VSSReferee --5v5 --record false