Rename to bin/dev-shell to avoid confusion

This commit is contained in:
2024-05-20 21:58:24 +02:00
parent 650bdcb161
commit a24c5bd1a5
4 changed files with 44 additions and 16 deletions

24
bin/dev-shell Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# This is development util
main() {
local wpVersion="${1:-6.5.3}"
set -ex
docker build \
--file=Dockerfile.dev \
--build-arg="WP_VERSION=${wpVersion}" \
-t "localhost/nlss-wp-dev:${wpVersion}" .
docker run \
--init \
--rm \
-it \
-v "${PWD}/src/:/workspace" \
"localhost/nlss-wp-dev:${wpVersion}"
}
main "${@}"