CI: Deprecate Jenkins Sonar jobs
[ci-management.git] / jjb / ric-plt-utils / Dockerfile.build
1 # vi: ts=4 sw=4 noet:\r
2 \r
3 #==================================================================================\r
4 #    Copyright (c) 2020 AT&T Intellectual Property.\r
5 #    Copyright (c) 2020 Nokia\r
6 #\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
10 #\r
11 #       http://www.apache.org/licenses/LICENSE-2.0\r
12 #\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
19 \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
22 \r
23 # ---- these are global and must be set before the first from directive\r
24 #\r
25 # package versions and locations for easier maintenance\r
26 ARG RMR_VER=4.1.4\r
27 ARG LOG_VER=0.0.4\r
28 ARG FRAME_VER=2.2.0\r
29 \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
32 \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
36 \r
37 \r
38 # -----------------------------------------------------------------------------------------------------\r
39 FROM ubuntu:18.04\r
40 \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
43 \r
44 \r
45 # sadly they need to be 'touched' to pull them into each stage\r
46 ARG RMR_VER\r
47 ARG LOG_VER\r
48 ARG FRAME_VER\r
49 ARG FRAME_BASE\r
50 ARG RMR_BASE\r
51 ARG LOG_BASE\r
52 \r
53 WORKDIR /playpen/down\r
54 \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
61         && dpkg -i *deb\r
62 \r
63 \r
64 \r
65 WORKDIR /playpen/build\r
66 COPY ./ ./\r
67 \r
68 # build the utility; installs into /usr/local/bin\r
69 #\r
70 RUN    rm -fr .build \\r
71         && mkdir .build \\r
72         && cd .build \\r
73         && cmake .. \\r
74         && make install \\r
75         && make test ARGS="-V"\r
76 \r
77 \r
78 \r
79 #RUN mkdir /var/mgxapp\r
80 #COPY xapp_config.json /var/mgxapp/config.json\r
81 \r
82 #WORKDIR /playpen\r
83 #CMD [ "munchkin", "-c", "/var/mgxapp/config.json" ]