-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (48 loc) · 1.46 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
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
FROM ubuntu:22.04
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt-get update && apt-get install -y apt-utils
# config dependencies install
ARG DEBIAN_FRONTEND=noninteractive
# install dependencies
# THIS WILL REVERT EVERYTHING TO PYTHON3
RUN apt-get update && apt-get install -y \
apt-utils \
autoconf \
automake \
libtool \
curl \
make \
g++ \
wget \
unzip \
maven \
git \
build-essential \
cmake \
python3-pip \
python3-yaml \
software-properties-common
# install acados
RUN git clone --branch v0.1.9 https://github.com/acados/acados --recursive
WORKDIR /acados
RUN mkdir build && cd build
WORKDIR /acados/build
RUN cmake -DACADOS_WITH_QPOASES=ON -DACADOS_SILENT=ON ..
RUN make -j4 install
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/acados/lib"
ENV ACADOS_SOURCE_DIR="/acados"
RUN pip3 install -e /acados/interfaces/acados_template
WORKDIR /acados/bin
RUN wget -qq https://github.com/acados/tera_renderer/releases/download/v0.0.34/t_renderer-v0.0.34-linux && \
mv t_renderer-v0.0.34-linux t_renderer && \
chmod +x /acados/bin/t_renderer
# install soeampc package dependencies
COPY ./soeampc/requirements.txt /soeampc/soeampc/requirements.txt
RUN pip3 install -r /soeampc/soeampc/requirements.txt
# install example dependencies
COPY ./examples/requirements.txt /soeampc/examples/requirements.txt
RUN pip3 install -r /soeampc/examples/requirements.txt
COPY . /soeampc
WORKDIR /soeampc
# docker build -t soeampc
# docker run -it -v $(pwd):/soeampc