mirror of
https://github.com/sstent/moosefs_docker.git
synced 2026-01-29 10:32:14 +00:00
env vars: size, label; volumes as hdds
This commit is contained in:
@@ -3,16 +3,17 @@
|
||||
# wait for mfsmaster startup
|
||||
ping -c 10 mfsmaster
|
||||
|
||||
mkdir -p /mnt/mfs
|
||||
mkdir -p /mnt/moosefs
|
||||
|
||||
# mount mfs
|
||||
mfsmount /mnt/mfs -H mfsmaster
|
||||
mfsmount /mnt/moosefs -H mfsmaster
|
||||
|
||||
# create example file to MooseFS
|
||||
echo "If you can find this file in /mnt/mfs/ on your client machine - it means MooseFS is working correctly, congratulations!" > /mnt/mfs/welcome_to_moosefs.txt
|
||||
echo "If you can find this file in /mnt/moosefs/welcome_to_moosefs.txt on your client machine - it means MooseFS is working correctly, congratulations!" > /mnt/moosefs/welcome_to_moosefs.txt
|
||||
|
||||
# list files in MooseFS
|
||||
ls /mnt/mfs/
|
||||
ls /mnt/moosefs/
|
||||
tree /mnt/moosefs/
|
||||
|
||||
if [[ $1 == "-d" ]]; then
|
||||
while true; do sleep 1000; done
|
||||
|
||||
Reference in New Issue
Block a user