blob: 2e4f8ca6f23f5fb3deeedb164da0711e82bebb93 [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
Lusheng Ji42014652018-03-28 07:38:05 -070020RUN apt-get install -y netcat jq wget
21COPY get-tca.sh /opt/tca/get-tca.sh
22RUN /opt/tca/get-tca.sh
Lusheng Jid6d409f2018-03-22 23:25:45 -040023COPY tca_app_config.json /opt/tca/tca_app_config.json
24COPY tca_app_preferences.json /opt/tca/tca_app_preferences.json
25COPY restart.sh /opt/tca/restart.sh
26COPY host.aliases /etc/host.aliases
27
28RUN echo "export HOSTALIASES=/etc/host.aliases" >> /etc/profile
29RUN chmod 755 /opt/tca/restart.sh
30
31ENV HOSTALIASES /etc/host.aliases
32
33EXPOSE 11011
34EXPOSE 11015
35
36ENTRYPOINT /opt/tca/restart.sh