Skip to content

Commit

Permalink
8.6.2 버전변경 및 개발테스트를 위한 도커환경 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
netcrazy committed Mar 3, 2023
1 parent 53c57a1 commit 5d5f940
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 6 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Korean Jaso Analyzer for Elasticsearch 8.3.2
# Korean Jaso Analyzer for Elasticsearch 8.6.2
(자동완성 플러그인)

## Build & Packaging
Expand All @@ -8,11 +8,20 @@
$ sh gradlew clean build buildPluginZip
~~~

###### 자동완성용 한글 자소분석기입니다. elasticsearch 8.3.2 에서 테스트 되었습니다
###### 자동완성용 한글 자소분석기입니다. elasticsearch 8.6.2 에서 테스트 되었습니다

## 도커 컨데이이너에서 elasticsearch, kibana 설치/실행
```
#플러그인이 자동으로 설치된다.
cd docker
docker-compose up -d
```

## 직접설치

###### *설치*
```
bin/elasticsearch-plugin install https://github.com/netcrazy/elasticsearch-jaso-analyzer/releases/download/v8.3.2/jaso-analyzer-plugin-8.3.2-plugin.zip
bin/elasticsearch-plugin install https://github.com/netcrazy/elasticsearch-jaso-analyzer/releases/download/v8.6.2/jaso-analyzer-plugin-8.6.2-plugin.zip
```

###### *삭제 (필요시)*
Expand Down
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ compileJava {
targetCompatibility = JavaVersion.VERSION_17
}

version = '8.3.2'
version = '8.6.2'
jar {
manifest {
attributes 'Implementation-Title': 'Elasticsearch Jaso Analyzer Plugin',
Expand Down Expand Up @@ -34,6 +34,11 @@ task buildPluginZip(type: Zip, dependsOn:[':jar']) {
classifier = 'plugin'
from 'build/libs'
from 'src/main/resources'

copy {
from "build/distributions"
into "docker"
}
}

artifacts {
Expand Down
4 changes: 4 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:8.6.2

COPY jaso-analyzer-plugin-8.6.2-plugin.zip /tmp/
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///tmp/jaso-analyzer-plugin-8.6.2-plugin.zip
51 changes: 51 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: '2.2'
services:
elasticsearch:
build:
context: .
dockerfile: ./Dockerfile
container_name: es-node-01
environment:
- cluster.name=es-docker-cluster
- node.name=es01
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 262144
hard: 262144
cap_add:
- IPC_LOCK
volumes:
- data01:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
networks:
- es-net

kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:8.6.2
environment:
ELASTICSEARCH_URL: http://es-node-01:9200
ELASTICSEARCH_HOSTS: http://es-node-01:9200
ports:
- "5601:5601"
depends_on:
- elasticsearch
networks:
- es-net

volumes:
data01:
driver: local
data02:
driver: local

networks:
es-net:
driver: bridge
4 changes: 2 additions & 2 deletions src/main/resources/plugin-descriptor.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description=Jaso Korean Text Analyzer
version=8.3.2
version=8.6.2
name=jaso-analyzer
classname=org.elasticsearch.plugin.analysis.JasoAnalysisPlugin
java.version=17
elasticsearch.version=8.3.2
elasticsearch.version=8.6.2

0 comments on commit 5d5f940

Please sign in to comment.