Skip to content

Commit

Permalink
Merge pull request #240 from GlueOps/feat/adding-log4brains-adr-tool
Browse files Browse the repository at this point in the history
feat: adding log4brains (adr tool) docker shortcuts - https://github.com/thomvaill/log4brains
  • Loading branch information
hamzabouissi authored Feb 4, 2025
2 parents 475b6ec + 65b47e0 commit 6dc9470
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .devcontainer/tools/log4brains.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Ensure the script is executable: chmod +x script.sh

# Extract user ID and group ID for the docker group
USER_ID=$(id -u)
GROUP_ID=$(getent group docker | cut -d: -f3)

# Run the docker container with passed parameters
docker run --rm -ti -u "$USER_ID:$GROUP_ID" \
-v "$(pwd)":/workdir \
-p 4004:4004 \
thomvaill/log4brains:1.1.0 "$@"

0 comments on commit 6dc9470

Please sign in to comment.