1 FROM boxfuse/flyway:5.0.7-alpine
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}
10 mariadb-client=10.1.28-r1 \
12 && rm -rf /var/cache/apk/*
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
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
29 RUN mkdir -p /onap-sources
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
37 COPY db_migrate.sh /root
39 RUN chmod a+x /root/db_migrate.sh
40 ENTRYPOINT /root/db_migrate.sh