Skip to content

Commit

Permalink
Updated images
Browse files Browse the repository at this point in the history
  • Loading branch information
john-ea committed Apr 18, 2024
1 parent f32bc0e commit 81fa3e8
Show file tree
Hide file tree
Showing 26 changed files with 103 additions and 793 deletions.
4 changes: 2 additions & 2 deletions .devilbox/www/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
putenv('RES_OPTIONS=retrans:1 retry:1 timeout:1 attempts:1');


$DEVILBOX_VERSION = 'v3.0.0-beta-0.4';
$DEVILBOX_DATE = '2023-01-30';
$DEVILBOX_VERSION = 'v3.0.0-beta-0.5';
$DEVILBOX_DATE = '2024-04-18';
$DEVILBOX_API_PAGE = 'devilbox-api/status.json';

//
Expand Down
7 changes: 7 additions & 0 deletions .devilbox/www/htdocs/assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ nav.navbar {



/* Overwrites for xdebug_info();
-------------------------------------------------- */
a.navbar-brand, a.nav-link, .nav-item.dropdown a {
text-decoration: none !important;
}



/* mail.php;
-------------------------------------------------- */
Expand Down
773 changes: 0 additions & 773 deletions .devilbox/www/htdocs/opcache.php

This file was deleted.

4 changes: 2 additions & 2 deletions .devilbox/www/include/lib/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,9 @@ private function _buildMenu()
}
if ($el['path'] === '__OPCACHE__') {
if (version_compare(loadClass('Php')->getVersion(), '7.1', '<')){
$el['path'] = '/vendor/opcache/opcache-gui-2.5.4/';
$el['path'] = '/vendor/opcache-gui-2.5.4/';
} else {
$el['path'] = '/vendor/opcache/opcache-gui-3.5.4/';
$el['path'] = '/vendor/opcache-gui-3.5.4/';
}
}
if ($el['path'] === '__PHPCACHEADMIN__') {
Expand Down
9 changes: 7 additions & 2 deletions .tests/tests/framework-wordpress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@ VHOST="my-wordpress"
# Create vhost dir
create_vhost_dir "${VHOST}"


# Switch to an earlier Wordpress version for older PHP versions
if [ "${PHP_VERSION}" = "5.6" ]; then
WP_BRANCH=6.2.4
else
WP_BRANCH="$(git ls-remote --tags https://github.com/WordPress/WordPress | sed 's/^.*tags\///g' | grep -E '^[.0-9]+$' | tr '-' '~' | sort -V | tail -1)"
fi
# Download Wordpress
run "docker-compose exec --user devilbox -T php bash -c ' \
git clone https://github.com/WordPress/WordPress /shared/httpd/${VHOST}/wordpress \
git clone --depth=1 --single-branch --branch=${WP_BRANCH} https://github.com/WordPress/WordPress /shared/httpd/${VHOST}/wordpress \
&& ln -sf wordpress /shared/httpd/${VHOST}/htdocs'" \
"${RETRIES}" "${DVLBOX_PATH}"

Expand Down
Empty file added cfg/mariadb-10.11/.keepme
Empty file.
5 changes: 5 additions & 0 deletions cfg/mariadb-10.11/devilbox-custom.cnf-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mysqld]
;key_buffer_size=16M

[mysqldump]
;quick
Empty file added cfg/mariadb-11.0/.keepme
Empty file.
5 changes: 5 additions & 0 deletions cfg/mariadb-11.0/devilbox-custom.cnf-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mysqld]
;key_buffer_size=16M

[mysqldump]
;quick
Empty file added cfg/mariadb-11.1/.keepme
Empty file.
5 changes: 5 additions & 0 deletions cfg/mariadb-11.1/devilbox-custom.cnf-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mysqld]
;key_buffer_size=16M

[mysqldump]
;quick
Empty file added cfg/mariadb-11.2/.keepme
Empty file.
5 changes: 5 additions & 0 deletions cfg/mariadb-11.2/devilbox-custom.cnf-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mysqld]
;key_buffer_size=16M

[mysqldump]
;quick
Empty file added cfg/mariadb-11.3/.keepme
Empty file.
5 changes: 5 additions & 0 deletions cfg/mariadb-11.3/devilbox-custom.cnf-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mysqld]
;key_buffer_size=16M

[mysqldump]
;quick
Empty file added cfg/mysql-8.1/.keepme
Empty file.
5 changes: 5 additions & 0 deletions cfg/mysql-8.1/devilbox-custom.cnf-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mysqld]
;key_buffer_size=16M

