Skip to content

Commit f85eced

Browse files
Merge pull request #95 from timvaillancourt/MCB_1.0-dockerfile
Mcb 1.0 dockerfile
2 parents c6b3d55 + 66bf674 commit f85eced

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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"]

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
3639
clean:
3740
rm -rf bin build rpmbuild $(NAME).egg-info tmp 2>/dev/null

0 commit comments

Comments
 (0)