forked from ofesseler/gluster_exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (27 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
37 lines (27 loc) · 1.03 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
34
35
36
37
FROM debian:jessie
MAINTAINER Oliver Fesseler <oliver@fesseler.info>
EXPOSE 9189
EXPOSE 24007
EXPOSE 24008
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates
# Gluster debian Repo
ADD http://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/rsa.pub /tmp
RUN apt-key add /tmp/rsa.pub && rm -f /tmp/rsa.pub
# Add gluster debian repo and update apt
RUN echo deb http://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/Debian/jessie/apt jessie main > /etc/apt/sources.list.d/gluster.list
RUN apt-get update
# Install Gluster server
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install glusterfs-server
# Clean
RUN apt-get clean
# Create gluster volume, start gluster service and gluster_exporter
RUN mkdir -p /data
RUN mkdir -p /mnt/data
RUN mkdir -p /mnt/gv_test
COPY gluster-init.sh /usr/bin/gluster-init.sh
RUN chmod a+x /usr/bin/gluster-init.sh
# Copy gluster_exporter
COPY gluster_exporter /usr/bin/gluster_exporter
#RUN /usr/bin/gluster-init.sh
ENTRYPOINT /usr/bin/gluster-init.sh
#ENTRYPOINT /bin/bash