Add dev util: shell

This commit is contained in:
Aleksandar Puharic 2024-05-19 23:17:04 +02:00
parent aa5e378f30
commit 650bdcb161
Signed by: xZero707
GPG Key ID: 3CC53DCAA9C237BB

16
bin/shell Executable file
View 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 "${@}"