-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (28 loc) · 1.07 KB
/
Dockerfile
File metadata and controls
33 lines (28 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Based on debian jessie (8)
FROM java:8
MAINTAINER Rohit Gupta <hello@rohit.io>
ENV GRAYLOG_REPO_DEB="https://packages.graylog2.org/repo/debian/pool/stable/2.2/g/graylog-2.2-repository/graylog-2.2-repository_1-5_all.deb"
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y --no-install-recommends wget \
apt-transport-https \
uuid-runtime \
pwgen \
tzdata-java \
dnsutils \
ca-certificates \
&& wget -O "/tmp/graylog-repo.deb" "${GRAYLOG_REPO_DEB}" \
&& dpkg -i "/tmp/graylog-repo.deb" \
&& apt-get update \
&& apt-get install -y graylog-server \
&& mkdir -p /graylog \
&& rm -rf /etc/graylog/server/node-id \
/tmp/graylog-repo.deb \
/var/lib/apt/lists/*
COPY log4j2.xml /etc/graylog/server/log4j2.xml
# Copy scripts
COPY scripts /graylog/scripts
COPY run.sh /graylog/run.sh
# Execute
WORKDIR /graylog
CMD exec /graylog/run.sh