Ron Shacham | 0eba05c | 2020-05-08 15:13:19 -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 | FROM e2sim_base |
| 20 | |
| 21 | # ------------ COPY E2SIM codes ------------------ |
| 22 | COPY ./ ${E2SIM_DIR} |
| 23 | WORKDIR ${E2SIM_DIR} |
| 24 | |
| 25 | # ensure an empty rt is there if none is mounted at spinup |
| 26 | COPY docker/empty.rt /usr/local/route/local.rt |
| 27 | |
| 28 | #------------- Build E2SIM ----------------------- |
| 29 | RUN ./build_e2sim --clean |
| 30 | RUN ./build_e2sim |
| 31 | |
| 32 | #-------------- Configure rmr ------------------------- |
| 33 | ENV RMR_SEED_RT=/usr/local/route/local.rt |
| 34 | #export RMR_SEED_RT=$HOME/global_rmr_files/global_rmr_routes.rt |
| 35 | |
| 36 | ENV RMR_RTG_SVC=localhost:9990 |
| 37 | ENV E2TERM_RMR_RCV_PORT=48886 |
| 38 | ENV DEMO_SENDER_PTO=1 |
| 39 | ENV DEMO_MAX_PAYLOAD_BYTES=240 |
| 40 | |
| 41 | # --------------- Run E2Termination --------------------- |
| 42 | CMD ./build/e2sim |