-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker files for easier development setup
- Loading branch information
Samuli Saarinen
committed
Jan 1, 2023
1 parent
7dd69ce
commit bddc7e7
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ARG ES_VERSION=8.5.3 | ||
FROM elasticsearch:${ES_VERSION} | ||
# Needs to repeat the ARG here or it won't work | ||
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact | ||
ARG ES_VERSION=8.5.3 | ||
COPY /build/distributions/elasticsearch-analysis-raudikko-0.1-es${ES_VERSION}.zip /install/elasticsearch-analysis-raudikko.zip | ||
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install \ | ||
--batch file:///install/elasticsearch-analysis-raudikko.zip \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: "3.9" | ||
services: | ||
elasticsearch: | ||
build: | ||
dockerfile: /etc/Dockerfile | ||
context: ../ | ||
# change version here or use | ||
# docker compose build --arg "ES_VERSION=<custom_version>" | ||
#args: | ||
#ES_VERSION: 8.5.3 | ||
ports: | ||
- "9200:9200" | ||
environment: | ||
- discovery.type=single-node | ||
- ES_JAVA_OPTS=-Xms1g -Xmx1g | ||
- xpack.security.enabled=false | ||
# NOTE on WSL needed to adjust following | ||
# wsl -d docker-desktop | ||
# sysctl -w vm.max_map_count=262144 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
### check status | ||
GET http://localhost:9200/_cluster/health?pretty | ||
|
||
### check version | ||
GET http://localhost:9200 | ||
|
||
### show plugins | ||
GET http://localhost:9200/_cat/plugins?v=true&s=component&h=component,version,description |