Skip to content

Commit 459931d

Browse files
authored
Ensure pgo-rmdata runs as non-root user
This was likely in place when pgo-rmdata was explicitly calling "rm -rf" on the PostgreSQL PVCs. This is no longer done, and ergo we do no need to run the container as a root user.
1 parent aa4d734 commit 459931d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

centos7/Dockerfile.pgo-rmdata.centos7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ LABEL name="pgo-rmdata" \
1111

1212
ADD bin/pgo-rmdata/ /usr/local/bin
1313

14-
USER 0
14+
USER 2
1515

1616
CMD ["/usr/local/bin/start.sh"]

rhel7/Dockerfile.pgo-rmdata.rhel7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ LABEL name="pgo-rmdata" \
1111

1212
ADD bin/pgo-rmdata/ /usr/local/bin
1313

14-
USER 0
14+
USER 2
1515

1616
CMD ["/usr/local/bin/start.sh"]

0 commit comments

Comments
 (0)