run.sh 362 B

123456789101112131415
  1. #!/bin/bash
  2. set -eo pipefail
  3. dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
  4. image="$1"
  5. newImage="$("$dir/../image-name.sh" librarytest/redis-basics-persistent "$image")"
  6. "$dir/../docker-build.sh" "$dir" "$newImage" <<EOD
  7. FROM $image
  8. RUN echo 'save 60 1000' > ../test.conf
  9. CMD ["../test.conf", "--appendonly", "yes"]
  10. EOD
  11. exec "$dir/real-run.sh" "$newImage"