Skip to content

Commit d7024e5

Browse files
authored
Merge pull request #1 from mirhosting/dev
Dev
2 parents e4d7dcb + a193adb commit d7024e5

File tree

3 files changed

+37
-8
lines changed

3 files changed

+37
-8
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
FROM centos:7
2-
MAINTAINER Mirhosting <[email protected]>
2+
MAINTAINER MIRhosting <[email protected]>
33

44
ENV container docker
55

66
RUN yum -y swap -- remove fakesystemd -- install systemd systemd-libs
7-
RUN yum -y update; yum clean all; \
8-
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
7+
RUN yum -y update; yum clean all;
8+
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
99
rm -f /lib/systemd/system/multi-user.target.wants/*;\
1010
rm -f /etc/systemd/system/*.wants/*;\
1111
rm -f /lib/systemd/system/local-fs.target.wants/*; \
1212
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
1313
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
1414
rm -f /lib/systemd/system/basic.target.wants/*;\
1515
rm -f /lib/systemd/system/anaconda.target.wants/*;
16+
CMD ["/usr/sbin/init"]
1617

1718
RUN yum -y swap -- remove systemd-container systemd-container-libs -- install systemd systemd-libs
1819

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
# Centos 7 with WHM/cPanel
2-
Centos 7 with the preinstalled WHM/cPanel control panel.
3-
cPanel is a modern control panel which is installing with the default software set.
4-
For ease of working with Docker you can use our cloud platform (Platform As a Service)
52

6-
Follow the link and try it for free: https://mirhosting.com/cloud
3+
cPanel is one of the most recognized hosting management tools in the world and it delivers the most complete functionality combined with unparalleled localization.
4+
MIRhosting is now pleased to offer our unique and innovative cPanel image for everybody's evaluation and experiments. Our cPanel docker can now be deployed with one click within our cloud platform. If you will decide to use MIRhsoting's cloud platform your license will be activated instantly and you will be billed hourly for the actual consumption. If you need a license only for one hour, we can easily provision that and bill you exactly for one hour!
5+
MIRhosting based cPanel is simple and cost effective:
6+
7+
Hourly billing for what was actually consumed
8+
Real time resource scalability (without limitations)
9+
Fully redundant infrastructure (99,95% uptime)
10+
24x7x365 technical support
11+
Full and unlimited backups of all data deployed on our cloud
12+
13+
As an extra incentive for all Github and Dockerhub visitors to try cPanel on our cloud please claim your 5 EUR one time activation credit! Activate now - https://mir.host/dockerhub
14+
15+
Please consult a short video to get a better understanding! - https://www.youtube.com/watch?v=oR2OaP5rX44
16+
17+
# IMPORTANT NOTE
18+
Since we are using "automated build" to build docker container in Docker Hub and currently it is not properly working with systemd and d-bus, its advised to run
19+
/scripts/upcp --force
20+
directly after you deploy your docker container to install all missing software.

start.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,21 @@ echo "user=root" >> /root/.my.cnf;
2222

2323
cp /root/.my.cnf /root/.$mysql_password.pass;
2424

25+
/scripts/mysqlconnectioncheck
26+
27+
rm -rf /var/cpanel/cpnat
2528
new_ip=$(ifconfig | grep 'inet'| grep -v '127.0.0.1'| cut -d: -f2 | awk '{ print $2}' |grep -v "10." |grep -v '^\s*$');
26-
echo $new_ip > /var/cpanel/cpnat;
29+
#echo $new_ip > /var/cpanel/cpnat;
30+
grep -q ADDR /etc/wwwacct.conf && sed -i_bak "s/\(ADDR\) .*/\1 $new_ip/" /etc/wwwacct.conf || echo "ADDR $new_ip" >> /etc/wwwacct.conf
31+
32+
/scripts/mainipcheck
33+
34+
killall /usr/local/cpanel/bin/safeapacherestart
35+
killall /usr/local/cpanel/scripts/restartsrv_httpd
36+
killall /usr/bin/systemctl
37+
38+
/scripts/rebuildhttpdconf
39+
40+
/scripts/restartsrv_httpd
2741

2842
/bin/bash

0 commit comments

Comments
 (0)