aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/microservices/Dockerfile.ci
blob: 1040c1426a4d7c6fe3ad74bcce1879ceda0ad922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:18.04

RUN apt-get -yqq update && apt-get -yqq install lsb-release apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
RUN add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
RUN apt-get -yqq update && apt-get -yqq install docker-ce docker-ce-cli mercurial
RUN rm -rf /var/lib/apt/lists/*
WORKDIR /app

#### Go v1.12.5
ENV GOLANG_VERSION 1.12.5
RUN curl -sSL https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz \
		| tar -v -C /usr/local -xz
ENV PATH /usr/local/go/bin:$PATH
RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
ENV GOROOT /usr/local/go
ENV GOPATH /app/go
ENV PATH /app/go/bin:$PATH
#### Go v1.12.5

RUN git clone https://github.com/onap/demo.git
WORKDIR /app/demo/vnfs/DAaaS/microservices
ENV RELEASE_VERSION=v0.9.0
RUN curl -OJL https://github.com/operator-framework/operator-sdk/releases/download/${RELEASE_VERSION}/operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu
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
ENV GO111MODULE=on