diff options
author | Lee, Tian (tl5884) <TianL@amdocs.com> | 2019-03-01 16:03:03 +0000 |
---|---|---|
committer | Lee, Tian (tl5884) <TianL@amdocs.com> | 2019-03-01 16:03:03 +0000 |
commit | e07d5b8dc0801583518b4f27ce6b8f3b56bcf206 (patch) | |
tree | 66fa70a6f5a1fbeb069723b3d9df07759d58d7c8 /src/main/resources | |
parent | 5ea47abeeb1713b56006fd69b1564cbd4c4220c7 (diff) |
Add elasticsearch with searchguard Dockerfile
Add Dockerfile that produces an image of ElasticSearch with SearchGuard
plugin pre-installed, and restructure the Maven project to build both
the old search-data-service Dockerfile and the new elasticsearch-sg
Dockerfile.
Change-Id: Iff7cb79e3c09da78b6233422f40cb03eeef5bfdb
Issue-ID: AAI-2203
Signed-off-by: Lee, Tian (tl5884) <TianL@amdocs.com>
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/application.properties | 4 | ||||
-rw-r--r-- | src/main/resources/banner.txt | 5 | ||||
-rw-r--r-- | src/main/resources/json/schema/analyzer.schema.json | 29 | ||||
-rw-r--r-- | src/main/resources/json/schema/document-field.schema.json | 37 | ||||
-rw-r--r-- | src/main/resources/json/schema/document.schema.json | 15 | ||||
-rw-r--r-- | src/main/resources/json/schema/filter.schema.json | 17 | ||||
-rw-r--r-- | src/main/resources/logging/SearchDbMsgs.properties | 123 |
7 files changed, 0 insertions, 230 deletions
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index 7d169a7..0000000 --- a/src/main/resources/application.properties +++ /dev/null @@ -1,4 +0,0 @@ -server.ssl.key-store=/opt/app/search-data-service/config/auth/tomcat_keystore
-server.ssl.enabled=true
-server.port=9509
-server.ssl.enabled-protocols=TLSv1.1,TLSv1.2
diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt deleted file mode 100644 index 117d1e4..0000000 --- a/src/main/resources/banner.txt +++ /dev/null @@ -1,5 +0,0 @@ - ____ _ ____ ____ _ _ _ _ _ -/ ___| ___ __ _ _ __ ___| |__ | _ \| __ ) / \ | |__ ___| |_ _ __ __ _ ___| |_(_) ___ _ __ -\___ \ / _ \/ _` | '__/ __| '_ \ _____ | | | | _ \ _____ / _ \ | '_ \/ __| __| '__/ _` |/ __| __| |/ _ \| '_ \ - ___) | __/ (_| | | | (__| | | | |_____| | |_| | |_) | |_____| / ___ \| |_) \__ \ |_| | | (_| | (__| |_| | (_) | | | | -|____/ \___|\__,_|_| \___|_| |_| |____/|____/ /_/ \_\_.__/|___/\__|_| \__,_|\___|\__|_|\___/|_| |_| diff --git a/src/main/resources/json/schema/analyzer.schema.json b/src/main/resources/json/schema/analyzer.schema.json deleted file mode 100644 index 7592ee9..0000000 --- a/src/main/resources/json/schema/analyzer.schema.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Analyzer", - "description": "The analyzer aggregates a tokenizer and multiple filters to describe how an input stream should be indexed.", - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "behaviours": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenizer": { - "type": "string" - }, - "filters": { - "type": "array", - "items": { - "type": "string" - } - } - } -}
\ No newline at end of file diff --git a/src/main/resources/json/schema/document-field.schema.json b/src/main/resources/json/schema/document-field.schema.json deleted file mode 100644 index 78d6cba..0000000 --- a/src/main/resources/json/schema/document-field.schema.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Document Field Schema", - "description": "Describes the structure of a document field for storage in a document store.", - "type": "object", - "javaType": "org.onap.aai.sa.rest.DocumentFieldSchema", - "properties": { - "name": { - "type": "string" - }, - "data-type": { - "type": "string" - }, - "format": { - "type": "string" - }, - "searchable": { - "type": "boolean" - }, - "search-analyzer": { - "type": "string" - }, - "index-analyzer": { - "type": "string" - }, - "sub-fields": { - "type": "array", - "items": { - "$ref": "document-field.schema.json" - } - } - }, - "required": [ - "name", - "data-type" - ] -}
\ No newline at end of file diff --git a/src/main/resources/json/schema/document.schema.json b/src/main/resources/json/schema/document.schema.json deleted file mode 100644 index bbf3e50..0000000 --- a/src/main/resources/json/schema/document.schema.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Document Schema", - "description": "Describes the structure of a document for storage in a document store.", - "type": "object", - "javaType": "org.onap.aai.sa.rest.DocumentSchema", - "properties": { - "fields": { - "type": "array", - "items": { - "$ref": "document-field.schema.json" - } - } - } -}
\ No newline at end of file diff --git a/src/main/resources/json/schema/filter.schema.json b/src/main/resources/json/schema/filter.schema.json deleted file mode 100644 index 6d1a030..0000000 --- a/src/main/resources/json/schema/filter.schema.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Filter", - "description": "Filters accept a stream of tokens from a tokenizer and apply additional rules, possibly producing additional tokens. ", - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "configuration": { - "type": "string" - } - } -}
\ No newline at end of file diff --git a/src/main/resources/logging/SearchDbMsgs.properties b/src/main/resources/logging/SearchDbMsgs.properties deleted file mode 100644 index 3e8de80..0000000 --- a/src/main/resources/logging/SearchDbMsgs.properties +++ /dev/null @@ -1,123 +0,0 @@ -#Resource key=Error Code|Message text|Resolution text|Description text -####### -#Newlines can be utilized to add some clarity ensuring continuing line -#has at least one leading space -#ResourceKey=\ -# ERR0000E\ -# Sample error msg txt\ -# Sample resolution msg\ -# Sample description txt -# -###### -#Error code classification category -#000 Info/Debug -#100 Permission errors -#200 Availability errors/Timeouts -#300 Data errors -#400 Schema Interface type/validation errors -#500 Business process errors -#900 Unknown errors -# -######################################################################## -# INFO logs -SERVICE_STARTED=\ - SDB0001I|\ - SearchDB Service started|\ - NA|\ - The SearchDB Service has been started -ELASTIC_SEARCH_CONNECTION_SUCCESS=\ - SDB0002I|\ - Successfully established connection to ElasticSearch {0}|\ - NA|\ - Successfully established connection to ElasticSearch -ELASTIC_SEARCH_CONNECTION_ATTEMPT=\ - SDB0003I|\ - Attempting to connect to ElasticSearch {0}|\ - NA|\ - An attempt is being made to establish connectivity to ElasticSearch -CREATED_INDEX=\ - SDB0019I|\ - Index with name {0} created successfully -DELETED_INDEX=\ - SDB0021I|\ - Deleted index with name {0} -PROCESSED_BULK_OPERATIONS=\ - SDB0022I|\ - Successfully processed a bulk operations request. -PROCESS_EVENT=\ - SDB0041I|\ - Processed event {0}. Result: {1} -PROCESS_INLINE_QUERY=\ - SDB0042I|\ - Processing inline query: {0} -PROCESS_PAYLOAD_QUERY=\ - SDB0043I|\ - Processing query - operation: {0} against URL: {1} -# INFO Level Metrics Logs -CREATE_INDEX_TIME=\ - SDB0020I|\ - Create index request for index {0} document type {1} -DELETE_INDEX_TIME=\ - SDB0022I|\ - Delete index request for index {0} -CREATE_DOCUMENT_TIME=\ - SDB0023|\ - Create document in index {0} -UPDATE_DOCUMENT_TIME=\ - SDB0024|\ - Update document in index {0} with id {1} -DELETE_DOCUMENT_TIME=\ - SDB0025|\ - Delete document in index {0} with id {1} -GET_DOCUMENT_TIME=\ - SDB0026|\ - Get document from index {0} with id {1} -QUERY_DOCUMENT_TIME=\ - SDB0027|\ - Query request for index {0} with query string {1} -BULK_OPERATIONS_TIME=\ - SDB0028|\ - Bulk operations request -CHECK_INDEX_TIME=\ - SDB0029|\ - Check for index {0} -# WARNING logs -INDEX_CREATE_FAILURE=\ - SDB0301W|\ - Failed to create index with index name = {0}. Cause: {1}|\ - Check cause. It is possible the index already exists.|\ - Failed to create the specified index -INDEX_DELETE_FAILURE=\ - SDB0302W|\ - Failed to delete index with index name = {0}. Cause: {1}|\ - Check cause. It is possible the index does not exist.|\ - Failed to delete the specified index -FILTERS_CONFIG_FAILURE=\ - SDB0303W|\ - Failed to read filter configuration from file {0}. Cause: {1} -ANALYSYS_CONFIG_FAILURE=\ - SDB0304W|\ - Failed to read analysis configuration from file {0}. Cause: {1} -GET_ANALYZERS_FAILURE=\ - SDB0305W|\ - Failed to get analyzer definitions. Cause: {0} -BULK_OPERATION_FAILURE=\ - SDB0306W|\ - Failed to execute bulk operations. Cause: {0} -# ERROR logs -ELASTIC_SEARCH_CONNECTION_FAILURE=\ - SDB0501E|\ - Failed to establish connection to ElasticSearch {0}. Cause: {1}|\ - Check connectivity with ElasticSearch. Ensure ElasticSearch is up and reachable.|\ - A connectivity check to ElasticSearch has failed. -EXCEPTION_DURING_METHOD_CALL=\ - SDB0502E|\ - Failed to execute method {0} due to: {1}|\ - Check error cause|\ - Method failed to execute -PROCESS_REST_REQUEST=\ - SDB0503E|\ - Received request {0} {1} from {2}. Sending response: {3} -STARTUP_EXCEPTION=\ - SDB0504E|\ - Exception encountered during startup of search service: {0} |