Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0c1db2507c | ||
|
57107e688b | ||
|
afb4b45f2a | ||
|
47d542277f | ||
|
807bb9ece2 | ||
|
3c65841ce6 |
@ -1,2 +1 @@
|
|||||||
.git/
|
|
||||||
image*bz2
|
image*bz2
|
||||||
|
28
Dockerfile
28
Dockerfile
@ -1,5 +1,24 @@
|
|||||||
# NAME leenooks/lamps
|
# NAME leenooks/lamps
|
||||||
# VERSION php54
|
# VERSION php55
|
||||||
|
# BUILD docker build -t="leenooks/lamps" .
|
||||||
|
# START docker run -dp 80:80 [-p 443:443 ] -p 2022:22 \
|
||||||
|
# -e NO_MAIL=TRUE \
|
||||||
|
# -e NO_DB=TRUE \
|
||||||
|
# -v /srv/lamps/sites.d:/etc/httpd/sites.d \
|
||||||
|
# -v /srv/lamps/sites.html:/var/www/sites \
|
||||||
|
# -v /srv/lamps/mariadb/server.cnf:/etc/my.cnf.d/server.cnf
|
||||||
|
# -v /srv/lamps/mariadb/data:/var/lib/mysql
|
||||||
|
# -v /srv/lamps/user:/home/lamp \
|
||||||
|
# -v /srv/lamps/mail/opendkim:/etc/opendkim \
|
||||||
|
# -v /srv/lamps/mail/sendmail.mc:/etc/mail/sendmail.mc \
|
||||||
|
# -v /srv/lamps/tsm/TSM.PWD:/etc/adsm/TSM.PWD \
|
||||||
|
# -v /srv/lamps/tsm/dsm.sys:/etc/adsm/TSM.PWD \
|
||||||
|
# -v /dev/log:/dev/log \
|
||||||
|
# -v /srv/lamps/dsm.sys:/opt/tivoli/tsm/client/api/bin64/dsm.sys \
|
||||||
|
# -v /srv/lamps/dsm.opt:/opt/tivoli/tsm/client/api/bin64/dsm.opt \
|
||||||
|
# --hostname=www.example.com \
|
||||||
|
# --restart=always --name=lamp leenooks/hosting $@
|
||||||
|
# CRON: docker exec -it lamp /usr/sbin/awstats.sh
|
||||||
|
|
||||||
FROM registry.leenooks.net/leenooks/base:7
|
FROM registry.leenooks.net/leenooks/base:7
|
||||||
|
|
||||||
@ -7,8 +26,10 @@ RUN yum -y install epel-release && yum clean all
|
|||||||
|
|
||||||
RUN yum -y install tsmpipe && yum clean all
|
RUN yum -y install tsmpipe && yum clean all
|
||||||
|
|
||||||
|
RUN yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm && yum clean all && rm -rf /var/tmp/*
|
||||||
|
|
||||||
# EPEL & Leenooks packages
|
# EPEL & Leenooks packages
|
||||||
RUN yum -y install \
|
RUN yum -y install --enabler remi-php55 \
|
||||||
httpd \
|
httpd \
|
||||||
mariadb-server \
|
mariadb-server \
|
||||||
php \
|
php \
|
||||||
@ -40,9 +61,6 @@ RUN useradd -c "Hosting Admin User" -m lamp -G apache
|
|||||||
VOLUME [ "/etc/ssh" ]
|
VOLUME [ "/etc/ssh" ]
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
|
|
||||||
LABEL cron.hourly root:/usr/sbin/awstats.sh
|
|
||||||
LABEL cron.daily root:/usr/bin/tdp.mysql.sh -s information_schema:performance_schema
|
|
||||||
|
|
||||||
# Starting
|
# Starting
|
||||||
COPY init /sbin/
|
COPY init /sbin/
|
||||||
ENTRYPOINT [ "/sbin/init" ]
|
ENTRYPOINT [ "/sbin/init" ]
|
||||||
|
2
init
2
init
@ -38,7 +38,7 @@ if [ "$1" == "start" ]; then
|
|||||||
echo "Starting SSHD..."
|
echo "Starting SSHD..."
|
||||||
getent passwd lamp || useradd -c "Hosting Admin User" -m lamp
|
getent passwd lamp || useradd -c "Hosting Admin User" -m lamp
|
||||||
[ -x /usr/sbin/sshd-keygen ] && /usr/sbin/sshd-keygen
|
[ -x /usr/sbin/sshd-keygen ] && /usr/sbin/sshd-keygen
|
||||||
[ -x /usr/sbin/sshd ] && /usr/sbin/sshd -D &
|
[ -x /usr/sbin/sshd ] && /usr/sbin/sshd
|
||||||
else
|
else
|
||||||
echo "! NOT starting SSH"
|
echo "! NOT starting SSH"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user