xt800d | c5fa07b | 2019-08-13 16:51:10 -0400 | [diff] [blame] | 1 | #/***************************************************************************** |
| 2 | # * |
| 3 | # Copyright 2019 AT&T Intellectual Property * |
| 4 | # Copyright 2019 Nokia * |
| 5 | # * |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); * |
| 7 | # you may not use this file except in compliance with the License. * |
| 8 | # You may obtain a copy of the License at * |
| 9 | # * |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 * |
| 11 | # * |
| 12 | # Unless required by applicable law or agreed to in writing, software * |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, * |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * |
| 15 | # See the License for the specific language governing permissions and * |
| 16 | # limitations under the License. * |
| 17 | # * |
| 18 | #******************************************************************************/ |
| 19 | |
| 20 | FROM ubuntu:16.04 |
| 21 | |
| 22 | # location in the container |
| 23 | ENV E2SIM_DIR /home/e2sim |
| 24 | |
| 25 | # Install necessary packages |
| 26 | RUN apt-get update \ |
| 27 | && apt-get install -y \ |
| 28 | build-essential \ |
| 29 | git \ |
| 30 | cmake \ |
| 31 | libsctp-dev \ |
| 32 | lksctp-tools \ |
| 33 | autoconf \ |
| 34 | automake \ |
| 35 | libtool \ |
| 36 | bison \ |
| 37 | flex \ |
| 38 | libboost-all-dev \ |
| 39 | && apt-get clean |
| 40 | |
| 41 | # Copy E2Sim sources into the container |
| 42 | COPY ./ ${E2SIM_DIR} |
| 43 | WORKDIR ${E2SIM_DIR} |
| 44 | |
| 45 | #------------- Build E2SIM ----------------------- |
| 46 | RUN ./build_e2sim --clean |
| 47 | RUN ./build_e2sim |