Update INFO.yaml with new PTL
[demo.git] / vnfs / DAaaS / microservices / Dockerfile.ci
1 FROM ubuntu:18.04
2
3 RUN apt-get -yqq update && apt-get -yqq install lsb-release apt-transport-https \
4     ca-certificates \
5     curl \
6     gnupg-agent \
7     software-properties-common
8 RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
9 RUN add-apt-repository \
10    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
11    $(lsb_release -cs) \
12    stable"
13 RUN apt-get -yqq update && apt-get -yqq install docker-ce docker-ce-cli mercurial
14 RUN rm -rf /var/lib/apt/lists/*
15 WORKDIR /app
16
17 #### Go v1.12.5
18 ENV GOLANG_VERSION 1.12.5
19 RUN curl -sSL https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz \
20                 | tar -v -C /usr/local -xz
21 ENV PATH /usr/local/go/bin:$PATH
22 RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
23 ENV GOROOT /usr/local/go
24 ENV GOPATH /app/go
25 ENV PATH /app/go/bin:$PATH
26 #### Go v1.12.5
27
28 RUN git clone https://github.com/onap/demo.git
29 WORKDIR /app/demo/vnfs/DAaaS/microservices
30 ENV RELEASE_VERSION=v0.9.0
31 RUN curl -OJL https://github.com/operator-framework/operator-sdk/releases/download/${RELEASE_VERSION}/operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu
32 RUN chmod +x operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu && cp operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu /usr/local/bin/operator-sdk && rm operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu
33 ENV GO111MODULE=on