-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove backup-restorer.sh hack from pbmctl docker, now that s3 restor…
…es are fixed (#193)
- Loading branch information
1 parent
44e6353
commit a9c9566
Showing
1 changed file
with
3 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,11 @@ | ||
FROM centos:7 | ||
MAINTAINER Percona Development <[email protected]> | ||
FROM alpine | ||
|
||
# check repository package signature in secure way | ||
RUN export GNUPGHOME="$(mktemp -d)" \ | ||
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A \ | ||
&& gpg --export --armor 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A > ${GNUPGHOME}/RPM-GPG-KEY-Percona \ | ||
&& rpmkeys --import ${GNUPGHOME}/RPM-GPG-KEY-Percona /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 \ | ||
&& curl -L -o /tmp/percona-release.rpm http://www.percona.com/downloads/percona-release/redhat/0.1-6/percona-release-0.1-6.noarch.rpm \ | ||
&& rpmkeys --checksig /tmp/percona-release.rpm \ | ||
&& yum install -y /tmp/percona-release.rpm \ | ||
&& rm -rf "$GNUPGHOME" /tmp/percona-release.rpm | ||
|
||
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \ | ||
&& yum install -y Percona-Server-MongoDB-36-tools awscli \ | ||
&& yum clean all \ | ||
&& rm -rf /var/cache/yum | ||
|
||
ADD https://raw.githubusercontent.com/Percona-Lab/percona-server-mongodb-operator/master/backup-restorer.sh /backup-restorer.sh | ||
RUN chmod +rx /backup-restorer.sh | ||
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* | ||
|
||
ADD pbmctl /usr/local/bin/pbmctl | ||
|
||
RUN mkdir /data && adduser -d /data -r pbmctl && chown -R pbmctl /data | ||
RUN adduser -S pbmctl | ||
USER pbmctl | ||
WORKDIR /data | ||
|
||
ENTRYPOINT ["pbmctl"] | ||
CMD [] |