1 # vi: ts=4 sw=4 noet:
\r
3 #==================================================================================
\r
4 # Copyright (c) 2020 AT&T Intellectual Property.
\r
5 # Copyright (c) 2020 Nokia
\r
7 # Licensed under the Apache License, Version 2.0 (the "License");
\r
8 # you may not use this file except in compliance with the License.
\r
9 # You may obtain a copy of the License at
\r
11 # http://www.apache.org/licenses/LICENSE-2.0
\r
13 # Unless required by applicable law or agreed to in writing, software
\r
14 # distributed under the License is distributed on an "AS IS" BASIS,
\r
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 # See the License for the specific language governing permissions and
\r
17 # limitations under the License.
\r
18 #==================================================================================
\r
20 # Build the munchkin container assuming that the current working directory is the
\r
21 # top of the munchkin portion of the shared repo.
\r
23 # ---- these are global and must be set before the first from directive
\r
25 # package versions and locations for easier maintenance
\r
30 ARG PROD_URL_BASE=https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/
\r
31 ARG BETA_URL_BASE=https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/
\r
33 ARG LOG_BASE=${PROD_URL_BASE}
\r
34 ARG RMR_BASE=${BETA_URL_BASE}
\r
35 ARG FRAME_BASE=${BETA_URL_BASE}
\r
38 # -----------------------------------------------------------------------------------------------------
\r
41 RUN apt-get update \
\r
42 && apt-get install -y git cmake make g++ wget curl libcurl4-gnutls-dev libcurlpp-dev libcurlpp0
\r
45 # sadly they need to be 'touched' to pull them into each stage
\r
53 WORKDIR /playpen/down
\r
55 RUN wget --content-disposition ${LOG_BASE}/mdclog_${LOG_VER}-1_amd64.deb/download.deb \
\r
56 && wget --content-disposition ${LOG_BASE}/mdclog-dev_${LOG_VER}-1_amd64.deb/download.deb \
\r
57 && wget --content-disposition ${RMR_BASE}/rmr-dev_${RMR_VER}_amd64.deb/download.deb \
\r
58 && wget --content-disposition ${RMR_BASE}/rmr_${RMR_VER}_amd64.deb/download.deb \
\r
59 && wget --content-disposition ${FRAME_BASE}/ricxfcpp_${FRAME_VER}_amd64.deb/download.deb \
\r
60 && wget --content-disposition ${FRAME_BASE}/ricxfcpp-dev_${FRAME_VER}_amd64.deb/download.deb \
\r
65 WORKDIR /playpen/build
\r
68 # build the utility; installs into /usr/local/bin
\r
75 && make test ARGS="-V"
\r
79 #RUN mkdir /var/mgxapp
\r
80 #COPY xapp_config.json /var/mgxapp/config.json
\r
83 #CMD [ "munchkin", "-c", "/var/mgxapp/config.json" ]