-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
62 lines (56 loc) · 2.61 KB
/
Dockerfile
File metadata and controls
62 lines (56 loc) · 2.61 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# SPDX-License-Identifier: Apache-2.0
#
# Copyright 2020 Hyperwarp Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM ubuntu:focal
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get upgrade -y \
&& apt-get -y install --no-install-recommends build-essential pkg-config zip unzip cmake autoconf automake libtool curl make g++ ca-certificates git gdb
# Install FoundationDB
RUN curl -L https://www.foundationdb.org/downloads/6.2.27/ubuntu/installers/foundationdb-clients_6.2.27-1_amd64.deb -o /tmp/foundationdb-clients_6.2.27-1_amd64.deb \
&& curl -L https://www.foundationdb.org/downloads/6.2.27/ubuntu/installers/foundationdb-server_6.2.27-1_amd64.deb -o /tmp/foundationdb-server_6.2.27-1_amd64.deb \
&& apt install /tmp/foundationdb-clients_6.2.27-1_amd64.deb /tmp/foundationdb-server_6.2.27-1_amd64.deb -y \
&& rm -rf /tmp/foundationdb-*.deb
# Install protobuf
RUN curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.13.0/protobuf-cpp-3.13.0.tar.gz -o /tmp/protobuf-cpp-3.13.0.tar.gz \
&& cd /tmp \
&& tar xzf /tmp/protobuf-cpp-3.13.0.tar.gz \
&& cd /tmp/protobuf-3.13.0 \
&& ./configure \
&& make \
&& make check \
&& make install \
&& ldconfig \
&& rm -rf /tmp/protobuf-3.13.0
# Install protobuf-c
RUN curl -L https://github.com/protobuf-c/protobuf-c/releases/download/v1.3.3/protobuf-c-1.3.3.tar.gz -o /tmp/protobuf-c-1.3.3.tar.gz \
&& cd /tmp \
&& tar xzf /tmp/protobuf-c-1.3.3.tar.gz \
&& cd /tmp/protobuf-c-1.3.3 \
&& ./configure \
&& make \
&& make install \
&& ldconfig \
&& rm -rf /tmp/protobuf-c-1.3.3
RUN git clone -b v20.10 --depth 1 https://github.com/spdk/spdk /tmp/spdk \
&& cd /tmp/spdk \
&& git submodule update --init \
&& ./scripts/pkgdep.sh --all \
&& ./configure --with-rdma --with-shared \
&& make \
&& make install \
&& cd ./isa-l && make -f Makefile.unx && make -f Makefile.unx install && cd .. \
&& echo "/tmp/spdk/dpdk/build-tmp/lib" > /etc/ld.so.conf.d/dpdk.conf \
&& echo "/tmp/spdk/dpdk/build-tmp/drivers" >> /etc/ld.so.conf.d/dpdk.conf \
&& ldconfig -v