Mandeep Khinda | 1db773e | 2018-04-05 18:26:07 +0000 | [diff] [blame] | 1 | FROM boxfuse/flyway:5.0.7-alpine |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | |
Mandeep Khinda | 1db773e | 2018-04-05 18:26:07 +0000 | [diff] [blame] | 3 | ARG branch=master |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 4 | ENV no_proxy "localhost,127.0.0.1,.cluster.local,$KUBERNETES_SERVICE_HOST" |
| 5 | # Setup Corporate proxy |
barak | 131c2a4 | 2017-06-27 02:45:02 +0300 | [diff] [blame] | 6 | ENV https_proxy ${HTTP_PROXY} |
| 7 | ENV http_proxy ${HTTPS_PROXY} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 8 | |
Mandeep Khinda | 1db773e | 2018-04-05 18:26:07 +0000 | [diff] [blame] | 9 | RUN apk add --update \ |
| 10 | mariadb-client=10.1.28-r1 \ |
| 11 | git \ |
| 12 | && rm -rf /var/cache/apk/* |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 13 | |
Mandeep Khinda | 1db773e | 2018-04-05 18:26:07 +0000 | [diff] [blame] | 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 |