forked from dmwm/CRABServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tw filebeat - new docker image (dmwm#8576)
* tw filebeat - new docker image * tw filebeat - build image only on release * tw filebeat - do not deploy with runcontainer.sh
- Loading branch information
1 parent
1967a58
commit 341db53
Showing
2 changed files
with
65 additions
and
1 deletion.
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,28 @@ | ||
# build: | ||
# cd CRABServer | ||
# docker build -t filebeat-126-(date +%s) --file cicd/filebeat/Dockerfile . | ||
|
||
FROM debian:12-slim | ||
|
||
RUN apt update &&\ | ||
apt install -y wget gnupg tini && \ | ||
apt clean all | ||
|
||
|
||
# install filebeat | ||
RUN wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - && \ | ||
apt-get install apt-transport-https && \ | ||
echo "deb https://artifacts.elastic.co/packages/oss-8.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-8.x.list && \ | ||
apt-get update && apt-get install filebeat && \ | ||
apt-get clean all | ||
|
||
# user config | ||
ENV USER=crab3 | ||
RUN useradd -m ${USER} | ||
# for debuggin purpose | ||
USER ${USER} | ||
|
||
ENTRYPOINT ["tini", "--"] | ||
CMD [ "/usr/share/filebeat/bin/filebeat", "--path.home", "/tmp/filebeat", \ | ||
"-c", "/data/hostdisk/filebeat-crabtwfilebeat.yaml" ] | ||
|