github.com/puellanivis/breton@v0.2.16/build.env (about)

     1  #!/bin/sh
     2  
     3  export DOCKER_REGISTRY="docker.snow.mesh:5000"
     4  export DOCKER_MACHINE="breton"
     5  
     6  export MASHER_ROOT="breton"
     7  export MASHER_PREFIX=""
     8  export MASHER_LIBS=".=github.com/puellanivis/breton"
     9  
    10  # always refresh the docker-machine env variables if the machine exists.
    11  which docker-machine > /dev/null 2>&1 && docker-machine env $DOCKER_MACHINE > /dev/null 2>&1 && eval `docker-machine env $DOCKER_MACHINE`
    12  
    13  [ -r ~/.docker/config.json ] && grep "$DOCKER_REGISTRY" ~/.docker/config.json > /dev/null 2>&1 && return
    14  
    15  export DOCKER_USER=`whoami`
    16  export DOCKER_EMAIL=`git config user.email`
    17  
    18  echo docker login \
    19  	--username="$DOCKER_USER" \
    20  	--email="$DOCKER_EMAIL" \
    21  	$DOCKER_REGISTRY