Add config and schema file for onbording
[ric-app/hw-go.git] / Dockerfile
1 #   Copyright (c) 2020 Samsung.
2 #
3 #   Licensed under the Apache License, Version 2.0 (the "License");
4 #   you may not use this file except in compliance with the License.
5 #   You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #   Unless required by applicable law or agreed to in writing, software
10 #   distributed under the License is distributed on an "AS IS" BASIS,
11 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #   See the License for the specific language governing permissions and
13 #   limitations under the License.
14
15 #----------------------------------------------------------
16 #
17 #----------------------------------------------------------
18
19 FROM golang:1.15
20
21 ARG RMRVERSION=4.5.2
22 RUN wget --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr_${RMRVERSION}_amd64.deb
23 RUN wget --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr-dev_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr-dev_${RMRVERSION}_amd64.deb
24 RUN mkdir -p /ws
25 WORKDIR "/ws"
26
27 COPY . /ws
28 RUN ldconfig
29 RUN GO111MODULE=on GO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o hw-app hwApp.go
30 #CMD RMR_SEED_RT=config/uta_rtg.rt ./hw-app -f config/test-config.json
31 CMD RMR_SEED_RT=config/uta_rtg.rt ./hw-app -f config/config-file.json
32