summaryrefslogtreecommitdiff
path: root/tools/sppc/build/ubuntu/spp/Dockerfile.latest
blob: a1ffc80de9298b60c5eceb674980f7c71adb7fc6 (plain)
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
FROM yasufum/spp-base:latest

ARG rte_sdk
ARG rte_target
ARG home_dir
ARG dpdk_repo
ARG dpdk_branch
ARG spp_repo
ARG spp_branch
ARG spp_dir

ENV http_proxy ${http_proxy}
ENV https_proxy ${https_proxy}
ENV no_proxy ${no_proxy}
ENV RTE_SDK ${rte_sdk}
ENV RTE_TARGET ${rte_target}
ENV SPP_DIR ${spp_dir}
ENV PATH ${rte_sdk}/${rte_target}/app:${PATH}
ENV PATH ${home_dir}/${spp_dir}/src/primary/${rte_target}/:${PATH}
ENV PATH ${home_dir}/${spp_dir}/src/nfv/${rte_target}/:${PATH}
ENV PATH ${home_dir}/${spp_dir}/src/vf/${rte_target}/:${PATH}
ENV PATH ${home_dir}/${spp_dir}/src/vm/${rte_target}/:${PATH}
ENV DEBIAN_FRONTEND noninteractive

WORKDIR $home_dir
RUN git clone ${dpdk_branch} ${dpdk_repo}
RUN git clone ${spp_branch} ${spp_repo}

# Compile DPDK and SPP
WORKDIR ${rte_sdk}
RUN make -j install T=${rte_target}

WORKDIR ${home_dir}/${spp_dir}
RUN make -j

# Set working directory when container is launched
WORKDIR ${home_dir}
ADD env.sh ${home_dir}/env.sh
RUN echo "source ${home_dir}/env.sh" >> ${home_dir}/.bashrc