subhash kumar singh | e63192f | 2020-12-11 14:25:11 +0530 | [diff] [blame] | 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 | |
subhash kumar singh | e363aa9 | 2021-03-26 15:53:13 +0530 | [diff] [blame^] | 19 | FROM golang:1.15 |
subhash kumar singh | e63192f | 2020-12-11 14:25:11 +0530 | [diff] [blame] | 20 | |
subhash kumar singh | e363aa9 | 2021-03-26 15:53:13 +0530 | [diff] [blame^] | 21 | ARG RMRVERSION=4.5.2 |
subhash kumar singh | e63192f | 2020-12-11 14:25:11 +0530 | [diff] [blame] | 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 |
subhash kumar singh | e63192f | 2020-12-11 14:25:11 +0530 | [diff] [blame] | 24 | RUN mkdir -p /ws |
| 25 | WORKDIR "/ws" |
| 26 | |
| 27 | COPY . /ws |
subhash kumar singh | e363aa9 | 2021-03-26 15:53:13 +0530 | [diff] [blame^] | 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 |
subhash kumar singh | e63192f | 2020-12-11 14:25:11 +0530 | [diff] [blame] | 32 | |