Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elasticsearch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai3
docker
elasticsearch
Commits
33d95632
Commit
33d95632
authored
Sep 28, 2018
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build.sh
parent
3133c283
Pipeline
#1271
passed with stages
in 2 minutes and 32 seconds
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
Dockerfile
Dockerfile
+2
-0
build.sh
build.sh
+6
-2
conf/chaperone.d/elasticsearch.conf
conf/chaperone.d/elasticsearch.conf
+1
-1
No files found.
Dockerfile
View file @
33d95632
...
@@ -4,3 +4,5 @@ COPY conf /tmp/conf
...
@@ -4,3 +4,5 @@ COPY conf /tmp/conf
COPY
build.sh /tmp/build.sh
COPY
build.sh /tmp/build.sh
RUN
/tmp/build.sh
&&
rm
/tmp/build.sh
RUN
/tmp/build.sh
&&
rm
/tmp/build.sh
ENTRYPOINT
["/usr/local/bin/chaperone"]
build.sh
View file @
33d95632
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# Packages that are only used to build the container. These will be
# Packages that are only used to build the container. These will be
# removed once we're done.
# removed once we're done.
BUILD_PACKAGES
=
"
gnupg rsync
"
BUILD_PACKAGES
=
"
curl gnupg rsync apt-transport-https
"
# Packages to install.
# Packages to install.
PACKAGES
=
"
PACKAGES
=
"
...
@@ -66,7 +66,7 @@ EOF
...
@@ -66,7 +66,7 @@ EOF
echo
"deb [arch=amd64] https://packages.elastic.co/curator/5/debian9 stable main"
)
\
echo
"deb [arch=amd64] https://packages.elastic.co/curator/5/debian9 stable main"
)
\
>
/etc/apt/sources.list.d/elastic.list
>
/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?)...
# If we do not install a JRE before ES, the installation will fail (huh?)...
install_packages default-jre-headless
install_packages default-jre-headless
...
@@ -79,6 +79,10 @@ curl -sL ${EXPORTER_RELEASE_URL} \
...
@@ -79,6 +79,10 @@ curl -sL ${EXPORTER_RELEASE_URL} \
>
/usr/sbin/elasticsearch_exporter
>
/usr/sbin/elasticsearch_exporter
chmod
755 /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.
# Overlay our configuration on top of /etc.
rsync
-a
/tmp/conf/ /etc/
rsync
-a
/tmp/conf/ /etc/
...
...
conf/chaperone.d/elasticsearch.conf
View file @
33d95632
elasticsearch
.
service
: {
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
,
kill_signal
:
SIGTERM
,
exit_kills
:
true
,
exit_kills
:
true
,
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment