blob: f5e70c8c38d01284f90114206ad11b1be2944daa [file] [log] [blame]
Lusheng Jid6d409f2018-03-22 23:25:45 -04001# ================================================================================
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
17FROM caskdata/cdap-standalone:4.1.2
18
19RUN apt-get update
20RUN apt-get install -y netcat jq
21ADD 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
22COPY tca_app_config.json /opt/tca/tca_app_config.json
23COPY tca_app_preferences.json /opt/tca/tca_app_preferences.json
24COPY restart.sh /opt/tca/restart.sh
25COPY host.aliases /etc/host.aliases
26
27RUN echo "export HOSTALIASES=/etc/host.aliases" >> /etc/profile
28RUN chmod 755 /opt/tca/restart.sh
29
30ENV HOSTALIASES /etc/host.aliases
31
32EXPOSE 11011
33EXPOSE 11015
34
35ENTRYPOINT /opt/tca/restart.sh