Skip to content

Commit

Permalink
🔨(client) add bin/qcc docker wrapper
Browse files Browse the repository at this point in the history
The bin/qcc scripts wraps the qcc command call using docker.
  • Loading branch information
jmaupetit committed Jun 12, 2024
1 parent b0683a2 commit 349fbe0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bin/qcc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -eo pipefail

declare DOCKER_USER
DOCKER_UID="$(id -u)"
DOCKER_GID="$(id -g)"
DOCKER_USER="${DOCKER_UID}:${DOCKER_GID}"

DOCKER_USER=${DOCKER_USER} \
DOCKER_UID=${DOCKER_UID} \
DOCKER_GID=${DOCKER_GID} \
docker compose run --rm \
client \
qcc "$@"

0 comments on commit 349fbe0

Please sign in to comment.