summaryrefslogtreecommitdiffstats
path: root/tca-cdap-container/Dockerfile
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-03-22 23:25:45 -0400
committerLusheng Ji <lji@research.att.com>2018-03-22 23:26:00 -0400
commitd6d409f7dbb14e4df2f326684c07db3a8859d531 (patch)
treec6c0e0053d6f53510fcd5bd4238d697331654d98 /tca-cdap-container/Dockerfile
parent6d381a5345092d28675986cf50408eaaa9c40690 (diff)
Add TCA-CDAP container
Issue-ID: DCAEGEN2-357 Change-Id: I52a4f1c684aee297d248b1e7df5802d9439930ec Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'tca-cdap-container/Dockerfile')
-rw-r--r--tca-cdap-container/Dockerfile35
1 files changed, 35 insertions, 0 deletions
diff --git a/tca-cdap-container/Dockerfile b/tca-cdap-container/Dockerfile
new file mode 100644
index 0000000..f5e70c8
--- /dev/null
+++ b/tca-cdap-container/Dockerfile
@@ -0,0 +1,35 @@
+# ================================================================================
+# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=========================================================
+
+FROM caskdata/cdap-standalone:4.1.2
+
+RUN apt-get update
+RUN apt-get install -y netcat jq
+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
+COPY tca_app_config.json /opt/tca/tca_app_config.json
+COPY tca_app_preferences.json /opt/tca/tca_app_preferences.json
+COPY restart.sh /opt/tca/restart.sh
+COPY host.aliases /etc/host.aliases
+
+RUN echo "export HOSTALIASES=/etc/host.aliases" >> /etc/profile
+RUN chmod 755 /opt/tca/restart.sh
+
+ENV HOSTALIASES /etc/host.aliases
+
+EXPOSE 11011
+EXPOSE 11015
+
+ENTRYPOINT /opt/tca/restart.sh