blob: 009f2fa757777a93331c52edf7c51cb562ff3793 [file] [log] [blame]
Mandeep Khinda1db773e2018-04-05 18:26:07 +00001FROM boxfuse/flyway:5.0.7-alpine
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002
Mandeep Khinda1db773e2018-04-05 18:26:07 +00003ARG branch=master
Mandeep Khindad6ea9872017-06-24 11:49:37 -04004ENV no_proxy "localhost,127.0.0.1,.cluster.local,$KUBERNETES_SERVICE_HOST"
5# Setup Corporate proxy
barak131c2a42017-06-27 02:45:02 +03006ENV https_proxy ${HTTP_PROXY}
7ENV http_proxy ${HTTPS_PROXY}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04008
Mandeep Khinda1db773e2018-04-05 18:26:07 +00009RUN apk add --update \
10 mariadb-client=10.1.28-r1 \
11 git \
12 && rm -rf /var/cache/apk/*
Mandeep Khindad6ea9872017-06-24 11:49:37 -040013
Mandeep Khinda1db773e2018-04-05 18:26:07 +000014ENV so_branch=$branch
15#ENV policy_branch: $branch
16ENV 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
22ENV so_repo=http://gerrit.onap.org/r/so/docker-config.git
23#ENV policy_repo: http://gerrit.onap.org/r/policy/docker.git
24ENV 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
29RUN mkdir -p /onap-sources
30WORKDIR /onap-sources
31
32RUN git clone -b $branch $portal_repo && cd portal && git checkout HEAD
33RUN git clone -b $branch $so_repo && cd docker-config && git checkout HEAD
34
35VOLUME /onap-sources
36
37COPY db_migrate.sh /root
38
39RUN chmod a+x /root/db_migrate.sh
40ENTRYPOINT /root/db_migrate.sh