forked from ceph/ceph-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (34 loc) · 1.52 KB
/
Dockerfile
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
38
39
# DOCKER-VERSION 1.0.0
#
# Ceph monitor
#
# USAGE NOTES:
# - ***This WILL NOT work with the normal NAT'd Docker network***
# - For easiest operation, run with --net=host (which executes the container
# with the host's network interface connected). Otherwise, you'll have to
# do some fancy footwork to allow the monitor to bind the the real IP address
# you specify in MONIP.
# - Define at least the two following environment variables:
# MONHOST - the hostname of this monitor
# MONIP - the (externally visible) IP address of this monitor
# - Ceph expects monitor IPs and hostnames to be _static_, so make sure you execute
# the docker container properly
# - /etc/ceph is set as a volume, so you may use a common configuration directory
# among your ceph daemons (this also keeps private keys outside of the image)
# - ***IMPORTANT** When _adding_ monitors to existing Ceph clusters, make
# certain you import the following files _before_ executing this container:
# - /etc/ceph/ceph.conf (the main ceph.conf)
# - /etc/ceph/ceph.client.admin.keyring (the admin client keyring)
# - /etc/ceph/monmap (the current monitor map)
#
# VERSION 0.0.2
FROM ceph/base
MAINTAINER Seán C McCord "[email protected]"
# Add bootstrap script
ADD entrypoint.sh /entrypoint.sh
# Add volumes for ceph config and monitor data
VOLUME ["/etc/ceph","/var/lib/ceph"]
# Expose the ceph monitor port (6789, by default)
EXPOSE 6789
# Execute monitor as the entrypoint
ENTRYPOINT ["/entrypoint.sh"]