Jakub Grajciar | 7c5c40d | 2017-08-30 10:13:25 +0200 | [diff] [blame] | 1 | FROM ubuntu:xenial |
2 | |||||
3 | RUN apt-get update && \ | ||||
Jakub Grajciar | e74c04f | 2021-01-04 11:28:33 +0100 | [diff] [blame] | 4 | apt-get install -y git build-essential autoconf pkg-config libtool sudo |
Jakub Grajciar | 7c5c40d | 2017-08-30 10:13:25 +0200 | [diff] [blame] | 5 | RUN rm -rf /var/lib/apt/lists/* |
6 | |||||
Jakub Grajciar | ecfa2aa | 2018-03-26 11:26:34 +0200 | [diff] [blame] | 7 | RUN mkdir /libmemif |
8 | ADD . /libmemif | ||||
Jakub Grajciar | 7c5c40d | 2017-08-30 10:13:25 +0200 | [diff] [blame] | 9 | WORKDIR /libmemif |
Jakub Grajciar | ecfa2aa | 2018-03-26 11:26:34 +0200 | [diff] [blame] | 10 | |
Jakub Grajciar | e74c04f | 2021-01-04 11:28:33 +0100 | [diff] [blame] | 11 | RUN mkdir build |
12 | RUN cmake .. | ||||
13 | WORKDIR /libmemif/build | ||||
Jakub Grajciar | 7c5c40d | 2017-08-30 10:13:25 +0200 | [diff] [blame] | 14 | RUN make |
Jakub Grajciar | 7c5c40d | 2017-08-30 10:13:25 +0200 | [diff] [blame] | 15 | |
Jakub Grajciar | ecfa2aa | 2018-03-26 11:26:34 +0200 | [diff] [blame] | 16 | RUN mkdir /run/vpp |
Jakub Grajciar | 7c5c40d | 2017-08-30 10:13:25 +0200 | [diff] [blame] | 17 | |
18 | RUN ulimit -c unlimited | ||||
19 | |||||
Jakub Grajciar | e74c04f | 2021-01-04 11:28:33 +0100 | [diff] [blame] | 20 | CMD ./examples/icmp_responder |