Skip to content

Commit

Permalink
feat: add run.sh bash file to run commands faster
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Mar 2, 2023
1 parent f439570 commit a225578
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# Load environment variables from .env file
if [[ -f .env ]]; then
source .env
fi

# Set network name for container
SHARED_SERVICES_NETWORK=${SHARED_SERVICES_NAMESPACE//./_}_network
export SHARED_SERVICES_NETWORK

# Set Docker BuildKit and Compose Docker CLI Build flags
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1

# Run command in container
docker-compose run --rm --no-deps \
-e FORCE_COLOR=1 \
-e SHARED_SERVICES_NETWORK \
app /bin/pnpm "$@"

0 comments on commit a225578

Please sign in to comment.