Use 2.0.0-ONAP tag instead beijing branch
[oom.git] / kubernetes / portal / docker / init / mariadb-client / Dockerfile
1 FROM boxfuse/flyway:5.0.7-alpine
2
3 ARG branch=2.0.0-ONAP
4 ENV no_proxy "localhost,127.0.0.1,.cluster.local,$KUBERNETES_SERVICE_HOST"
5 # Setup Corporate proxy
6 ENV https_proxy ${HTTP_PROXY}
7 ENV http_proxy ${HTTPS_PROXY}
8
9 RUN apk add --update \
10     mariadb-client=10.1.28-r1 \
11     git \
12   && rm -rf /var/cache/apk/*
13
14 ENV so_branch=$branch
15 #ENV policy_branch: $branch
16 ENV portal_branch=$branch
17 #ENV sdnc_branch: $branch
18 #ENV vid_branch: $branch
19 #ENV clamp_branch: $branch
20
21 #ENV appc_repo: http://gerrit.onap.org/r/appc/deployment.git
22 ENV so_repo=http://gerrit.onap.org/r/so/docker-config.git
23 #ENV policy_repo: http://gerrit.onap.org/r/policy/docker.git
24 ENV portal_repo=http://gerrit.onap.org/r/portal.git
25 #ENV sdnc_repo: http://gerrit.onap.org/r/sdnc/oam.git
26 #ENV vid_repo: http://gerrit.onap.org/r/vid.git
27 #ENV clamp_repo: http://gerrit.onap.org/r/clamp.git
28
29 RUN mkdir -p /onap-sources
30 WORKDIR /onap-sources
31
32 RUN git clone -b $branch $portal_repo && cd portal && git checkout HEAD
33 RUN git clone -b $branch $so_repo && cd docker-config && git checkout HEAD
34
35 VOLUME /onap-sources
36
37 COPY db_migrate.sh /root
38
39 RUN chmod a+x /root/db_migrate.sh
40 ENTRYPOINT /root/db_migrate.sh