Initial commit
This commit is contained in:
commit
fe0b5cfd37
|
@ -0,0 +1,35 @@
|
|||
<VirtualHost *:80>
|
||||
# The ServerName directive sets the request scheme, hostname and port that
|
||||
# the server uses to identify itself. This is used when creating
|
||||
# redirection URLs. In the context of virtual hosts, the ServerName
|
||||
# specifies what hostname must appear in the request's Host: header to
|
||||
# match this virtual host. For the default virtual host (this file) this
|
||||
# value is not decisive as it is used as a last resort host regardless.
|
||||
# However, you must set it for any further virtual host explicitly.
|
||||
#ServerName www.example.com
|
||||
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/html
|
||||
|
||||
<Directory /var/www/html>
|
||||
AllowOverride all
|
||||
</Directory>
|
||||
|
||||
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
||||
# error, crit, alert, emerg.
|
||||
# It is also possible to configure the loglevel for particular
|
||||
# modules, e.g.
|
||||
#LogLevel info ssl:warn
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
# For most configuration files from conf-available/, which are
|
||||
# enabled or disabled at a global level, it is possible to
|
||||
# include a line for only one particular virtual host. For example the
|
||||
# following line enables the CGI configuration for this host only
|
||||
# after it has been globally disabled with "a2disconf".
|
||||
#Include conf-available/serve-cgi-bin.conf
|
||||
</VirtualHost>
|
||||
|
||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
@ -0,0 +1,22 @@
|
|||
FROM ubuntu:18.04
|
||||
|
||||
COPY ["timezone", "localtime", "/etc/"]
|
||||
|
||||
RUN apt update -y \
|
||||
&& apt-get install gnupg gnupg1 gnupg2 software-properties-common -y \
|
||||
&& apt-add-repository ppa:ondrej/php \
|
||||
&& apt-get update -y \
|
||||
&& apt-get install apache2 php php-soap php-snmp php-mysql php-curl php-ldap php-xml php-mbstring php-oauth php-gd cron -y \
|
||||
&& apt-get purge gnupg gnupg1 gnupg2 software-properties-common -y \
|
||||
&& apt-get autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /var/www/html/* \
|
||||
&& a2enmod rewrite
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
COPY 000-default.conf /etc/apache2/sites-available
|
||||
EXPOSE 80
|
||||
CMD ["/docker-entrypoint.sh"]
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
FROM debian
|
||||
|
||||
|
||||
RUN apt update -y \
|
||||
&& apt-get install apache2 php php-soap php-snmp php-mysql php-curl php-ldap php-xml php-mbstring php-oauth php-gd cron -y \
|
||||
&& apt-get autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /var/www/html/* \
|
||||
&& a2enmod rewrite
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
COPY 000-default.conf /etc/apache2/sites-available
|
||||
EXPOSE 80
|
||||
CMD ["/docker-entrypoint.sh"]
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
if [ $# -eq 1 ]
|
||||
NM=`uname -a && date`
|
||||
NAME=`echo $NM | md5sum | cut -f1 -d" "`
|
||||
then
|
||||
ppa_name=`echo "$1" | cut -d":" -f2 -s`
|
||||
if [ -z "$ppa_name" ]
|
||||
then
|
||||
echo "PPA name not found"
|
||||
echo "Utility to add PPA repositories in your debian machine"
|
||||
echo "$0 ppa:user/ppa-name"
|
||||
else
|
||||
echo "$ppa_name"
|
||||
echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu xenial main" >> /etc/apt/sources.list
|
||||
apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
|
||||
key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
|
||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
|
||||
rm -rf /tmp/${NAME}_apt_add_key.txt
|
||||
fi
|
||||
else
|
||||
echo "Utility to add PPA repositories in your debian machine"
|
||||
echo "$0 ppa:user/ppa-name"
|
||||
fi
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
build_version=`cat last_version`
|
||||
(( build_version++ ))
|
||||
echo $build_version;
|
||||
|
||||
docker build --tag=mxfox.ru/chimera/fox-web-basic:${build_version} .
|
||||
docker tag mxfox.ru/chimera/fox-web-basic:${build_version} mxfox.ru/chimera/fox-web-basic:latest
|
||||
echo ${build_version} > last_version
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
service cron start
|
||||
bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DFOREGROUND"
|
|
@ -0,0 +1 @@
|
|||
28
|
|
@ -0,0 +1,2 @@
|
|||
deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main
|
||||
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu focal main
|
Binary file not shown.
Loading…
Reference in New Issue