Commit 33d95632 authored by ale's avatar ale

Fix build.sh

parent 3133c283
Pipeline #1271 passed with stages
in 2 minutes and 32 seconds
......@@ -4,3 +4,5 @@ COPY conf /tmp/conf
COPY build.sh /tmp/build.sh
RUN /tmp/build.sh && rm /tmp/build.sh
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.
PACKAGES="
......@@ -66,7 +66,7 @@ EOF
echo "deb [arch=amd64] https://packages.elastic.co/curator/5/debian9 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,
}
Markdown is supported
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