-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add run.sh bash file to run commands faster
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |