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
docker ps --format '{{.Names}}' | egrep '^container_name$' || docker run --rm --detach --name container_name org/container_name |
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
VERSION=$(node -pe "require('./package.json').version") DOCKER_BUILDKIT=1 docker build --no-cache --tag $DOCKER_ORG/$DOCKER_NAME:$VERSION -f Dockerfile . |
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
#!/usr/bin/env bash | |
container_name=$1 | |
shift | |
timeout=$1 | |
default_timeout=120 | |
if [ -z ${timeout} ]; then | |
timeout=${default_timeout} | |
fi |
OlderNewer