From 650bdcb161d0f91064b3a5448792116f853b1007 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Sun, 19 May 2024 23:17:04 +0200 Subject: [PATCH] Add dev util: shell --- bin/shell | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/shell diff --git a/bin/shell b/bin/shell new file mode 100755 index 0000000..0002ab8 --- /dev/null +++ b/bin/shell @@ -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 "${@}"