Commit 33d95632 authored by ale's avatar ale
Browse files


parent 3133c283
......@@ -4,3 +4,5 @@ COPY conf /tmp/conf
COPY /tmp/
RUN /tmp/ && rm /tmp/
ENTRYPOINT ["/usr/local/bin/chaperone"]
......@@ -5,7 +5,7 @@
# Packages that are only used to build the container. These will be
# removed once we're done.
BUILD_PACKAGES="gnupg rsync"
BUILD_PACKAGES="curl gnupg rsync apt-transport-https"
# Packages to install.
......@@ -66,7 +66,7 @@ EOF
echo "deb [arch=amd64] stable main") \
> /etc/apt/sources.list.d/elastic.list
apt-get -qq update
apt-get update
# If we do not install a JRE before ES, the installation will fail (huh?)...
install_packages default-jre-headless
......@@ -79,6 +79,10 @@ curl -sL ${EXPORTER_RELEASE_URL} \
> /usr/sbin/elasticsearch_exporter
chmod 755 /usr/sbin/elasticsearch_exporter
# For some reason the Debian package installs the /etc/default file
# with very restrictive permissions.
chmod 644 /etc/default/elasticsearch
# Overlay our configuration on top of /etc.
rsync -a /tmp/conf/ /etc/
elasticsearch.service: {
command: "/bin/sh -c 'exec env ES_HOME=/usr/share/elasticsearch ES_PATH_CONF=/etc/elasticsearch /usr/share/elasticsearch/bin/elasticsearch -E http.port=${PORT}'",
command: "/bin/sh -c 'exec /usr/share/elasticsearch/bin/elasticsearch -E http.port=${PORT}'",
kill_signal: SIGTERM,
exit_kills: true,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment