Skip to content

Commit

Permalink
Fix wrong backupDir var, add ca-certs to alpine images to fix x509 CA…
Browse files Browse the repository at this point in the history
… cert error for s3
  • Loading branch information
timvaillancourt committed Dec 20, 2018
1 parent 3a797b2 commit f1ee7ce
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker/agent/Dockerfile
@@ -1,5 +1,7 @@
FROM alpine

RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*

ADD pbm-agent /usr/local/bin/pbm-agent

RUN adduser -h /data -S pbm-agent
Expand Down
2 changes: 2 additions & 0 deletions docker/coordinator/Dockerfile
@@ -1,5 +1,7 @@
FROM alpine

RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*

ADD pbm-coordinator /usr/local/bin/pbm-coordinator

RUN adduser -h /data -S pbm-coordinator
Expand Down
2 changes: 2 additions & 0 deletions docker/pbmctl/Dockerfile
@@ -1,5 +1,7 @@
FROM alpine

RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*

ADD pbmctl /usr/local/bin/pbmctl

RUN adduser -h /data -S pbmctl
Expand Down
2 changes: 1 addition & 1 deletion grpc/client/client.go
Expand Up @@ -935,7 +935,7 @@ func (c *Client) runDBBackup(msg *pb.StartBackup, sess *session.Session) {
return
}
if !exists {
if err := awsutils.CreateBucket(svc, msg.GetDestinationDir()); err != nil {
if err := awsutils.CreateBucket(svc, c.backupDir); err != nil {
c.sendDBBackupFinishError(fmt.Errorf("cannot create s3 bucket %q for dbBackup: %s", c.backupDir, err))
return
}
Expand Down

0 comments on commit f1ee7ce

Please sign in to comment.