-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from spideyfusion/updates
Minor updates
- Loading branch information
Showing
9 changed files
with
609 additions
and
248 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
# Git repository | ||
.git/ | ||
|
||
# Source files | ||
src/ | ||
# CI | ||
.travis.yml | ||
|
||
# Scripts | ||
script/ | ||
# Docker | ||
.dockerignore | ||
Dockerfile | ||
|
||
# Documentation | ||
*.md | ||
*.txt | ||
# Git | ||
.git/ | ||
.gitignore |
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
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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
ARG ES_VERSION=6.0.0 | ||
ARG ES_VERSION=6.5.1 | ||
|
||
FROM docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION} | ||
FROM debian:stretch-slim AS build | ||
LABEL maintainer="Petar Obradović <[email protected]>" | ||
|
||
# We need to escalate our privilegies in order to install additional stuff | ||
USER root | ||
RUN apt-get update && \ | ||
apt-get install -y zip unzip | ||
|
||
# For some reason, Elasticsearch images prior to version 6.x don't contain the "unzip" utility | ||
RUN yum --disableplugin=fastestmirror -y install unzip | ||
COPY . context/ | ||
|
||
# We don't want to run Elasticsearch as a root user! | ||
USER elasticsearch | ||
RUN cd context && \ | ||
script/build.sh \ | ||
mkdir .build/dist && \ | ||
unzip -d .build/dist .build/package.zip | ||
|
||
COPY --chown=elasticsearch:elasticsearch .build/package.zip /tmp/package.zip | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION} | ||
|
||
RUN mkdir -p /usr/share/elasticsearch/config/hunspell/hr_HR && \ | ||
unzip -d /usr/share/elasticsearch/config/hunspell/hr_HR /tmp/package.zip && \ | ||
rm /tmp/package.zip | ||
COPY --chown=elasticsearch:elasticsearch --from=build /context/.build/dist/ /usr/share/elasticsearch/config/hunspell/hr_HR/ |
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
Oops, something went wrong.