From b243270c258e957f28b14d75f0f481bbc5c4a1e7 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 28 Jul 2021 11:07:46 +0200 Subject: [PATCH] feat: add ingest-attachment plugin (#6) --- .drone.yml | 4 ++++ Dockerfile | 4 +++- README.md | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index f6434cf..ed01b4d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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} @@ -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 diff --git a/Dockerfile b/Dockerfile index 27169eb..7e01e43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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}" @@ -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 diff --git a/README.md b/README.md index 6099b4a..19fdf16 100644 --- a/README.md +++ b/README.md @@ -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