mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 19:12:26 +01:00 
			
		
		
		
	| @@ -1,4 +1,4 @@ | ||||
| FROM ubuntu:18.04 | ||||
| FROM ubuntu:20.04 | ||||
|  | ||||
| ARG PACKAGE | ||||
|  | ||||
| @@ -17,13 +17,15 @@ ENV DEBIAN_FRONTEND="noninteractive" \ | ||||
|     SPHINX_BIN_TARGZ="sphinx-3.1.1-bin.tar.gz" | ||||
|  | ||||
| ADD "https://bitbucket.org/jsuto/piler/downloads/${PACKAGE}" "/${PACKAGE}" | ||||
| ADD start.sh /start.sh | ||||
| COPY start.sh /start.sh | ||||
|  | ||||
| RUN apt-get update && \ | ||||
|     apt-get -y --no-install-recommends install \ | ||||
|        wget rsyslog openssl sysstat php7.2-cli php7.2-cgi php7.2-mysql php7.2-fpm php7.2-zip php7.2-ldap \ | ||||
|        php7.2-gd php7.2-curl php7.2-xml catdoc unrtf poppler-utils nginx tnef sudo libodbc1 libpq5 libzip4 \ | ||||
|        libtre5 libwrap0 cron libmariadb3 libmysqlclient-dev python python-mysqldb mariadb-server && \ | ||||
|     apt-get clean && \ | ||||
|     rm -rf /var/lib/apt/lists/* && \ | ||||
|     service mysql start && mysqladmin -u root password ${MYSQL_ROOT_PASSWORD} && \ | ||||
|     wget --no-check-certificate -q -O ${SPHINX_BIN_TARGZ} ${DOWNLOAD_URL}/generic-local/${SPHINX_BIN_TARGZ} && \ | ||||
|     tar zxvf ${SPHINX_BIN_TARGZ} && \ | ||||
| @@ -31,8 +33,8 @@ RUN apt-get update && \ | ||||
|     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 && \ | ||||
|     mkdir /etc/piler && \ | ||||
|     printf "[mysql]\nuser = piler\npassword = ${MYSQL_PILER_PASSWORD}\n" > /etc/piler/.my.cnf && \ | ||||
|     printf "[mysql]\nuser = root\npassword = ${MYSQL_ROOT_PASSWORD}\n" > /root/.my.cnf && \ | ||||
|     printf "[mysql]\nuser = piler\npassword = %s\n" ${MYSQL_PILER_PASSWORD} > /etc/piler/.my.cnf && \ | ||||
|     printf "[mysql]\nuser = root\npassword = %s\n" ${MYSQL_ROOT_PASSWORD} > /root/.my.cnf && \ | ||||
|     echo "alias mysql='mysql --defaults-file=/etc/piler/.my.cnf'" > /root/.bashrc && \ | ||||
|     echo "alias t='tail -f /var/log/syslog'" >> /root/.bashrc && \ | ||||
|     dpkg -i $PACKAGE && \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user