Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions ESSArch_Core/install/install_default_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,20 +1242,7 @@ def installPipelines():

conn = get_connection()
client = IngestClient(conn)
client.put_pipeline(id='ingest_attachment', body={
'description': "Extract attachment information",
'processors': [
{
"attachment": {
"field": "data",
"indexed_chars": "-1"
},
"remove": {
"field": "data"
}
}
]
})

client.put_pipeline(id='add_timestamp', body={
'description': "Adds an index_date timestamp",
'processors': [
Expand Down
2 changes: 1 addition & 1 deletion docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ESSARCH_DATABASE_URL=mysql://arkiv:password@mariadb:3306/essarch?CONN_MAX_AGE=10
#ELASTICSEARCH_DISTRO=amazon/opendistro-for-elasticsearch
#ELASTICSEARCH_VERSION=1.13.2
ESSARCH_ELASTICSEARCH_URL=http://elasticsearch:9200
ELASTICSEARCH_CONFIG=./elasticsearch/config/elasticsearch.yml
#ELASTICSEARCH_CONFIG=./elasticsearch/config/elasticsearch.yml
ELASTICSEARCH_DISTRO=docker.elastic.co/elasticsearch/elasticsearch
ELASTICSEARCH_VERSION=7.17.1

Expand Down
44 changes: 26 additions & 18 deletions docker/docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
essarch:
image: essolutionsab/essarch_dev
Expand All @@ -12,7 +10,7 @@ services:
ESSARCH_REDIS_URL: redis://redis/1
ESSARCH_RABBITMQ_URL: amqp://guest:guest@rabbitmq:5672
ESSARCH_TIKA_URL: http://tika:9998
ESSARCH_UNOSERVER_URL: http://unoserver:2003
ESSARCH_UNOSERVER_URL: http://unoserver:2003
ESSARCH_ELASTICSEARCH_URL:
volumes:
#- ..:/code
Expand Down Expand Up @@ -287,35 +285,44 @@ services:
- essarch

elasticsearch:
build:
context: elasticsearch
args:
ELASTICSEARCH_DISTRO: ${ELASTICSEARCH_DISTRO}
ELASTICSEARCH_VERSION: ${ELASTICSEARCH_VERSION}
image: ${ELASTICSEARCH_DISTRO}:${ELASTICSEARCH_VERSION}
container_name: elasticsearch
# build:
# context: elasticsearch
# args:
# ELASTICSEARCH_DISTRO: ${ELASTICSEARCH_DISTRO}
# ELASTICSEARCH_VERSION: ${ELASTICSEARCH_VERSION}
volumes:
- ${ELASTICSEARCH_CONFIG}:/usr/share/elasticsearch/config/elasticsearch.yml
#- ./elasticsearch/config/internal_users.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
# - ${ELASTICSEARCH_CONFIG}:/usr/share/elasticsearch/config/elasticsearch.yml
# - ./elasticsearch/config/internal_users.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
- essarch_elasticsearch_data:/usr/share/elasticsearch/data
ports:
- '9200:9200'
- '9300:9300'
# - '9300:9300'
environment:
discovery.type: single-node
cluster.name: docker-cluster
cluster.routing.allocation.disk.threshold_enabled: "false"
ES_JAVA_OPTS: '-Xmx1g -Xms1g'
networks:
- essarch

elasticsearch-test:
build:
context: elasticsearch
args:
ELASTICSEARCH_DISTRO: ${ELASTICSEARCH_DISTRO}
ELASTICSEARCH_VERSION: ${ELASTICSEARCH_VERSION}
image: ${ELASTICSEARCH_DISTRO}:${ELASTICSEARCH_VERSION}
# build:
# context: elasticsearch
# args:
# ELASTICSEARCH_DISTRO: ${ELASTICSEARCH_DISTRO}
# ELASTICSEARCH_VERSION: ${ELASTICSEARCH_VERSION}
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
# - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- essarch_elasticsearch_test_data:/usr/share/elasticsearch/data
ports:
- '19200:9200'
- '19300:9300'
# - '19300:9300'
environment:
discovery.type: single-node
cluster.name: docker-cluster-test
ES_JAVA_OPTS: '-Xmx1g -Xms1g'
profiles:
- tests
Expand Down Expand Up @@ -362,6 +369,7 @@ services:

volumes:
essarch_elasticsearch_data:
essarch_elasticsearch_test_data:
essarch_mariadb_data:
essarch_postgres_data:
essarch_code:
Expand Down
44 changes: 26 additions & 18 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
essarch:
image: essolutionsab/essarch
Expand Down Expand Up @@ -263,7 +261,7 @@ services:
restart: on-failure
networks:
- essarch

tika:
image: apache/tika:latest
container_name: tika
Expand All @@ -273,35 +271,44 @@ services:
- essarch

elasticsearch:
build:
context: elasticsearch
args:
ELASTICSEARCH_DISTRO: ${ELASTICSEARCH_DISTRO}
ELASTICSEARCH_VERSION: ${ELASTICSEARCH_VERSION}
image: ${ELASTICSEARCH_DISTRO}:${ELASTICSEARCH_VERSION}
container_name: elasticsearch
# build:
# context: elasticsearch
# args:
# ELASTICSEARCH_DISTRO: ${ELASTICSEARCH_DISTRO}
# ELASTICSEARCH_VERSION: ${ELASTICSEARCH_VERSION}
volumes:
- ${ELASTICSEARCH_CONFIG}:/usr/share/elasticsearch/config/elasticsearch.yml
#- ./elasticsearch/config/internal_users.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
# - ${ELASTICSEARCH_CONFIG}:/usr/share/elasticsearch/config/elasticsearch.yml
# - ./elasticsearch/config/internal_users.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
- essarch_elasticsearch_data:/usr/share/elasticsearch/data
ports:
- '9200:9200'
- '9300:9300'
# - '9300:9300'
environment:
discovery.type: single-node
cluster.name: docker-cluster
cluster.routing.allocation.disk.threshold_enabled: "false"
ES_JAVA_OPTS: '-Xmx1g -Xms1g'
networks:
- essarch

elasticsearch-test:
build:
context: elasticsearch
args:
ELASTICSEARCH_DISTRO: ${ELASTICSEARCH_DISTRO}
ELASTICSEARCH_VERSION: ${ELASTICSEARCH_VERSION}
image: ${ELASTICSEARCH_DISTRO}:${ELASTICSEARCH_VERSION}
# build:
# context: elasticsearch
# args:
# ELASTICSEARCH_DISTRO: ${ELASTICSEARCH_DISTRO}
# ELASTICSEARCH_VERSION: ${ELASTICSEARCH_VERSION}
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
# - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- essarch_elasticsearch_test_data:/usr/share/elasticsearch/data
ports:
- '19200:9200'
- '19300:9300'
# - '19300:9300'
environment:
discovery.type: single-node
cluster.name: docker-cluster-test
ES_JAVA_OPTS: '-Xmx1g -Xms1g'
profiles:
- tests
Expand Down Expand Up @@ -348,6 +355,7 @@ services:

volumes:
essarch_elasticsearch_data:
essarch_elasticsearch_test_data:
essarch_mariadb_data:
essarch_postgres_data:

Expand Down
2 changes: 1 addition & 1 deletion docker/elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG ELASTICSEARCH_VERSION
FROM ${ELASTICSEARCH_DISTRO}:${ELASTICSEARCH_VERSION}

# Install plugins
RUN elasticsearch-plugin install --batch ingest-attachment
# RUN elasticsearch-plugin install --batch ingest-attachment

## Certs
#RUN yum install -y openssl
Expand Down
Loading