Bläddra i källkod

add Percona Server for MongoDB images

Mykola Marzhan 7 år sedan
förälder
incheckning
b50c0cca7d
3 ändrade filer med 18 tillägg och 1 borttagningar
  1. 5 0
      library/percona
  2. 3 0
      test/config.sh
  3. 10 1
      test/run.sh

+ 5 - 0
library/percona

@@ -18,3 +18,8 @@ Tags: 5.6.42-centos, 5.6-centos, 5.6.42, 5.6, ps-5.6.42, ps-5.6
 GitCommit: 290549e8e7ac5acbe4a3aa76ce282bc5e0e21043
 GitCommit: 290549e8e7ac5acbe4a3aa76ce282bc5e0e21043
 Directory: percona-server.56
 Directory: percona-server.56
 File: Dockerfile-dockerhub
 File: Dockerfile-dockerhub
+
+Tags: psmdb-3.6.8, psmdb-3.6
+GitCommit: 7cf9dd5e3c1267e635067ad29a98e031e8e3fb6d
+Directory: percona-server-mongodb.36
+File: Dockerfile

+ 3 - 0
test/config.sh

@@ -26,6 +26,7 @@ testAlias+=(
 
 
 	[mariadb]='mysql'
 	[mariadb]='mysql'
 	[percona]='mysql'
 	[percona]='mysql'
+	[percona:psmdb]='mongo'
 
 
 	[hola-mundo]='hello-world'
 	[hola-mundo]='hello-world'
 	[hello-seattle]='hello-world'
 	[hello-seattle]='hello-world'
@@ -263,4 +264,6 @@ globalExcludeTests+=(
 	[ruby:alpine_ruby-gems]=1
 	[ruby:alpine_ruby-gems]=1
 	[ruby:slim_ruby-bundler]=1
 	[ruby:slim_ruby-bundler]=1
 	[ruby:slim_ruby-gems]=1
 	[ruby:slim_ruby-gems]=1
+	[percona:psmdb_percona-tokudb]=1
+	[percona:psmdb_percona-rocksdb]=1
 )
 )

+ 10 - 1
test/run.sh

@@ -117,13 +117,22 @@ for dockerImage in "$@"; do
 			# "slim-jessie" is still "slim"
 			# "slim-jessie" is still "slim"
 			variant='slim'
 			variant='slim'
 			;;
 			;;
+		psmdb-*)
+			# Percona Server for MongoDB is still "mongo"
+			variant='psmdb'
+			;;
 	esac
 	esac
 	
 	
 	testRepo="$repo"
 	testRepo="$repo"
 	if [ -z "$keepNamespace" ]; then
 	if [ -z "$keepNamespace" ]; then
 		testRepo="${testRepo##*/}"
 		testRepo="${testRepo##*/}"
 	fi
 	fi
-	[ -z "${testAlias[$repo]}" ] || testRepo="${testAlias[$repo]}"
+	
+	if [ -n "${testAlias[$repo:$variant]}" ]; then
+		testRepo="${testAlias[$repo:$variant]}"
+	elif [ -n "${testAlias[$repo]}" ]; then
+		testRepo="${testAlias[$repo]}"
+	fi
 	
 	
 	explicitVariant=
 	explicitVariant=
 	if [ \
 	if [ \