Initial release
This commit is contained in:
commit
1f41a69f9f
12
.gitlab-ci.yml
Normal file
12
.gitlab-ci.yml
Normal file
@ -0,0 +1,12 @@
|
||||
image: docker:latest
|
||||
|
||||
services:
|
||||
- docker:dind
|
||||
|
||||
before_script:
|
||||
- docker info
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- docker build -t leenooks/lamps
|
64
Dockerfile
Normal file
64
Dockerfile
Normal file
@ -0,0 +1,64 @@
|
||||
# NAME leenooks/lamps
|
||||
# VERSION latest
|
||||
# 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 leenooks/base:latest
|
||||
|
||||
RUN yum -y install epel-release && 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
|
||||
#RUN yum -y install --enabler remi-php54 \
|
||||
RUN yum -y install \
|
||||
httpd \
|
||||
mariadb-server \
|
||||
php \
|
||||
php-gd \
|
||||
php-ldap \
|
||||
php-mbstring \
|
||||
php-mysql \
|
||||
php-pdo \
|
||||
php-xml \
|
||||
m4 \
|
||||
opendkim \
|
||||
sendmail \
|
||||
sendmail-cf \
|
||||
awstats \
|
||||
ln-http \
|
||||
ln-awstats \
|
||||
ln-mail-server \
|
||||
openssh-server \
|
||||
&& 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
|
||||
|
||||
COPY init /sbin/
|
||||
|
||||
# Starting
|
||||
ENTRYPOINT [ "/sbin/init" ]
|
||||
CMD [ "start" ]
|
||||
|
||||
RUN yum -y install tsmpipe && yum clean all
|
Loading…
Reference in New Issue
Block a user