forked from elastic/beats
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs for Docker images (elastic#4312)
- Loading branch information
1 parent
de16d8c
commit fb3e658
Showing
18 changed files
with
287 additions
and
130 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
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 @@ | ||
include::../../libbeat/docs/shared-docker.asciidoc[] |
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 @@ | ||
include::../../libbeat/docs/shared-docker.asciidoc[] |
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,10 @@ | ||
To configure {beatname_uc}, you edit the configuration file. For rpm and deb, | ||
you'll find the configuration file at +/etc/{beatname_lc}/{beatname_lc}.yml+. Under | ||
Docker, it's located at +/usr/share/{beatname_lc}/{beatname_lc}.yml+. For mac and win, | ||
look in the archive that you just extracted. There’s also a full example | ||
configuration file called +{beatname_lc}.full.yml+ that shows all non-deprecated | ||
options. | ||
|
||
See the | ||
{libbeat}/config-file-format.html[Config File Format] section of the | ||
_Beats Platform Reference_ for more about the structure of the config file. |
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,61 @@ | ||
[[running-on-docker]] | ||
== Running {beatname_uc} on Docker | ||
|
||
Docker images for {beatname_uc} are available from the Elastic Docker | ||
registry. You can retrieve an image with a `docker pull` command. | ||
|
||
ifeval::["{release-state}"=="unreleased"] | ||
|
||
However, version {stack-version} of {beatname_uc} has not yet been | ||
released, so no Docker image is currently available for this version. | ||
|
||
endif::[] | ||
|
||
ifeval::["{release-state}"!="unreleased"] | ||
|
||
["source", "sh", subs="attributes"] | ||
------------------------------------------------ | ||
docker pull {dockerimage} | ||
------------------------------------------------ | ||
|
||
endif::[] | ||
|
||
The base image is https://hub.docker.com/_/centos/[centos:7] and the source | ||
code can be found on | ||
https://github.com/elastic/beats-docker/tree/{doc-branch}[GitHub]. | ||
|
||
[float] | ||
=== Configuring {beatname_uc} on Docker | ||
|
||
The Docker image provides several methods for configuring {beatname_uc}. The | ||
conventional approach is to provide a configuration file via a bind-mounted | ||
volume, but it's also possible to create a custom image with your | ||
configuration included. | ||
|
||
[float] | ||
==== Bind-Mounted Configuration | ||
|
||
One way to configure {beatname_uc} on Docker is to provide +{beatname_lc}.yml+ via bind-mounting. | ||
With +docker run+, the bind-mount can be specified like this: | ||
|
||
["source", "sh", subs="attributes"] | ||
-------------------------------------------- | ||
docker run \ | ||
-v ~/{beatname_lc}.yml:/usr/share/{beatname_lc}/{beatname_lc}.yml \ | ||
{dockerimage} | ||
-------------------------------------------- | ||
|
||
[float] | ||
==== Custom Image Configuration | ||
|
||
It's possible to embed your {beatname_uc} configuration in a custom image. | ||
Here is an example Dockerfile to achieve this: | ||
|
||
["source", "dockerfile", subs="attributes"] | ||
-------------------------------------------- | ||
FROM {dockerimage} | ||
COPY {beatname_lc}.yml /usr/share/{beatname_lc}/{beatname_lc}.yml | ||
USER root | ||
RUN chown {beatname_lc} /usr/share/{beatname_lc}/{beatname_lc}.yml | ||
USER {beatname_lc} | ||
-------------------------------------------- |
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,13 @@ | ||
To download and install {beatname_uc}, use the commands that work with your system | ||
(<<deb, deb>> for Debian/Ubuntu, <<rpm, rpm>> for Redhat/Centos/Fedora, <<mac, | ||
mac>> for OS X, <<docker, docker>> for any Docker platform, and <<win, win>> for | ||
Windows). | ||
|
||
[NOTE] | ||
================================================== | ||
If you use Apt or Yum, you can <<setup-repositories,install {beatname_uc} from our | ||
repositories>> to update to the newest version more easily. | ||
See our https://www.elastic.co/downloads/beats/{beatname_lc}[download page] for | ||
other installation options, such as 32-bit images. | ||
================================================== |
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
Oops, something went wrong.