File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11FROM centos:centos7
2+ ARG RELEASE
23MAINTAINER Tim Vaillancourt <tim.vaillancourt@percona.com>
34RUN yum install -y https://www.percona.com/redir/downloads/percona-release/redhat/latest/percona-release-0.1-4.noarch.rpm epel-release && \
45 yum install -y Percona-Server-MongoDB-34-tools zbackup && yum clean all && \
5- curl -Lo /usr/bin/mongodb-consistent-backup https://github.com/Percona-Lab/mongodb_consistent_backup/releases/download/1.0.2 /mongodb-consistent-backup.el7.centos.x86_64 && \
6+ curl -Lo /usr/bin/mongodb-consistent-backup https://github.com/Percona-Lab/mongodb_consistent_backup/releases/download/$RELEASE /mongodb-consistent-backup.el7.centos.x86_64 && \
67 chmod +x /usr/bin/mongodb-consistent-backup
78ENTRYPOINT ["mongodb-consistent-backup" ]
89CMD ["--help" ]
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ PREFIX?=/usr/local
77BASEDIR? =$(DESTDIR )$(PREFIX )
88BINDIR? =$(BASEDIR ) /bin
99SHAREDIR? =$(BASEDIR ) /share
10+ DOCKER_TAG? ="$(NAME ) :$(VERSION ) "
1011
1112
1213all : bin/mongodb-consistent-backup
@@ -34,7 +35,7 @@ rpm: bin/mongodb-consistent-backup
3435 rpmbuild -D " _topdir $( PWD) /build/rpm" -D " version $( VERSION) " -bb scripts/$(NAME ) .spec
3536
3637docker :
37- docker build --no-cache -t mongodb_consistent_backup .
38+ docker build --no-cache --tag $( DOCKER_TAG ) --build-arg " RELEASE= $( VERSION ) " .
3839
3940clean :
4041 rm -rf bin build $(NAME ) .egg-info tmp 2> /dev/null
Original file line number Diff line number Diff line change 1- 1.0.2
1+ 1.0.3
You can’t perform that action at this time.
0 commit comments