-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (29 loc) · 1.5 KB
/
Copy pathDockerfile
File metadata and controls
47 lines (29 loc) · 1.5 KB
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
FROM ubuntu:18.04
USER root
# Preliminary
RUN apt update && apt install curl git python3 python3-pip imagemagick -y
# Install Python 3 packages
RUN python3 -m pip install -U setuptools
RUN python3 -m pip install pyyaml "typing-extensions<4" Pillow==8.3.1 scikit-image packaging importlib-metadata "tqdm<4.65" numpy==1.18.1 matplotlib==3.3.1 casadi==3.5.1 scipy==1.3.3 scikit-learn==0.23.1 quadprog==0.1.9 "pandas<2"
# Clone/Copy required packages
RUN mkdir -p /repo/simulation
WORKDIR /repo/simulation
RUN git clone https://github.com/CTU-IIG/global_racetrajectory_optimization -b package
RUN git clone https://github.com/CTU-IIG/trajectory_planning_helpers && cd trajectory_planning_helpers && git checkout 71d8a84
RUN git clone https://github.com/CTU-IIG/ng_trajectory
COPY simulation/Matryoshka.jl /repo/simulation/Matryoshka.jl
WORKDIR /
# Install the packges
## trajectory_planning_helpers
RUN cd /repo/simulation/trajectory_planning_helpers && python3 setup.py develop -N
## global_racetrajectory_optimization
RUN cd /repo/simulation/global_racetrajectory_optimization && python3 setup.py develop
## ng_trajectory
RUN cd /repo/simulation/ng_trajectory && python3 setup.py develop
# Install Julia
RUN curl -fsSL https://install.julialang.org | sh -s -- -y --add-to-path true --default-channel 1.9.2
## Obtain all dependencies for Julia
RUN /root/.juliaup/bin/julia --project=/repo/simulation/Matryoshka.jl -e 'using Pkg; Pkg.instantiate()'
# Complete PATH and PYTHONPATH
ENV PATH="${PATH}:/root/.local/bin"
# DONE #