blob: 2c57ff2edcbd3e07aedbc2ffe13cfa2584636771 [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
Lusheng Jie380f6b2018-05-14 22:45:56 -040019RUN apt-get update && apt-get install -y netcat jq iputils-ping wget vim curl
Lusheng Ji42014652018-03-28 07:38:05 -070020COPY get-tca.sh /opt/tca/get-tca.sh
21RUN /opt/tca/get-tca.sh
Lusheng Jid6d409f2018-03-22 23:25:45 -040022COPY 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
Lusheng Jid6d409f2018-03-22 23:25:45 -040025RUN chmod 755 /opt/tca/restart.sh
Lusheng Jie380f6b2018-05-14 22:45:56 -040026COPY mr-watchdog.sh /opt/tca/mr-watchdog.sh
27RUN chmod 755 /opt/tca/mr-watchdog.sh
Lusheng Jid6d409f2018-03-22 23:25:45 -040028
Lusheng Ji3622f7a2018-04-04 21:51:34 -040029#COPY host.aliases /etc/host.aliases
30#RUN echo "export HOSTALIASES=/etc/host.aliases" >> /etc/profile
31#ENV HOSTALIASES /etc/host.aliases
Lusheng Jid6d409f2018-03-22 23:25:45 -040032
33EXPOSE 11011
34EXPOSE 11015
35
36ENTRYPOINT /opt/tca/restart.sh