aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 1354f5c4723bc97d8232eff5eae742e0c71fde38 (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
FROM ubuntu:18.04

# Layer0: Prepare sweetcomb environement by installing sysrepo, netopeer2 & vpp
# Layer1: Install vpp
# Layer2: Install sweetcomb

#Layer 0
RUN mkdir -p /opt/dev && apt-get update && apt-get install -y build-essential sudo
COPY . /opt/dev
WORKDIR /opt/dev
RUN make install-dep && make install-dep-extra
RUN rm -rf /opt/dev/*

#Layer1
RUN apt-get install -y \
    #build utils
    sudo curl \
    #test utils
    inetutils-ping \
    && curl -s https://packagecloud.io/install/repositories/fdio/1904/script.deb.sh | sudo bash \
    && apt-get -y --force-yes install vpp libvppinfra* vpp-plugin-* vpp-dev

#Layer2
COPY . /root/src/sweetcomb
WORKDIR /root/src/sweetcomb

RUN make install-dep && make build-scvpp && make build-plugins