Lusheng Ji | d6d409f | 2018-03-22 23:25:45 -0400 | [diff] [blame] | 1 | # ================================================================================ |
| 2 | # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. |
| 3 | # ================================================================================ |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # ============LICENSE_END========================================================= |
| 16 | |
| 17 | FROM caskdata/cdap-standalone:4.1.2 |
| 18 | |
| 19 | RUN apt-get update |
| 20 | RUN apt-get install -y netcat jq |
| 21 | ADD https://nexus.onap.org/content/repositories/snapshots/org/onap/dcaegen2/analytics/tca/dcae-analytics-cdap-tca/2.2.0-SNAPSHOT/dcae-analytics-cdap-tca-2.2.0-20180320.190629-1.jar /opt/tca/dcae-analytics-cdap-tca-2.2.0.jar |
| 22 | COPY tca_app_config.json /opt/tca/tca_app_config.json |
| 23 | COPY tca_app_preferences.json /opt/tca/tca_app_preferences.json |
| 24 | COPY restart.sh /opt/tca/restart.sh |
| 25 | COPY host.aliases /etc/host.aliases |
| 26 | |
| 27 | RUN echo "export HOSTALIASES=/etc/host.aliases" >> /etc/profile |
| 28 | RUN chmod 755 /opt/tca/restart.sh |
| 29 | |
| 30 | ENV HOSTALIASES /etc/host.aliases |
| 31 | |
| 32 | EXPOSE 11011 |
| 33 | EXPOSE 11015 |
| 34 | |
| 35 | ENTRYPOINT /opt/tca/restart.sh |