wordpress/bin/dev-shell

25 lines
532 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
# This is development util
main() {
local wpVersion="${1:-6.5.3}"
set -ex
2024-05-20 22:55:44 +02:00
docker build \
--file=Dockerfile.dev \
--build-arg="WP_VERSION=${wpVersion}" \
-t "localhost/nlss-wp-dev:${wpVersion}" .
docker run \
--init \
--rm \
-it \
2024-05-20 23:48:54 +02:00
-v "${PWD}/:/workspace" \
-v "${PWD}/data/fish/config:/root/.config/fish" \
-v "${PWD}/data/fish/local:/root/.local/share/fish" \
"localhost/nlss-wp-dev:${wpVersion}"
}
main "${@}"