Selaa lähdekoodia

Initial commit

Initial commit of files forked from UF Health
master
Chris Wiegman 1 vuosi sitten
commit
56114550e0
No known key found for this signature in database GPG Key ID: 449E180845071036
14 muutettua tiedostoa jossa 216 lisäystä ja 0 poistoa
  1. +44
    -0
      01-Core/2.4/Dockerfile
  2. +20
    -0
      01-Core/2.4/Makefile
  3. +17
    -0
      01-Core/2.4/certs/server.crt
  4. +15
    -0
      01-Core/2.4/certs/server.key
  5. +28
    -0
      01-Core/2.4/vhost.conf
  6. +7
    -0
      01-Core/Makefile
  7. BIN
      02-Extensions/.DS_Store
  8. +7
    -0
      02-Extensions/Makefile
  9. +4
    -0
      02-Extensions/wp-multi-subdir/2.4/Dockerfile
  10. +20
    -0
      02-Extensions/wp-multi-subdir/2.4/Makefile
  11. +30
    -0
      02-Extensions/wp-multi-subdir/2.4/vhost.conf
  12. +7
    -0
      02-Extensions/wp-multi-subdir/Makefile
  13. +7
    -0
      Makefile
  14. +10
    -0
      README.md

+ 44
- 0
01-Core/2.4/Dockerfile Näytä tiedosto

@ -0,0 +1,44 @@
FROM ubuntu:latest
MAINTAINER cwiegman@ufl.edu
EXPOSE 80 443
RUN echo 'Acquire::http::Pipeline-Depth "0";' > /etc/apt/apt.conf.d/00-pipeline
RUN apt-get -o Debug::Acquire::http=true update
RUN apt -y clean
RUN apt -y update
RUN apt-get -y upgrade
RUN apt-get -y install \
apache2 \
iproute2
RUN a2enmod rewrite
RUN a2enmod ssl
RUN a2enmod env
RUN a2enmod dir
RUN a2enmod proxy
RUN a2enmod proxy_fcgi
RUN a2enmod headers
RUN a2enmod alias
RUN a2enmod cache
RUN a2enmod cgid
RUN a2enmod expires
RUN a2enmod suexec
RUN a2enmod unique_id
RUN echo "ServerName $(ip route get 8.8.8.8 | awk '{print $NF; exit}')" >> /etc/apache2/apache2.conf
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
ADD vhost.conf /etc/apache2/sites-enabled/000-default.conf
ADD certs /etc/apache2/ssl/
RUN apt-get remove -y build-essential libz-dev iproute2
RUN apt-get autoremove -y
RUN apt-get clean
CMD /usr/sbin/apache2ctl -D FOREGROUND

+ 20
- 0
01-Core/2.4/Makefile Näytä tiedosto

@ -0,0 +1,20 @@
NAMESPACE := ufhweb
NAME := apache
VERSION := 2.4
all: \
build \
push
build:
docker build --no-cache . -t $(NAMESPACE)/$(NAME):$(VERSION)
docker build . -t gitlab.ahc.ufl.edu:4567/webservices/dev-ops/docker/$(NAME):$(VERSION)
push:
docker push $(NAMESPACE)/$(NAME):$(VERSION)
docker push gitlab.ahc.ufl.edu:4567/webservices/dev-ops/docker/$(NAME):$(VERSION)
.PHONY: \
all \
build \
push

+ 17
- 0
01-Core/2.4/certs/server.crt Näytä tiedosto

@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE-----
MIICsjCCAhugAwIBAgIJAK9HXB0+bKUaMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
BAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX
aWRnaXRzIFB0eSBMdGQwIBcNMTcwNjI3MTkwMTE2WhgPMjA4NTA3MTUxOTAxMTZa
MEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJ
bnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJ
AoGBALvW04ukqYNjqoG70UM3RDlPVYtExJAUapDDuxYm6j861/LPPPFjFOT3XygC
WDRGJAQuSx+SSU8tD+scsZwl1sKppLX19BbnDAWxXVuCoxD7CdL+HORQ/oYCWVn8
6L1Nucn41NkCytz/lVMYYIu0U3Jpib7XvV2sRgVvS9byjT9xAgMBAAGjgacwgaQw
HQYDVR0OBBYEFJWQDkQ3kfZNEFvRd7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BM5jlCQD+U2dHzO0fBjDG4esfOrkFJ0LY3jQ1UNTfe7bm6O4VNppX2ECQEMA
WwMS+gT1z1aRyORG8YtdGvI1WXnTvKc3lKpmMD/0MkNFZ+7/F85eZl2SIcyAY7YG
BwQELkhRq3vE3+jXFysCQFW8Eq1qzfv07DInCz6KJ3OuN+AvPxaNnuSh4ENHMxS0
jsHubtcvg7w6jKsBYuifVba5bp/pqC9/xZctoEkItVI=
-----END RSA PRIVATE KEY-----

+ 28
- 0
01-Core/2.4/vhost.conf Näytä tiedosto

@ -0,0 +1,28 @@
<VirtualHost *:80>
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://phpfpm:9000/var/www/html/$1
DocumentRoot /var/www/html
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log common
<Directory /var/www/html>
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:443>
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://phpfpm:9000/var/www/html/$1
DocumentRoot /var/www/html
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log common
<Directory /var/www/html>
AllowOverride All
</Directory>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
</VirtualHost>

+ 7
- 0
01-Core/Makefile Näytä tiedosto

@ -0,0 +1,7 @@
SUBDIRS = $(sort $(dir $(wildcard */.)))
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)

BIN
02-Extensions/.DS_Store Näytä tiedosto


+ 7
- 0
02-Extensions/Makefile Näytä tiedosto

@ -0,0 +1,7 @@
SUBDIRS = $(sort $(dir $(wildcard */.)))
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)

+ 4
- 0
02-Extensions/wp-multi-subdir/2.4/Dockerfile Näytä tiedosto

@ -0,0 +1,4 @@
FROM ufhweb/apache:2.4
MAINTAINER cwiegman@ufl.edu
ADD vhost.conf /etc/apache2/sites-enabled/000-default.conf

+ 20
- 0
02-Extensions/wp-multi-subdir/2.4/Makefile Näytä tiedosto

@ -0,0 +1,20 @@
NAMESPACE := ufhweb
NAME := apache
VERSION := 2.4-wp-multi-subdir
all: \
build \
push
build:
docker build --no-cache . -t $(NAMESPACE)/$(NAME):$(VERSION)
docker build . -t gitlab.ahc.ufl.edu:4567/webservices/dev-ops/docker/$(NAME):$(VERSION)
push:
docker push $(NAMESPACE)/$(NAME):$(VERSION)
docker push gitlab.ahc.ufl.edu:4567/webservices/dev-ops/docker/$(NAME):$(VERSION)
.PHONY: \
all \
build \
push

+ 30
- 0
02-Extensions/wp-multi-subdir/2.4/vhost.conf Näytä tiedosto

@ -0,0 +1,30 @@
<VirtualHost *:80>
ProxyPassMatch ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes)/.*\.php(/.*)?)$ fcgi://phpfpm:9000/var/www/html/$2
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://phpfpm:9000/var/www/html/$1
DocumentRoot /var/www/html
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log common
<Directory /var/www/html>
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:443>
ProxyPassMatch ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes)/.*\.php(/.*)?)$ fcgi://phpfpm:9000/var/www/html/$2
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://phpfpm:9000/var/www/html/$1
DocumentRoot /var/www/html
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log common
<Directory /var/www/html>
AllowOverride All
</Directory>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
</VirtualHost>

+ 7
- 0
02-Extensions/wp-multi-subdir/Makefile Näytä tiedosto

@ -0,0 +1,7 @@
SUBDIRS = $(sort $(dir $(wildcard */.)))
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)

+ 7
- 0
Makefile Näytä tiedosto

@ -0,0 +1,7 @@
SUBDIRS = $(sort $(dir $(wildcard */.)))
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)

+ 10
- 0
README.md Näytä tiedosto

@ -0,0 +1,10 @@
# Docker Apache Images
Apache images built specifically for Web Services development.
### Avoiding Certificate Errors
In order to avoid SSL certificate errors when working with GIT LFS use the following after downloading the repo:
```git config http.sslVerify false```