File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM centos:centos7
2+ MAINTAINER Tim Vaillancourt <tim.vaillancourt@percona.com>
3+ RUN yum install -y https://www.percona.com/redir/downloads/percona-release/redhat/latest/percona-release-0.1-4.noarch.rpm && \
4+ yum install -y Percona-Server-MongoDB-32-tools && yum clean all && \
5+ curl -Lo /usr/bin/mongodb-consistent-backup https://github.com/Percona-Lab/mongodb_consistent_backup/releases/download/0.4.0/mongodb-consistent-backup.el7.x86_64 && \
6+ chmod +x /usr/bin/mongodb-consistent-backup
7+ ENTRYPOINT ["mongodb-consistent-backup" ]
8+ CMD ["--help" ]
Original file line number Diff line number Diff line change @@ -33,5 +33,8 @@ rpm: clean
3333 tar --remove-files -C rpmbuild/SOURCES -czf rpmbuild/SOURCES/$(NAME ) .tar.gz $(NAME )
3434 rpmbuild -D " _topdir $( PWD) /rpmbuild" -D " version $( VERSION) " -bb rpmbuild/SPECS/$(NAME ) .spec
3535
36+ docker :
37+ docker build --no-cache -t mongodb_consistent_backup .
38+
3639clean :
3740 rm -rf bin build rpmbuild $(NAME ) .egg-info tmp 2> /dev/null
You can’t perform that action at this time.
0 commit comments