github.com/ahjdzx/deis@v1.1.1/cache/image/build.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  # fail on any command exiting non-zero
     4  set -eo pipefail
     5  
     6  if [[ -z $DOCKER_BUILD ]]; then
     7    echo
     8    echo "Note: this script is intended for use by the Dockerfile and not as a way to build the cache locally"
     9    echo
    10    exit 1
    11  fi
    12  
    13  # redis to use
    14  REDIS=2.8.17
    15  SHA=913479f9d2a283bfaadd1444e17e7bab560e5d1e
    16  
    17  cd /tmp
    18  
    19  curl -sSL http://download.redis.io/releases/redis-$REDIS.tar.gz -o redis.tar.gz
    20  
    21  echo "$SHA *redis.tar.gz" | sha1sum -c -
    22  mkdir /usr/src/redis
    23  tar -xzf redis.tar.gz -C /usr/src/redis --strip-components=1
    24  make -C /usr/src/redis
    25  make -C /usr/src/redis install