lamps/Dockerfile

70 lines
2.0 KiB
Docker
Raw Normal View History

2016-05-26 11:45:30 +00:00
# NAME leenooks/lamps
2016-08-11 01:22:20 +00:00
# VERSION php53
2016-05-26 11:45:30 +00:00
# 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
2016-08-11 01:22:20 +00:00
FROM registry.leenooks.net/leenooks/base:7
2016-05-26 11:45:30 +00:00
RUN yum -y install epel-release && yum clean all
# EPEL & Leenooks packages
RUN yum -y install \
httpd \
mariadb-server \
php \
php-gd \
php-ldap \
php-mbstring \
php-mysql \
php-pdo \
php-xml \
2016-08-11 01:22:20 +00:00
php-composer-installers.noarch \
2016-05-26 11:45:30 +00:00
m4 \
opendkim \
sendmail \
sendmail-cf \
awstats \
ln-http \
ln-awstats \
ln-mail-server \
2016-08-11 01:22:20 +00:00
openssh-server \
git \
2016-05-26 11:45:30 +00:00
&& yum clean all
COPY .my.cnf /root/
COPY 10-default.conf /etc/httpd/conf.d/
RUN ln -f /etc/.ln/httpd/conf.d/awstats.conf /etc/httpd/conf.d/awstats.conf && ln -f /etc/.ln/opendkim.conf /etc/opendkim.conf
EXPOSE 80 443
# Starting
2016-08-11 01:22:20 +00:00
COPY init /sbin/
2016-05-26 11:45:30 +00:00
ENTRYPOINT [ "/sbin/init" ]
CMD [ "start" ]
2016-08-11 01:22:20 +00:00
RUN composer global require "laravel/installer"
RUN composer require --dev --no-update "xethron/migrations-generator:dev-l5" && \
composer require --dev --no-update "way/generators:dev-feature/laravel-five-stable" && \
composer config repositories.repo-name git "git@github.com:jamisonvalenta/Laravel-4-Generators.git"
RUN useradd -c "Hosting Admin User" -m lamp && su lamp -lc "composer global require laravel/installer"
2016-05-26 11:45:30 +00:00
RUN yum -y install tsmpipe && yum clean all