mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-10 00:12:40 +01:00
Add dev util: shell
This commit is contained in:
16
bin/shell
Executable file
16
bin/shell
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This is development util
|
||||
main() {
|
||||
local wpVersion="${1:-latest}"
|
||||
docker run \
|
||||
--init \
|
||||
--entrypoint="/bin/bash" \
|
||||
--workdir="/app" \
|
||||
--rm \
|
||||
-it \
|
||||
-v "${PWD}/src/init-utils:/app" \
|
||||
"ghcr.io/n0rthernl1ghts/wordpress:${wpVersion}"
|
||||
}
|
||||
|
||||
main "${@}"
|
||||
Reference in New Issue
Block a user