summaryrefslogtreecommitdiffstats
path: root/Dockerfile.dev
blob: bcd75746f22af61cdcaf49196e950905aa1ca97b (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM ubuntu:focal

WORKDIR /hicn-build

RUN apt-get update

# Do not prompt
ENV DEBIAN_FRONTEND=noninteractive

# Prevent vpp to set sysctl
ENV VPP_INSTALL_SKIP_SYSCTL=1

# Add packagecloud repo
RUN apt-get install -y git curl

# Get versions from versions.cmake
ARG VERSIONS_PATH=/tmp/versions.cmake
COPY versions.cmake ${VERSIONS_PATH}

RUN export VPP_VERSION=$(cat ${VERSIONS_PATH} | grep VPP_DEFAULT_VERSION | cut -d ' ' -f 2 | tr -d '"' | grep -Po '\d\d.\d\d') && echo ${VPP_VERSION}

# Install devel packages
RUN apt update
SHELL ["/bin/bash", "-c"]
RUN export VPP_VERSION=$(cat ${VERSIONS_PATH} | grep VPP_DEFAULT_VERSION | cut -d ' ' -f 2 | tr -d '"' | grep -Po '\d\d.\d\d') && \
  curl -s https://packagecloud.io/install/repositories/fdio/${VPP_VERSION//./}/script.deb.sh  | bash && \
  apt-get install -y                          \
  cmake                                       \
  ninja-build                                 \
  unzip                                       \
  libconfig-dev                               \
  python3-ply                                 \
  libconfig++-dev                             \
  build-essential                             \
  vpp-dev                                     \
  libvppinfra-dev                             \
  vpp-plugin-core                             \
  vpp                                         \
  libvppinfra                                 \
  libevent-dev                                \
  libssl-dev                                  \
  make                                        \
  sudo                                        \
  libcurl4-openssl-dev                        \
  iproute2                                    \
  iperf3                                      \
  iputils-ping                                \
  tcpdump                                     \
  gdb                                         \
  libasio-dev --no-install-recommends

# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=