2022-12-06 13:11:49 +01:00
|
|
|
FROM ubuntu:22.04
|
2019-08-04 10:40:05 +02:00
|
|
|
|
|
|
|
ARG PACKAGE
|
|
|
|
|
2022-12-06 13:11:49 +01:00
|
|
|
LABEL description="piler ubuntu jammy image" \
|
2019-09-26 09:52:39 +02:00
|
|
|
maintainer="Janos SUTO, sj@acts.hu" \
|
2019-08-04 10:40:05 +02:00
|
|
|
package="${PACKAGE}"
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND="noninteractive" \
|
2022-12-06 13:11:49 +01:00
|
|
|
DISTRO="jammy" \
|
2019-08-04 10:40:05 +02:00
|
|
|
PILER_USER="piler" \
|
2022-12-06 13:11:49 +01:00
|
|
|
MYSQL_DATABASE="piler"
|
2019-08-04 10:40:05 +02:00
|
|
|
|
2021-01-03 18:20:32 +01:00
|
|
|
COPY ${PACKAGE} /
|
2019-08-04 10:40:05 +02:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y --no-install-recommends install \
|
2022-12-06 13:11:49 +01:00
|
|
|
wget rsyslog openssl sysstat php8.1-cli php8.1-cgi php8.1-mysql php8.1-fpm php8.1-zip php8.1-ldap \
|
|
|
|
php8.1-gd php8.1-curl php8.1-xml php8.1-memcached catdoc unrtf poppler-utils nginx tnef sudo libzip4 \
|
2022-12-16 12:40:18 +01:00
|
|
|
libtre5 cron libmariadb-dev mariadb-client-core-10.6 python3 python3-mysqldb ca-certificates curl && \
|
2022-12-06 13:11:49 +01:00
|
|
|
wget https://repo.manticoresearch.com/manticore-repo.noarch.deb && \
|
|
|
|
dpkg -i manticore-repo.noarch.deb && \
|
|
|
|
rm -f manticore-repo.noarch.deb && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y manticore manticore-columnar-lib && \
|
2020-08-10 21:58:06 +02:00
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
2019-08-04 10:40:05 +02:00
|
|
|
sed -i 's/mail.[iwe].*//' /etc/rsyslog.conf && \
|
|
|
|
sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/cron && \
|
2021-01-03 18:20:32 +01:00
|
|
|
dpkg -i ${PACKAGE} && \
|
2022-12-16 12:40:18 +01:00
|
|
|
touch /etc/piler/MANTICORE && \
|
2021-01-03 18:20:32 +01:00
|
|
|
ln -sf /etc/piler/piler-nginx.conf /etc/nginx/sites-enabled && \
|
2022-12-06 13:11:49 +01:00
|
|
|
rm -f ${PACKAGE} /etc/nginx/sites-enabled/default /etc/piler/piler.key /etc/piler/piler.pem /etc/piler/config-site.php && \
|
2021-01-03 18:20:32 +01:00
|
|
|
crontab -u $PILER_USER /usr/share/piler/piler.cron
|
2019-08-04 10:40:05 +02:00
|
|
|
|
2021-01-03 18:20:32 +01:00
|
|
|
VOLUME ["/etc/piler"]
|
2022-12-20 16:32:41 +01:00
|
|
|
VOLUME ["/var/piler/store"]
|
2021-01-03 18:20:32 +01:00
|
|
|
|
|
|
|
EXPOSE 25 80 443
|
|
|
|
|
|
|
|
COPY start.sh /start.sh
|
|
|
|
|
2019-08-04 10:40:05 +02:00
|
|
|
CMD ["/start.sh"]
|