Add new redis-basics-config test
This commit is contained in:
parent
709b482da3
commit
e82eb91f9e
|
|
@ -138,6 +138,7 @@ imageTests+=(
|
|||
'
|
||||
[redis]='
|
||||
redis-basics
|
||||
redis-basics-config
|
||||
redis-basics-persistent
|
||||
'
|
||||
[rethinkdb]='
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
../redis-basics/run.sh
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||
|
||||
image="$1"
|
||||
|
||||
newImage="$("$dir/../image-name.sh" librarytest/redis-basics-persistent "$image")"
|
||||
"$dir/../docker-build.sh" "$dir" "$newImage" <<EOD
|
||||
FROM $image
|
||||
RUN echo 'save 60 1000' > ../test.conf
|
||||
CMD ["../test.conf", "--appendonly", "yes"]
|
||||
EOD
|
||||
|
||||
exec "$dir/real-run.sh" "$newImage"
|
||||
Loading…
Reference in New Issue