github.com/Datadog/cnab-go@v0.3.3-beta1.0.20191007143216-bba4b7e723d0/testdata/bundles/example-outputs/build.sh (about)

     1  #!/bin/bash -eu
     2  
     3  readonly PROGDIR="$(cd "$(dirname "${0}")" && pwd)"
     4  readonly IMAGE="pvtlmc/example-outputs"
     5  
     6  function main() {
     7    docker build -f "${PROGDIR}/cnab/Dockerfile" -t "${IMAGE}:latest" "${PROGDIR}/cnab"
     8  
     9    local image
    10    image=$(docker inspect --format='{{index .RepoDigests 0}}' ${IMAGE})
    11  
    12    printf "\nSet DOCKER_INTEGRATION_TEST_IMAGE=%s\nto override the image used in the docker integration tests\n" "${image}"
    13  }
    14  
    15  main