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 | |
Lusheng Ji | e380f6b | 2018-05-14 22:45:56 -0400 | [diff] [blame] | 19 | RUN apt-get update && apt-get install -y netcat jq iputils-ping wget vim curl |
Lusheng Ji | 4201465 | 2018-03-28 07:38:05 -0700 | [diff] [blame] | 20 | COPY get-tca.sh /opt/tca/get-tca.sh |
| 21 | RUN /opt/tca/get-tca.sh |
Lusheng Ji | d6d409f | 2018-03-22 23:25:45 -0400 | [diff] [blame] | 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 |
Lusheng Ji | d6d409f | 2018-03-22 23:25:45 -0400 | [diff] [blame] | 25 | RUN chmod 755 /opt/tca/restart.sh |
Lusheng Ji | e380f6b | 2018-05-14 22:45:56 -0400 | [diff] [blame] | 26 | COPY mr-watchdog.sh /opt/tca/mr-watchdog.sh |
| 27 | RUN chmod 755 /opt/tca/mr-watchdog.sh |
Lusheng Ji | d6d409f | 2018-03-22 23:25:45 -0400 | [diff] [blame] | 28 | |
Lusheng Ji | 3622f7a | 2018-04-04 21:51:34 -0400 | [diff] [blame] | 29 | #COPY host.aliases /etc/host.aliases |
| 30 | #RUN echo "export HOSTALIASES=/etc/host.aliases" >> /etc/profile |
| 31 | #ENV HOSTALIASES /etc/host.aliases |
Lusheng Ji | d6d409f | 2018-03-22 23:25:45 -0400 | [diff] [blame] | 32 | |
| 33 | EXPOSE 11011 |
| 34 | EXPOSE 11015 |
| 35 | |
| 36 | ENTRYPOINT /opt/tca/restart.sh |