-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.athrill
64 lines (56 loc) · 1.9 KB
/
Dockerfile.athrill
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
63
64
#FROM ubuntu:20.04 as athrill-device-v850-builder
FROM ros:foxy as athrill-device-v850-builder
ARG DEBIAN_FRONTEND=noninteractive
ENV CMAKE_INSTALL_DIR /local
ENV PATH $PATH:/grpc/cmake/build
ENV PATH $PATH:/grpc/cmake/build/third_party/protobuf
ENV PATH $PATH:$CMAKE_INSTALL_DIR/bin
RUN apt-get update && apt-get install -y \
git \
build-essential \
wget \
gcc \
g++ \
ruby \
vim \
libssl-dev \
make \
autoconf \
automake \
pkg-config \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN wget -q -O cmake-linux.sh https://github.com/Kitware/CMake/releases/download/v3.17.0/cmake-3.17.0-Linux-x86_64.sh && \
mkdir -p $CMAKE_INSTALL_DIR && \
sh cmake-linux.sh --skip-license --prefix=$CMAKE_INSTALL_DIR && \
rm cmake-linux.sh
# Install grpc
RUN mkdir -p /root/grpc-build && \
cd /root/grpc-build && \
git clone --recurse-submodules -b v1.35.0 https://github.com/grpc/grpc.git && \
cd grpc && \
git submodule update --init && \
mkdir -p cmake/build && \
cd cmake/build && \
cmake ../.. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/grpc -DgRPC_BUILD_CSHARP_EXT=OFF -DOPENSSL_ROOT_DIR=/usr/local/boringssl -DCMAKE_PREFIX_PATH="/usr/local/cares;/usr/local/protobuf;/usr/local/zlib" && \
make -j4 && \
make install && \
cd /root && \
rm -rf grpc-build
ENV PATH /usr/local/grpc/bin:${PATH}
# Install grpc for Ruby
RUN gem install grpc grpc-tools
# Install athrill development environment
RUN mkdir /root/workspace
WORKDIR /root/workspace
RUN wget https://github.com/toppers/athrill-gcc-v850e2m/releases/download/v1.1/athrill-gcc-package.tar.gz && \
tar xzf athrill-gcc-package.tar.gz && \
rm -f athrill-gcc-package.tar.gz && \
cd athrill-gcc-package && \
tar xzf athrill-gcc.tar.gz && \
rm -f *.tar.gz
ENV PATH /root/workspace/athrill-gcc-package/usr/local/athrill-gcc/bin/:${PATH}
ENV PATH /root/workspace/athrill/bin/linux:${PATH}
WORKDIR /root/workspace
COPY install-athrill.bash .