github.com/metacurrency/holochain@v0.1.0-alpha-26.0.20200915073418-5c83169c9b5b/bin/holochain.system.buildImageForAppTests (about)

     1  #!/usr/bin/env bash
     2  
     3  holochainBinDir="$GOPATH/src/github.com/holochain/holochain-proto/bin"
     4  
     5  #set the HOLOCHAIN_SYSTEM_BIN variable
     6  . $holochainBinDir/holochain.system.checkInstalled || { echo "HC: cannot find holochain bin directory. exitting" && exit 1 ; }
     7  
     8  # use --no-cache=true or not? Not because its up to developer to manage
     9  noCache=""
    10  $holochainBinDir/holochain.tools.confirm "Use --no-cache=true to build the docker image (takes time, probabaly not needed) ? (N/y)" && noCache="--no-cache=true"
    11  docker build $noCache -f $HOLOCHAIN_SYSTEM_BIN/../docker/core.docker/Dockerfile.core.entrypointForLocalUID -t Holochain/holochain-proto/core.docker.forapptests $HOLOCHAIN_SYSTEM_BIN/..