JAVA-71 | added custom dockerfile to run preconfigured couchbase instance (#14663)

This commit is contained in:
Gaetano Piazzolla
2023-09-22 18:22:57 +02:00
committed by GitHub
parent 5b29d1d999
commit e9d8fd0f55
6 changed files with 132 additions and 50 deletions
@@ -12,16 +12,10 @@ import org.springframework.test.context.support.DependencyInjectionTestExecution
/**
* This LiveTest requires:
*
* 1- Couchbase instance running (e.g. with `docker run -d --name db -p 8091-8096:8091-8096 -p 11210-11211:11210-11211 couchbase`)
*
*
* 2- Couchbase configured with (we can use the console in localhost:8091):
*
* 2.1- Buckets: named 'baeldung' and 'baeldung2'
*
* 2.2- Security: users 'baeldung' and 'baeldung2'. Note: in newer versions an empty password is not allowed, then we have to change the passwords in the project)
*
* 2.3- Spacial View: Add new spacial view (in Index tab) in document 'campus_spatial', view 'byLocation' with the following function:
* 1- Couchbase 5 instance Running and Configured.
* It's enough to execute the "dockerbuild.sh" script in the test/docker folder.
*
* 2.1- Spacial View: Add new spacial view (in Index tab) in document 'campus_spatial', view 'byLocation' with the following function:
* {@code
* function (doc) {
* if (doc.location &&
@@ -30,8 +24,9 @@ import org.springframework.test.context.support.DependencyInjectionTestExecution
* }
* }}
*
* 2.4- MapReduce Views: Add new views in document 'campus':
* 2.4.1- view 'all' with function:
* 2.2- MapReduce Views: Add new views in document 'campus':
*
* 2.2.1- view 'all' with function:
* {@code
* function (doc, meta) {
* if(doc._class == "com.baeldung.spring.data.couchbase.model.Campus") {
@@ -39,7 +34,7 @@ import org.springframework.test.context.support.DependencyInjectionTestExecution
* }
* }}
*
* 2.4.2- view 'byName' with function:
* 2.2.2- view 'byName' with function:
* {@code
* function (doc, meta) {
* if(doc._class == "com.baeldung.spring.data.couchbase.model.Campus" &&