[mysqldump]
;quick
Empty file added cfg/mysql-8.2/.keepme
Empty file.
5 changes: 5 additions & 0 deletions cfg/mysql-8.2/devilbox-custom.cnf-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mysqld]
;key_buffer_size=16M

[mysqldump]
;quick
Empty file added cfg/mysql-8.3/.keepme
Empty file.
5 changes: 5 additions & 0 deletions cfg/mysql-8.3/devilbox-custom.cnf-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mysqld]
;key_buffer_size=16M

[mysqldump]
;quick
4 changes: 3 additions & 1 deletion check-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,9 @@ TLD_SUFFIX="$( get_env_value "TLD_SUFFIX" )"
DNS_RECORD_WRONG=0
while read -r project; do
VHOST="$( basename "${project}" ).${TLD_SUFFIX}"
if ! validate_dns "${VHOST}"; then
if [ "${VHOST:0:1}" == "." ]; then
log_debug "Project '${VHOST}' has skipped"
elif ! validate_dns "${VHOST}"; then
log_err "Project '${VHOST}' has no valid DNS record"
RET_CODE=$(( RET_CODE + 1))
DNS_RECORD_WRONG=1
Expand Down
18 changes: 15 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ services:
# Bind (DNS Server)
# ------------------------------------------------------------
bind:
image: cytopia/bind:alpine-0.35
image: johnea/bind:alpine
hostname: bind
restart: always
ports:
Expand Down Expand Up @@ -233,7 +233,7 @@ services:
# Web Server
# ------------------------------------------------------------
httpd:
image: devilbox/${HTTPD_SERVER}:${HTTPD_FLAVOUR:-alpine}-1.2
image: johnea/webserver:${HTTPD_SERVER}-${HTTPD_FLAVOUR:-alpine}
hostname: httpd

environment:
Expand Down Expand Up @@ -345,7 +345,7 @@ services:
# MySQL Database
# ------------------------------------------------------------
mysql:
image: devilbox/mysql:${MYSQL_SERVER}-0.21
image: johnea/mysql:${MYSQL_SERVER}
hostname: mysql

environment:
Expand Down Expand Up @@ -519,6 +519,9 @@ volumes:
devilbox-mysql-5.6:
devilbox-mysql-5.7:
devilbox-mysql-8.0:
devilbox-mysql-8.1:
devilbox-mysql-8.2:
devilbox-mysql-8.3:
devilbox-mariadb-5.5:
devilbox-mariadb-10.0:
devilbox-mariadb-10.1:
Expand All @@ -531,6 +534,11 @@ volumes:
devilbox-mariadb-10.8:
devilbox-mariadb-10.9:
devilbox-mariadb-10.10:
devilbox-mariadb-10.11:
devilbox-mariadb-11.0:
devilbox-mariadb-11.1:
devilbox-mariadb-11.2:
devilbox-mariadb-11.3:
devilbox-percona-5.5:
devilbox-percona-5.6:
devilbox-percona-5.7:
Expand Down Expand Up @@ -563,6 +571,8 @@ volumes:
devilbox-pgsql-14-alpine:
devilbox-pgsql-15:
devilbox-pgsql-15-alpine:
devilbox-pgsql-16:
devilbox-pgsql-16-alpine:
devilbox-pgsql-latest:
devilbox-pgsql-alpine:

Expand All @@ -578,4 +588,6 @@ volumes:
devilbox-mongo-4.2:
devilbox-mongo-4.4:
devilbox-mongo-5.0:
devilbox-mongo-6.0:
devilbox-mongo-7.0:
devilbox-mongo-latest:
Binary file modified docs/_includes/figures/devilbox/devilbox-intranet-dash-all.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 19 additions & 5 deletions env-example
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ HTTPD_SERVER=nginx-stable
#MYSQL_SERVER=mysql-5.6
#MYSQL_SERVER=mysql-5.7
#MYSQL_SERVER=mysql-8.0
#MYSQL_SERVER=mysql-8.1
#MYSQL_SERVER=mysql-8.2
#MYSQL_SERVER=mysql-8.3
#MYSQL_SERVER=percona-5.5
#MYSQL_SERVER=percona-5.6
#MYSQL_SERVER=percona-5.7
Expand All @@ -306,11 +309,16 @@ HTTPD_SERVER=nginx-stable
#MYSQL_SERVER=mariadb-10.3
#MYSQL_SERVER=mariadb-10.4
#MYSQL_SERVER=mariadb-10.5
MYSQL_SERVER=mariadb-10.6
#MYSQL_SERVER=mariadb-10.6
#MYSQL_SERVER=mariadb-10.7
#MYSQL_SERVER=mariadb-10.8
#MYSQL_SERVER=mariadb-10.9
#MYSQL_SERVER=mariadb-10.10
MYSQL_SERVER=mariadb-10.11
#MYSQL_SERVER=mariadb-11.0
#MYSQL_SERVER=mariadb-11.1
#MYSQL_SERVER=mariadb-11.2
#MYSQL_SERVER=mariadb-11.3


