blob: b7d6e3ea8f92781319cc8089781dc66c17691df6 [file] [log] [blame]
# Copyright (c) 2020 Samsung.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#----------------------------------------------------------
#
#----------------------------------------------------------
FROM golang:1.15
ARG RMRVERSION=4.5.2
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
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
RUN mkdir -p /ws
WORKDIR "/ws"
COPY . /ws
RUN ldconfig
RUN GO111MODULE=on GO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o hw-app hwApp.go
#CMD RMR_SEED_RT=config/uta_rtg.rt ./hw-app -f config/test-config.json
CMD RMR_SEED_RT=config/uta_rtg.rt ./hw-app -f config/config-file.json