Skip to content

Commit cbe1d06

Browse files
support mike via docker container
1 parent d2aac75 commit cbe1d06

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

tools/mike.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#/bin/bash
2+
3+
DATA_DIR="$(cd "$(dirname "${0}")/.." && pwd)"
4+
GIT_USERNAME="$(git config user.name)"
5+
GIT_EMAIL="$(git config user.email)"
6+
COMMAND="/data/tools/run-in-container/mike.sh '${GIT_USERNAME}' '${GIT_EMAIL}' $1 $2 $3 $4"
7+
8+
docker run -v ${DATA_DIR}:/data -p 8000:8000 --rm -it trivadis/mktools bash -c "${COMMAND}"

tools/run-in-container/mike.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#/bin/bash
2+
3+
GIT_USERNAME=$1
4+
GIT_EMAIL=$2
5+
6+
cd /data
7+
git config --global user.name "${GIT_USERNAME}"
8+
git config --global user.email "${GIT_EMAIL}"
9+
mike $3 $4 $5 $6

0 commit comments

Comments
 (0)