Skip to content

Commit

Permalink
FIX trajano#29: use Tini (offiically supported by Docker) to reap def…
Browse files Browse the repository at this point in the history
…unct glusterfs processes.
  • Loading branch information
ximon18 committed Mar 7, 2020
1 parent 6febaa3 commit 6d931e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions glusterfs-volume-plugin/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM oraclelinux:7-slim
ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
RUN yum install -q -y oracle-gluster-release-el7 && \
yum install -q -y git glusterfs glusterfs-fuse attr && \
curl --silent -L https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz | tar -C /usr/local -zxf -
Expand Down
4 changes: 3 additions & 1 deletion glusterfs-volume-plugin/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"description": "GlusterFS plugin for Docker",
"documentation": "https://github.com/trajano/docker-volume-plugins/",
"entrypoint": [
"/tini",
"--",
"/glusterfs-volume-plugin"
],
"env": [
Expand Down Expand Up @@ -33,4 +35,4 @@
}
]
}
}
}

0 comments on commit 6d931e3

Please sign in to comment.