File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -88,12 +88,11 @@ RUN set -eux && \
88
88
rpm -i foundationdb-clients-${FDB_VERSION}-1.${FDB_OS}.${FDB_ARCH}.rpm --excludepath=/usr/bin --excludepath=/usr/lib/foundationdb/backup_agent && \
89
89
rm foundationdb-clients-${FDB_VERSION}-1.${FDB_OS}.${FDB_ARCH}.rpm foundationdb-clients-${FDB_VERSION}-1.${FDB_OS}.${FDB_ARCH}.rpm.sha256
90
90
91
- # Create user and group here since we don't have the tools
92
- # in distroless
91
+
93
92
RUN groupadd --gid 4059 fdb && \
94
- useradd --gid 4059 --uid 4059 --create-home -- shell /bin/bash fdb && \
93
+ useradd --gid 4059 --uid 4059 --shell /usr/sbin/nologin fdb && \
95
94
mkdir -p /var/log/fdb && \
96
- touch /var/log/fdb/.keep \
95
+ touch /var/log/fdb/.keep
97
96
98
97
COPY --chown=fdb:fdb --from=builder /workspace/bin/manager .
99
98
COPY --chown=fdb:fdb --from=builder /workspace/bin/kubectl-fdb /usr/local/bin/kubectl-fdb
Original file line number Diff line number Diff line change @@ -75,6 +75,11 @@ RUN set -eux && \
75
75
rpm -i foundationdb-clients-${FDB_VERSION}-1.${FDB_OS}.${FDB_ARCH}.rpm --excludepath=/usr/bin --excludepath=/usr/lib/foundationdb/backup_agent && \
76
76
rm foundationdb-clients-${FDB_VERSION}-1.${FDB_OS}.${FDB_ARCH}.rpm foundationdb-clients-${FDB_VERSION}-1.${FDB_OS}.${FDB_ARCH}.rpm.sha256
77
77
78
+ RUN groupadd --gid 4059 fdb && \
79
+ useradd --gid 4059 --uid 4059 --shell /usr/sbin/nologin fdb && \
80
+ mkdir -p /var/log/fdb && \
81
+ touch /var/log/fdb/.keep
82
+
78
83
COPY --chown=fdb:fdb --from=builder /workspace/bin/data-loader /usr/local/bin/data-loader
79
84
80
85
# Set to the numeric UID of fdb user to satisfy PodSecurityPolices which enforce runAsNonRoot
You can’t perform that action at this time.
0 commit comments