ADD file:5d853f1ab02d07a8ff8a004a48c2b892aeb1b04a868ef6f897f303abccf852d9 in / |
LABEL org.label-schema.schema-version="1.0" org.label-schema.name="CentOS Stream 9 Base Image" org.label-schema.vendor="CentOS" org.label-schema.license="GPLv2" org.label-schema.build-date="20240423" |
CMD ["/bin/bash"] |
RUN dnf install -y epel-release httpd mariadb cpanminus gcc dnf-plugins-core && yum config-manager --set-enabled crb && yum update -y && yum install -y https://download.znuny.org/releases/RPMS/rhel/7/znuny-${OTRS_VERSION}-01.noarch.rpm && yum install -y "perl(Moo)" "perl(Text::CSV_XS)" "perl(YAML::XS)" "perl(ModPerl::Util)" "perl(Mail::IMAPClient)" "perl(JSON::XS)" "perl(Encode::HanExtra)" "perl(Crypt::Eksblowfish::Bcrypt)" "perl(DBD::mysql)" "perl(Data::UUID)" "perl(Crypt::JWT)" && cpanm JavaScript::Minifier::XS CSS::Minifier::XS iCal::Parser && ${OTRS_ROOT}/bin/otrs.CheckModules.pl && yum clean all |
COPY *.sh / |
RUN chmod 755 /*.sh && cp ${OTRS_ROOT}/var/httpd/htdocs/index.html /var/www/html && chmod 644 /var/www/html/index.html && sed -i 's/\bindex.html\b/& index.pl/' /etc/httpd/conf/httpd.conf && echo "+ : znuny : cron crond" |cat >> /etc/security/access.conf && sed -i -e '/pam_loginuid.so/ s/^#*/#/' /etc/pam.d/crond && sed -i -e '/<ValidateModule>Kernel::System::SysConfig::StateValidate<\/ValidateModule>/ s/^#*/#/' ${OTRS_ROOT}/Kernel/Config/Files/XML/Ticket.xml && mkdir -p ${OTRS_ROOT}/var/{run,tmp}/ |
RUN mv ${OTRS_CONFIG_DIR} / && mv ${SKINS_PATH} / && touch ${OTRS_ROOT}/var/tmp/firsttime && ln -sf /dev/stdout /var/log/httpd/access_log && ln -sf /dev/stderr /var/log/httpd/error_log && ln -sf /dev/stdout /var/log/cron |