Skip to content

Commit

Permalink
Remove backup-restorer.sh hack from pbmctl docker, now that s3 restor…
Browse files Browse the repository at this point in the history
…es are fixed (#193)
  • Loading branch information
timvaillancourt authored Feb 14, 2019
1 parent 44e6353 commit a9c9566
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions docker/pbmctl/Dockerfile
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 []

0 comments on commit a9c9566

Please sign in to comment.