X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docker%2FDockerfile.testapp;h=b15c77201ed359d990b5488f82d13483ff3b9045;hb=refs%2Fchanges%2F40%2F6240%2F1;hp=5e1b9980d171771551e3f2eba63541c62fc90fb7;hpb=22edf30ca0ef3ffca2fdb5a44308d828494eee7b;p=ric-plt%2Fdbaas.git diff --git a/docker/Dockerfile.testapp b/docker/Dockerfile.testapp index 5e1b998..b15c772 100644 --- a/docker/Dockerfile.testapp +++ b/docker/Dockerfile.testapp @@ -13,6 +13,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +# +# This source code is part of the near-RT RIC (RAN Intelligent Controller) +# platform project (RICP). +# + FROM ubuntu:latest # Install redis tools & golang & git @@ -20,8 +25,8 @@ RUN apt-get update && \ apt install -y redis-tools && \ apt install -y git && \ apt install -y wget && \ - wget https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz && \ - tar -xvf go1.11.4.linux-amd64.tar.gz && \ + wget https://golang.org/dl/go1.12.17.linux-amd64.tar.gz && \ + tar -xvf go1.12.17.linux-amd64.tar.gz && \ mv go /usr/local && \ apt-get clean @@ -30,10 +35,11 @@ COPY ./testapplication ./testapplication # Install go testapplication RUN export GOROOT=/usr/local/go && \ - export GOPATH=$HOME/Projects/Proj1 && \ - export PATH=$GOPATH/bin:$GOROOT/bin:$PATH && \ + export PATH=$GOROOT/bin:$PATH && \ + export GO111MODULE=on && \ go get github.com/go-redis/redis && \ - go build /testapplication/go/testapp.go + cd /testapplication/go/ && \ + go build ./... # Keep the container alive ENTRYPOINT ["tail", "-f", "/dev/null"]