Skip to content

Commit 3858cce

Browse files
committed
Client - fixed signals handling, simplify container start
1 parent 0dbbfc3 commit 3858cce

File tree

2 files changed

+12
-36
lines changed

2 files changed

+12
-36
lines changed

moosefs-client/Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
FROM debian:stretch
1+
FROM debian:buster
22

3-
# Install wget, lsb-release, curl, fuse and tree
4-
RUN apt-get update && apt-get upgrade -y && apt-get install -y wget lsb-release curl fuse libfuse2 net-tools gnupg2 systemd tree
3+
# Install libraries
4+
RUN apt-get update && apt-get install -y wget fuse3 libfuse3-3 gnupg2 python3
55

66
# Add key
7-
RUN wget -O - http://ppa.moosefs.com/moosefs.key | apt-key add -
8-
RUN echo "deb http://ppa.moosefs.com/moosefs-3/apt/$(awk -F= '$1=="ID" { print $2 ;}' /etc/os-release)/$(lsb_release -sc) $(lsb_release -sc) main" > /etc/apt/sources.list.d/moosefs.list
7+
RUN wget -O - http://ppa.moosefs.com/moosefs.key 2>/dev/null | apt-key add - 2>/dev/null
8+
RUN echo "deb http://ppa.moosefs.com/moosefs-3/apt/debian/buster buster main" > /etc/apt/sources.list.d/moosefs.list
99

10-
# Install MooseFS client
11-
RUN apt-get update && apt-get install -y moosefs-client
10+
# Install MooseFS client and cli
11+
RUN apt-get update && apt-get install -y moosefs-client moosefs-cli
1212

13-
# Add and run start script
14-
ADD start-client.sh /home/start-client.sh
15-
RUN chown root:root /home/start-client.sh
16-
RUN chmod 700 /home/start-client.sh
13+
# Make a moosefs mountpoint
14+
RUN mkdir -p /mnt/moosefs
1715

18-
CMD ["/home/start-client.sh", "-bash"]
16+
EXPOSE 9419 9420 9421 9422
17+
18+
CMD ["mfsmount", "-f", "/mnt/moosefs"]

moosefs-client/start-client.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)