3 #==================================================================================
4 # Copyright (c) 2019 AT&T Intellectual Property.
5 # Copyright (c) 2019 Nokia
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #==================================================================================
21 # Mnemonic: compile.sh
22 # Abstract: Compiles the source of Subscription Manager service and the two platform component stubs
27 git clone "https://gerrit.o-ran-sc.org/r/ric-plt/lib/rmr"
28 echo "START COMPILING RMR"
38 git clone "https://gerrit.o-ran-sc.org/r/com/log"
39 echo "START COMPILING LOG"
47 echo "DOWNLOAD GO DEPENDENCIES"
52 echo "START COMPILING COMPONENTS"
53 go build -o /opt/bin/submgr ./cmd/submgr.go
54 go build -o /opt/test/rco/rco ./test/rco/rco.go
55 go build -o /opt/test/e2t/e2t ./test/e2t/e2t.go
58 mkdir -p /opt/build/container/usr/local /opt/test/e2t/container/usr/local /opt/test/rco/container/usr/local
59 cp -Rf /usr/local/lib /usr/local/include /opt/build/container/usr/local/
60 cp -Rf /usr/local/lib /usr/local/include /opt/test/e2t/container/usr/local/
61 cp -Rf /usr/local/lib /usr/local/include /opt/test/rco/container/usr/local/
62 cp bin/submgr config/submgr.yaml /opt/build/container/
65 rm -Rf /opt/rmr /opt/log /opt/go.sum