mirror of
https://github.com/casjaysdevdocker/mysql
synced 2024-12-03 11:23:13 -05:00
🗃️ Committing everything that changed 🗃️
Dockerfile rootfs/root/docker/setup/03-files.sh rootfs/root/docker/setup/05-custom.sh
This commit is contained in:
parent
9561acbebb
commit
2bad19b783
@ -1,4 +1,4 @@
|
||||
# syntax=docker/dockerfile:experimental
|
||||
# syntax=docker/dockerfile:1
|
||||
# Docker image for mysql using the alpine template
|
||||
ARG IMAGE_NAME="mysql"
|
||||
ARG PHP_SERVER="mysql"
|
||||
|
@ -27,7 +27,8 @@ exitCode=0
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Main script
|
||||
copy "/tmp/etc/." "/etc/"
|
||||
symlink "/etc/mysql/my.cnf" "/etc/my.cnf"
|
||||
[ -d "/tmp/etc" ] && copy "/tmp/etc/." "/etc/"
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Set the exit code
|
||||
exitCode=$?
|
||||
|
@ -32,16 +32,14 @@ PHPMYADMIN_DOWNLOAD_URL="https://files.phpmyadmin.net/phpMyAdmin/${PHPMYADMIN_VE
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Main script
|
||||
echo "Installing phpmyadmin from $PHPMYADMIN_DOWNLOAD_URL"
|
||||
[ -e "/etc/my.cnf" ] && rm -Rf "/etc/my.cnf"
|
||||
[ -d "$PHPMYADMIN_WWW_ROOT" ] && rm -Rf "$PHPMYADMIN_WWW_ROOT"
|
||||
if curl -q -LSsf "$PHPMYADMIN_DOWNLOAD_URL" -o "/tmp/phpmyadmin.zip"; then
|
||||
mkdir -p "$PHPMYADMIN_WWW_ROOT" "/etc/phpmyadmin"
|
||||
unzip -q "/tmp/phpmyadmin.zip" -d "/tmp" && rm -Rf "/tmp/phpmyadmin.zip"
|
||||
mv -f "/tmp/phpMyAdmin-${PHPMYADMIN_VERSION}-all-languages" "$PHPMYADMIN_WWW_ROOT"
|
||||
git clone --depth 1 "https://github.com/phpmyadmin/themes" "/tmp/themes"
|
||||
for d in blueberry boodark bootstrap dark-orange darkmod-neo darkwolf eyed fallen fistu metro mhn; do
|
||||
mkdir -p "$PHPMYADMIN_WWW_ROOT/themes/$d" &&
|
||||
[ -d "/tmp/themes/$d" ] && copy "/tmp/themes/$d/." "$PHPMYADMIN_WWW_ROOT/themes/$d/"
|
||||
for theme in blueberry boodark bootstrap dark-orange darkmod-neo darkwolf eyed fallen fistu metro mhn; do
|
||||
echo "Installing $theme to $PHPMYADMIN_WWW_ROOT/themes/$theme"
|
||||
mkdir -p "$PHPMYADMIN_WWW_ROOT/themes/$theme" && [ -d "/tmp/themes/$theme" ] && copy "/tmp/themes/$theme/." "$PHPMYADMIN_WWW_ROOT/themes/$theme/"
|
||||
done
|
||||
symlink "/etc/phpmyadmin/config.php" "$PHPMYADMIN_WWW_ROOT/config.inc.php"
|
||||
chown -Rf $WWW_USER "$PHPMYADMIN_WWW_ROOT"
|
||||
|
Loading…
Reference in New Issue
Block a user