toshrajbhardwaj | f4fc1c6 | 2018-08-06 07:35:14 +0000 | [diff] [blame] | 1 | # Copyright © 2018 Amdocs, Bell Canada, AT&T |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Mandeep Khinda | 1db773e | 2018-04-05 18:26:07 +0000 | [diff] [blame] | 15 | FROM boxfuse/flyway:5.0.7-alpine |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | |
Mike Elliott | 3e0bad9 | 2018-11-28 15:58:53 -0500 | [diff] [blame^] | 17 | ARG branch=3.0.0-ONAP |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 18 | ENV no_proxy "localhost,127.0.0.1,.cluster.local,$KUBERNETES_SERVICE_HOST" |
| 19 | # Setup Corporate proxy |
barak | 131c2a4 | 2017-06-27 02:45:02 +0300 | [diff] [blame] | 20 | ENV https_proxy ${HTTP_PROXY} |
| 21 | ENV http_proxy ${HTTPS_PROXY} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 22 | |
Mandeep Khinda | 1db773e | 2018-04-05 18:26:07 +0000 | [diff] [blame] | 23 | RUN apk add --update \ |
Mandeep Khinda | 9f314ea | 2018-09-19 19:57:25 +0000 | [diff] [blame] | 24 | mariadb-client=10.1.32-r0 \ |
Mandeep Khinda | 1db773e | 2018-04-05 18:26:07 +0000 | [diff] [blame] | 25 | git \ |
| 26 | && rm -rf /var/cache/apk/* |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 27 | |
Mandeep Khinda | 1db773e | 2018-04-05 18:26:07 +0000 | [diff] [blame] | 28 | ENV so_branch=$branch |
| 29 | #ENV policy_branch: $branch |
| 30 | ENV portal_branch=$branch |
| 31 | #ENV sdnc_branch: $branch |
| 32 | #ENV vid_branch: $branch |
| 33 | #ENV clamp_branch: $branch |
| 34 | |
| 35 | #ENV appc_repo: http://gerrit.onap.org/r/appc/deployment.git |
| 36 | ENV so_repo=http://gerrit.onap.org/r/so/docker-config.git |
| 37 | #ENV policy_repo: http://gerrit.onap.org/r/policy/docker.git |
| 38 | ENV portal_repo=http://gerrit.onap.org/r/portal.git |
| 39 | #ENV sdnc_repo: http://gerrit.onap.org/r/sdnc/oam.git |
| 40 | #ENV vid_repo: http://gerrit.onap.org/r/vid.git |
| 41 | #ENV clamp_repo: http://gerrit.onap.org/r/clamp.git |
| 42 | |
| 43 | RUN mkdir -p /onap-sources |
| 44 | WORKDIR /onap-sources |
| 45 | |
| 46 | RUN git clone -b $branch $portal_repo && cd portal && git checkout HEAD |
| 47 | RUN git clone -b $branch $so_repo && cd docker-config && git checkout HEAD |
| 48 | |
| 49 | VOLUME /onap-sources |
| 50 | |
| 51 | COPY db_migrate.sh /root |
| 52 | |
| 53 | RUN chmod a+x /root/db_migrate.sh |
| 54 | ENTRYPOINT /root/db_migrate.sh |