blob: b7d6e3ea8f92781319cc8089781dc66c17691df6 [file] [log] [blame]
subhash kumar singhe63192f2020-12-11 14:25:11 +05301# 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
subhash kumar singhe363aa92021-03-26 15:53:13 +053019FROM golang:1.15
subhash kumar singhe63192f2020-12-11 14:25:11 +053020
subhash kumar singhe363aa92021-03-26 15:53:13 +053021ARG RMRVERSION=4.5.2
subhash kumar singhe63192f2020-12-11 14:25:11 +053022RUN 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
23RUN 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
subhash kumar singhe63192f2020-12-11 14:25:11 +053024RUN mkdir -p /ws
25WORKDIR "/ws"
26
27COPY . /ws
subhash kumar singhe363aa92021-03-26 15:53:13 +053028RUN ldconfig
29RUN 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
31CMD RMR_SEED_RT=config/uta_rtg.rt ./hw-app -f config/config-file.json
subhash kumar singhe63192f2020-12-11 14:25:11 +053032