FROM centos:7 MAINTAINER CASTIRON RUN yum -y update && yum clean all RUN yum install -y openssh-server openssh python2 httpd logrotate net-tools perl cronie sysstat libnet libmaxminddb lib xslt sssd python-setuptools iproute file COPY ironhide-setup/rpm/python2-pip-8.1.2-14.el7.noarch.rpm /var/tmp/python2-pip-8.1.2-14.el7.noarch.rpm RUN rpm -ivh /var/tmp/python2-pip-8.1.2-14.el7.noarch.rpm RUN /usr/bin/pip install supervisor COPY ironhide-setup/rpm/log4cxx-0.10.0-9.cios6_4.x86_64.rpm /var/tmp/log4cxx-0.10.0-9.cios6_4.x86_64.rpm RUN rpm -ivh /var/tmp/log4cxx-0.10.0-9.cios6_4.x86_64.rpm COPY ironhide-setup/rpm/ivykis-0.36.2-2.el7.x86_64.rpm /var/tmp/ivykis-0.36.2-2.el7.x86_64.rpm RUN rpm -ivh /var/tmp/ivykis-0.36.2-2.el7.x86_64.rpm COPY ironhide-setup/rpm/eventlog-0.2.13-4.el7.x86_64.rpm /var/tmp/eventlog-0.2.13-4.el7.x86_64.rpm RUN rpm -ivh /var/tmp/eventlog-0.2.13-4.el7.x86_64.rpm COPY ironhide-setup/rpm/syslog-ng-3.5.6-3.el7.x86_64.rpm /var/tmp/syslog-ng-3.5.6-3.el7.x86_64.rpm RUN rpm -ivh /var/tmp/syslog-ng-3.5.6-3.el7.x86_64.rpm COPY ironhide-setup/rpm/sharutils-4.13.3-8.el7.x86_64.rpm /var/tmp/sharutils-4.13.3-8.el7.x86_64.rpm RUN rpm -ivh /var/tmp/sharutils-4.13.3-8.el7.x86_64.rpm COPY ironhide-setup/rpm/libnet-1.1.6-7.el7.x86_64.rpm /var/tmp/libnet-1.1.6-7.el7.x86_64.rpm ENV IRONHIDE_SOURCE /var/tmp/ironhide-setup RUN sed -i -E 's/weekly/#weekly/g; s/^rotate/#rotate/g; s/dateext/#dateext/g' /etc/logrotate.conf RUN sed -i -E 's/^(\s*)system\(\);/\1unix-stream("\/dev\/log");/' /etc/syslog-ng/syslog-ng.conf rutils-4.13.3-8.el7.x86_64.rpm /var/tmp/libnet-1.1.6-7.el7.x86_64.rpm ADD ironhide-setup/supervisord.conf /etc/supervisor/supervisord.conf RUN mkdir -p /var/log/supervisor & mkdir -p /opt/ibm/ #Directory to hold the artifacts which need to be loaded during docker launch/start RUN mkdir -p /var/tmp/LoadArtifacts/projects COPY /projects /var/tmp/LoadArtifacts/projects RUN mkdir -p /var/tmp/LoadArtifacts/ThirdPartylibs COPY /ThirdPartylibs /var/tmp/LoadArtifacts/ThirdPartylibs RUN mkdir -p /var/tmp/LoadArtifacts/SecureConnectorConfig COPY /SecureConnectorConfig /var/tmp/LoadArtifacts/SecureConnectorConfig RUN mkdir -p /var/tmp/LoadArtifacts/UsersAndGroups COPY /UsersAndGroups /var/tmp/LoadArtifacts/UsersAndGroups RUN mkdir -p /var/tmp/LoadArtifacts/CertificatesAndKeys COPY /CertificatesAndKeys /var/tmp/LoadArtifacts/CertificatesAndKeys RUN mkdir -p /Data COPY /ironhide-setup/etc/cron.d/* /etc/cron.d/ COPY ironhide-setup/etc/logrotate.d/* /etc/logrotate.d/ RUN chmod 644 /etc/cron.d/* ADD ironhide-setup $IRONHIDE_SOURCE RUN chmod -R 777 $IRONHIDE_SOURCE ENV JAVA_HOME /usr/java/default ENV PATH $JAVA_HOME/bin:$PATH ENV IRONHIDE_ROOT /usr/ironhide ENV LD_LIBRARY_PATH /usr/ironhide/lib ENV IH_ROOT /usr/ironhide ENV LANG POSIX ENV IRONHIDE_BACKUP_PATH /var/tmp/ironhide-backup ENV PATH $IH_ROOT/bin:$PATH ENV interface1="" ENV interface2="" RUN echo 'PS1="[AppConnect-Container@\h \w]: "' >> ~/.bashrc CMD ["/usr/bin/supervisord"]