###
Expand Down Expand Up @@ -348,9 +356,11 @@ MYSQL_SERVER=mariadb-10.6
#PGSQL_SERVER=13
#PGSQL_SERVER=13-alpine
#PGSQL_SERVER=14
PGSQL_SERVER=14-alpine
#PGSQL_SERVER=14-alpine
#PGSQL_SERVER=15
#PGSQL_SERVER=15-alpine
PGSQL_SERVER=15-alpine
#PGSQL_SERVER=16
#PGSQL_SERVER=16-alpine
#PGSQL_SERVER=latest
#PGSQL_SERVER=alpine

Expand Down Expand Up @@ -379,9 +389,11 @@ PGSQL_SERVER=14-alpine
#REDIS_SERVER=6.0
#REDIS_SERVER=6.0-alpine
#REDIS_SERVER=6.2
REDIS_SERVER=6.2-alpine
#REDIS_SERVER=6.2-alpine
#REDIS_SERVER=7.0
#REDIS_SERVER=7.0-alpine
#REDIS_SERVER=7.2
REDIS_SERVER=7.2-alpine
#REDIS_SERVER=latest
#REDIS_SERVER=alpine

Expand Down Expand Up @@ -427,7 +439,9 @@ MEMCD_SERVER=1.6-alpine
#MONGO_SERVER=4.0
#MONGO_SERVER=4.2
#MONGO_SERVER=4.4
MONGO_SERVER=5.0
#MONGO_SERVER=5.0
MONGO_SERVER=6.0
#MONGO_SERVER=7.0
#MONGO_SERVER=latest


Expand Down
13 changes: 8 additions & 5 deletions update-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ CWD="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
### BIND
###
if [ "${WHICH}" = "all" ] || [ "${WHICH}" = "bind" ]; then
TAG="$( grep '^[[:space:]]*image:[[:space:]]*cytopia/bind' "${CWD}/docker-compose.yml" | sed 's/^.*://g' )"
docker pull cytopia/bind:${TAG}
TAG="$( grep '^[[:space:]]*image:[[:space:]]*johnea/bind' "${CWD}/docker-compose.yml" | sed 's/^.*://g' )"
docker pull johnea/bind:${TAG}
fi


Expand All @@ -58,10 +58,13 @@ fi
### HTTPD
###
if [ "${WHICH}" = "all" ] || [ "${WHICH}" = "httpd" ]; then
SUFFIX="$( grep -E '^\s+image:\s+devilbox/\${HTTPD_SERVER' "${CWD}/docker-compose.yml" | sed 's/.*://g' )"
SUFFIX="$( grep -Eo '^#*HTTPD_FLAVOUR=[-a-z]+[.0-9]*' "${CWD}/env-example" | sed 's/.*=//g' )"
IMAGES="$( grep -Eo '^#*HTTPD_SERVER=[-a-z]+[.0-9]*' "${CWD}/env-example" | sed 's/.*=//g' )"
if [ -z "${SUFFIX}" ]; then
SUFFIX="$( grep -Eo '^\s+image:\s+johnea/webserver:\${HTTPD_SERVER}-\${HTTPD_FLAVOUR:[-a-z]+[.0-9]*' "${CWD}/docker-compose.yml" | sed 's/.*-//g' )";
fi
echo "${IMAGES}" | while read version ; do
docker pull devilbox/${version}:${SUFFIX}
docker pull johnea/webserver:${version}-${SUFFIX}
done
fi

Expand All @@ -72,7 +75,7 @@ fi
if [ "${WHICH}" = "all" ] || [ "${WHICH}" = "mysql" ]; then
IMAGES="$( grep -Eo '^#*MYSQL_SERVER=[-a-z]+[.0-9]*' "${CWD}/env-example" | sed 's/.*=//g' )"
echo "${IMAGES}" | while read version ; do
docker pull devilbox/mysql:${version}
docker pull johnea/mysql:${version}
done
fi

Expand Down

0 comments on commit 81fa3e8

Please sign in to comment.