mirror of
https://github.com/sstent/moosefs_docker.git
synced 2026-01-25 08:31:53 +00:00
MooseFS Docker Cluster
This commit is contained in:
21
moosefs-chunkserver/Dockerfile
Normal file
21
moosefs-chunkserver/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM ubuntu:14.04
|
||||
|
||||
# Install wget, lsb-release and curl
|
||||
RUN apt-get update && apt-get install -y wget lsb-release curl
|
||||
|
||||
# Add key
|
||||
RUN wget -O - http://ppa.moosefs.com/moosefs.key | apt-key add -
|
||||
RUN . /etc/lsb-release && echo "deb http://ppa.moosefs.com/moosefs-3/apt/ubuntu/$DISTRIB_CODENAME $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/moosefs.list
|
||||
|
||||
# Install MooseFS chunkserver
|
||||
RUN apt-get update && apt-get install -y moosefs-chunkserver
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 9419 9420 9422
|
||||
|
||||
# Add and run start script
|
||||
ADD start-chunkserver.sh /home/start-chunkserver.sh
|
||||
RUN chown root:root /home/start-chunkserver.sh
|
||||
RUN chmod 700 /home/start-chunkserver.sh
|
||||
|
||||
CMD ["/home/start-chunkserver.sh", "-d"]
|
||||
Reference in New Issue
Block a user