mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-10 10:32:39 +01:00
Rename to bin/dev-shell to avoid confusion
This commit is contained in:
24
bin/dev-shell
Executable file
24
bin/dev-shell
Executable 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 "${@}"
|
||||
Reference in New Issue
Block a user