forked from paimpozhil/WhatPanel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (23 loc) · 1.19 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM centos
MAINTAINER [email protected]
RUN yum -y install wget
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
RUN rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
RUN wget -O- https://raw.github.com/Eugeny/ajenti/master/scripts/install-rhel.sh | sh
RUN yum -y install /sbin/service which nano openssh-server git mysql-server mysql php-mysql php-gd php-mcrypt php-zip php-xml php-iconv php-curl php-soap php-simplexml php-pdo php-dom php-cli tar \
dbus-python.x86_64 dbus-python-devel.x86_64 dbus php-hash php-mysql vixie-cron
RUN yum -y install ajenti-v ajenti-v-ftp-vsftpd ajenti-v-php-fpm ajenti-v-mysql
RUN chkconfig mysqld on
RUN chkconfig nginx on
RUN chkconfig php-fpm on
RUN chkconfig crond on
RUN chkconfig ajenti on
RUN sed -i "s/UsePAM.*/UsePAM no/g" /etc/ssh/sshd_config
RUN sed -i "s/#PermitRootLogin/PermitRootLogin/g" /etc/ssh/sshd_config
RUN echo 'root:changeme' | chpasswd
RUN mkdir /scripts
ADD mysqlsetup.sh /scripts/mysqlsetup.sh
RUN chmod 0755 /scripts/*
RUN echo "/scripts/mysqlsetup.sh" >> /etc/rc.d/rc.local
EXPOSE 22 80 8000 3306 443
ENTRYPOINT ["/sbin/init"]