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 1
1
FROM centos:centos7
2
+ ARG RELEASE
2
3
MAINTAINER Tim Vaillancourt <
[email protected] >
3
4
RUN yum install -y https://www.percona.com/redir/downloads/percona-release/redhat/latest/percona-release-0.1-4.noarch.rpm epel-release && \
4
5
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 && \
6
7
chmod +x /usr/bin/mongodb-consistent-backup
7
8
ENTRYPOINT ["mongodb-consistent-backup" ]
8
9
CMD ["--help" ]
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ PREFIX?=/usr/local
7
7
BASEDIR? =$(DESTDIR )$(PREFIX )
8
8
BINDIR? =$(BASEDIR ) /bin
9
9
SHAREDIR? =$(BASEDIR ) /share
10
+ DOCKER_TAG? ="$(NAME ) :$(VERSION ) "
10
11
11
12
12
13
all : bin/mongodb-consistent-backup
@@ -34,7 +35,7 @@ rpm: bin/mongodb-consistent-backup
34
35
rpmbuild -D " _topdir $( PWD) /build/rpm" -D " version $( VERSION) " -bb scripts/$(NAME ) .spec
35
36
36
37
docker :
37
- docker build --no-cache -t mongodb_consistent_backup .
38
+ docker build --no-cache --tag $( DOCKER_TAG ) --build-arg " RELEASE= $( VERSION ) " .
38
39
39
40
clean :
40
41
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