-
Notifications
You must be signed in to change notification settings - Fork 149
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 #1179 from amazeeio/elastic-7
publish elastic toolkit versions 7, still use 6 inside lagoon for now.
- Loading branch information
Showing
12 changed files
with
183 additions
and
21 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,54 @@ | ||
ARG IMAGE_REPO | ||
FROM ${IMAGE_REPO:-lagoon}/commons as commons | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:6.8.2 | ||
|
||
LABEL maintainer="amazee.io" | ||
ENV LAGOON=elasticsearch | ||
|
||
ARG LAGOON_VERSION | ||
ENV LAGOON_VERSION=$LAGOON_VERSION | ||
|
||
# Copy commons files | ||
COPY --from=commons /lagoon /lagoon | ||
COPY --from=commons /bin/fix-permissions /bin/ep /bin/docker-sleep /bin/ | ||
COPY --from=commons /home /home | ||
|
||
RUN curl -sL https://github.com/krallin/tini/releases/download/v0.18.0/tini -o /sbin/tini && chmod a+x /sbin/tini | ||
|
||
COPY peer-finder /bin/ | ||
COPY configure-es.sh /lagoon/ | ||
COPY docker-entrypoint.sh /lagoon/entrypoints/90-elasticsearch.sh | ||
|
||
RUN chmod g+w /etc/passwd \ | ||
&& mkdir -p /home | ||
|
||
# Reproduce behavior of Alpine: Run Bash as sh | ||
RUN rm -f /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
ENV TMPDIR=/tmp \ | ||
TMP=/tmp \ | ||
HOME=/home \ | ||
# When Bash is invoked via `sh` it behaves like the old Bourne Shell and sources a file that is given in `ENV` | ||
ENV=/home/.bashrc \ | ||
# When Bash is invoked as non-interactive (like `bash -c command`) it sources a file that is given in `BASH_ENV` | ||
BASH_ENV=/home/.bashrc | ||
|
||
RUN sed -i 's/discovery.zen.minimum_master_nodes: 1//' config/elasticsearch.yml | ||
|
||
RUN echo $'xpack.security.enabled: false\n\ | ||
\n\ | ||
node.name: "${HOSTNAME}"\n\ | ||
node.master: "${NODE_MASTER}"\n\ | ||
discovery.zen.minimum_master_nodes: "${DISCOVERY_ZEN_MINIMUM_MASTER_NODES}"' >> config/elasticsearch.yml | ||
|
||
RUN fix-permissions config | ||
|
||
ENV ES_JAVA_OPTS="-Xms200m -Xmx200m" \ | ||
DISCOVERY_ZEN_MINIMUM_MASTER_NODES=1 \ | ||
NODE_MASTER=true | ||
|
||
VOLUME [ "/usr/share/elasticsearch/data" ] | ||
|
||
ENTRYPOINT ["/sbin/tini", "--", "/lagoon/entrypoints.bash"] | ||
|
||
CMD ["/usr/local/bin/docker-entrypoint.sh"] |
2 changes: 1 addition & 1 deletion
2
images/elasticsearch/Dockerfile → images/elasticsearch/Dockerfile7
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
ARG IMAGE_REPO | ||
FROM ${IMAGE_REPO:-lagoon}/commons as commons | ||
FROM docker.elastic.co/kibana/kibana:7.3.0 | ||
|
||
LABEL maintainer="amazee.io" | ||
ENV LAGOON=kibana | ||
|
||
USER root | ||
|
||
ARG LAGOON_VERSION | ||
ENV LAGOON_VERSION=$LAGOON_VERSION | ||
|
||
# Copy commons files | ||
COPY --from=commons /lagoon /lagoon | ||
COPY --from=commons /bin/fix-permissions /bin/ep /bin/docker-sleep /bin/ | ||
COPY --from=commons /home /home | ||
|
||
RUN curl -sL https://github.com/krallin/tini/releases/download/v0.18.0/tini -o /sbin/tini && chmod a+x /sbin/tini | ||
|
||
RUN chmod g+w /etc/passwd \ | ||
&& mkdir -p /home | ||
|
||
# Reproduce behavior of Alpine: Run Bash as sh | ||
RUN rm -f /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
ENV TMPDIR=/tmp \ | ||
TMP=/tmp \ | ||
HOME=/home \ | ||
# When Bash is invoked via `sh` it behaves like the old Bourne Shell and sources a file that is given in `ENV` | ||
ENV=/home/.bashrc \ | ||
# When Bash is invoked as non-interactive (like `bash -c command`) it sources a file that is given in `BASH_ENV` | ||
BASH_ENV=/home/.bashrc | ||
|
||
RUN fix-permissions /usr/share/kibana | ||
|
||
# tells the local development environment on which port we are running | ||
# ENV LAGOON_LOCALDEV_HTTP_PORT=5601 | ||
|
||
ENV NODE_OPTIONS="--max-old-space-size=200" | ||
|
||
ENTRYPOINT ["/sbin/tini", "--", "/lagoon/entrypoints.bash"] | ||
CMD ["/bin/bash", "/usr/local/bin/kibana-docker"] |
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,41 @@ | ||
|
||
|
||
ARG IMAGE_REPO | ||
FROM ${IMAGE_REPO:-lagoon}/commons as commons | ||
FROM docker.elastic.co/logstash/logstash:6.8.2 | ||
|
||
LABEL maintainer="amazee.io" | ||
ENV LAGOON=logstash | ||
|
||
USER root | ||
|
||
ARG LAGOON_VERSION | ||
ENV LAGOON_VERSION=$LAGOON_VERSION | ||
|
||
# Copy commons files | ||
COPY --from=commons /lagoon /lagoon | ||
COPY --from=commons /bin/fix-permissions /bin/ep /bin/docker-sleep /bin/ | ||
COPY --from=commons /home /home | ||
|
||
RUN curl -sL https://github.com/krallin/tini/releases/download/v0.18.0/tini -o /sbin/tini && chmod a+x /sbin/tini | ||
|
||
RUN chmod g+w /etc/passwd \ | ||
&& mkdir -p /home | ||
|
||
# Reproduce behavior of Alpine: Run Bash as sh | ||
RUN rm -f /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
ENV TMPDIR=/tmp \ | ||
TMP=/tmp \ | ||
HOME=/home \ | ||
# When Bash is invoked via `sh` it behaves like the old Bourne Shell and sources a file that is given in `ENV` | ||
ENV=/home/.bashrc \ | ||
# When Bash is invoked as non-interactive (like `bash -c command`) it sources a file that is given in `BASH_ENV` | ||
BASH_ENV=/home/.bashrc | ||
|
||
RUN fix-permissions /usr/share/logstash/data \ | ||
&& fix-permissions /usr/share/logstash/config | ||
|
||
ENV LS_JAVA_OPTS "-Xms400m -Xmx400m" | ||
|
||
ENTRYPOINT ["/sbin/tini", "--", "/lagoon/entrypoints.bash", "/usr/local/bin/docker-entrypoint"] |
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
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,2 +1,2 @@ | ||
ARG IMAGE_REPO | ||
FROM ${IMAGE_REPO:-amazeeio}/elasticsearch | ||
FROM ${IMAGE_REPO:-amazeeio}/elasticsearch:6 |
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,2 +1,2 @@ | ||
ARG IMAGE_REPO | ||
FROM ${IMAGE_REPO:-amazeeio}/elasticsearch | ||
FROM ${IMAGE_REPO:-amazeeio}/elasticsearch:6 |