Kaynağa Gözat

add small dottie wrapper

Christian Winther 1 yıl önce
ebeveyn
işleme
f486bfb73e
1 değiştirilmiş dosya ile 16 ekleme ve 0 silme
  1. 16 0
      docker/dottie

+ 16 - 0
docker/dottie

@@ -0,0 +1,16 @@
+#!/bin/bash
+
+declare root="${PWD}"
+
+if command -v git &>/dev/null; then
+    root=$(git rev-parse --show-toplevel)
+fi
+
+exec docker run \
+    --rm \
+    --interactive \
+    --tty \
+    --volume "${root}:/var/www" \
+    --workdir /var/www \
+    ghcr.io/jippi/dottie \
+    "$@"