feat: add native Adminer database access
This commit is contained in:
@@ -4,7 +4,9 @@ RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/m
|
||||
nginx=1.30.4-r3 mariadb=11.8.8-r0 mariadb-client=11.8.8-r0 bash file pax-utils \
|
||||
&& mkdir -p /stage/root /stage/bin /stage/lib \
|
||||
&& curl -fsSLo /tmp/wp-cli.phar https://github.com/wp-cli/wp-cli/releases/download/v2.12.0/wp-cli-2.12.0.phar \
|
||||
&& echo 'ce34ddd838f7351d6759068d09793f26755463b4a4610a5a5c0a97b68220d85c /tmp/wp-cli.phar' | sha256sum -c -
|
||||
&& echo 'ce34ddd838f7351d6759068d09793f26755463b4a4610a5a5c0a97b68220d85c /tmp/wp-cli.phar' | sha256sum -c - \
|
||||
&& curl -fsSLo /tmp/adminer.php https://github.com/vrana/adminer/releases/download/v6.0.1/adminer-6.0.1-mysql-en.php \
|
||||
&& echo 'aa1964047a7ce6e44b26db14dc16a942820c54034b417e6223884df6fa8e24a9 /tmp/adminer.php' | sha256sum -c -
|
||||
|
||||
RUN docker-php-ext-install -j2 mysqli pdo_mysql
|
||||
|
||||
|
||||
@@ -114,6 +114,8 @@ EOF
|
||||
done
|
||||
|
||||
cp /tmp/wp-cli.phar "$root/usr/local/bin/wp-cli.phar"
|
||||
mkdir -p "$root/usr/share/aurora"
|
||||
cp /tmp/adminer.php "$root/usr/share/aurora/adminer.php"
|
||||
cat > "$stage/bin/wp" <<'EOF'
|
||||
#!/bin/sh
|
||||
runtime_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
@@ -136,6 +138,7 @@ cat > "$stage/runtime.template.json" <<EOF
|
||||
{ "id": "mariadb", "version": "$mariadb_version", "executable": "bin/mariadbd" },
|
||||
{ "id": "mariadb-client", "version": "$mariadb_version", "executable": "bin/mariadb" },
|
||||
{ "id": "mariadb-dump", "version": "$mariadb_version", "executable": "bin/mariadb-dump" },
|
||||
{ "id": "adminer", "version": "6.0.1", "executable": "root/usr/share/aurora/adminer.php" },
|
||||
{ "id": "wp-cli", "version": "2.12.0", "executable": "bin/wp" }
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user