1 # Copyright (c) 2019 AT&T Intellectual Property.
2 # Copyright (c) 2019 Nokia.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 # This source code is part of the near-RT RIC (RAN Intelligent Controller)
18 # platform project (RICP).
23 # Install redis tools & golang & git
24 RUN apt-get update && \
25 apt install -y redis-tools && \
26 apt install -y git && \
27 apt install -y wget && \
28 wget https://dl.google.com/go/go1.15.6.linux-amd64.tar.gz && \
29 tar -xvf go1.15.6.linux-amd64.tar.gz && \
34 COPY ./testapplication ./testapplication
36 # Install go testapplication
37 RUN export GOROOT=/usr/local/go && \
38 export GOPATH=$HOME/Projects/Proj1 && \
39 export PATH=$GOPATH/bin:$GOROOT/bin:$PATH && \
40 go get github.com/go-redis/redis && \
41 go build /testapplication/go/testapp.go
43 # Keep the container alive
44 ENTRYPOINT ["tail", "-f", "/dev/null"]