giordanocardillo/composer

By giordanocardillo

Updated almost 8 years ago

Image
0

30

giordanocardillo/composer repository overview

Use with

set -e

IMAGE="giordanocardillo/composer:php7.1.11-arm"


# Setup options for connecting to docker host
if [ -z "$DOCKER_HOST" ]; then
    DOCKER_HOST="/var/run/docker.sock"
fi
if [ -S "$DOCKER_HOST" ]; then
    DOCKER_ADDR="-v $DOCKER_HOST:$DOCKER_HOST -e DOCKER_HOST"
else
    DOCKER_ADDR="-e DOCKER_HOST -e DOCKER_TLS_VERIFY -e DOCKER_CERT_PATH"
fi


# Setup volume mounts for context
if [ "$(pwd)" != '/' ]; then
    VOLUMES="-v $(pwd):/app"
fi

# Only allocate tty if we detect one
if [ -t 1 ]; then
    DOCKER_RUN_OPTIONS="-t"
fi
if [ -t 0 ]; then
    DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS -i"
fi

exec docker run --rm $DOCKER_RUN_OPTIONS $DOCKER_ADDR $VOLUMES $IMAGE "$@"

Tag summary

Content type

Image

Digest

Size

130.6 MB

Last updated

almost 8 years ago

docker pull giordanocardillo/composer:php7.1.11-arm