Skip to content

Commit

Permalink
feat: add ingest-attachment plugin (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Jul 28, 2021
1 parent fb927d7 commit b243270
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ steps:
- name: dryrun
image: plugins/docker
settings:
build_args:
- ELASTICSEARCH_PLUGINS=repository-s3 ingest-attachment
dockerfile: Dockerfile
dry_run: true
repo: owncloudops/${DRONE_REPO_NAME}
Expand All @@ -35,6 +37,8 @@ steps:
- name: publish
image: plugins/docker
settings:
build_args:
- ELASTICSEARCH_PLUGINS=repository-s3 ingest-attachment
dockerfile: Dockerfile
password:
from_secret: docker_password
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ LABEL org.opencontainers.image.source="https://github.com/owncloud-ops/elasticse
LABEL org.opencontainers.image.documentation="https://github.com/owncloud-ops/elasticsearch"

ARG GOMPLATE_VERSION
ARG ELASTICSEARCH_PLUGINS


# renovate: datasource=github-releases depName=hairyhenderson/gomplate
ENV GOMPLATE_VERSION="${GOMPLATE_VERSION:-v3.9.0}"
Expand All @@ -22,7 +24,7 @@ RUN yum install -y -q wget curl && \
mkdir -p /usr/share/elasticsearch/backup && \
chown -R elasticsearch:root /usr/share/elasticsearch/backup && \
chmod 755 /usr/share/elasticsearch/backup && \
/usr/share/elasticsearch/bin/elasticsearch-plugin install repository-s3 -b -s && \
for PLUGIN in ${ELASTICSEARCH_PLUGINS}; do /usr/share/elasticsearch/bin/elasticsearch-plugin install -s -b "${PLUGIN}" || exit 1; done && \
yum clean all

USER 1000
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Custom Docker image for [ElasticSearch](https://github.com/elastic/elasticsearch
- /usr/share/elasticsearch/backup
- /usr/share/elasticsearch/log

## Bundled Plugins

- repository-s3
- ingest-attachment

## Environment Variables

```Shell
Expand Down

0 comments on commit b243270

Please sign in to comment.