Skip to content

Commit 7f560f2

Browse files
committedOct 13, 2020
Add writable workdir to configmap registry image.
The configmap registry server expects to be able to write a file to its working directory. Since it no longer runs as root, it can't write to /.
1 parent ef1f1ec commit 7f560f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎configmap-registry.Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ COPY --from=builder /bin/configmap-server /bin/configmap-server
77
COPY --from=builder /bin/opm /bin/opm
88
COPY --from=userspace /bin/cp /bin/cp
99
COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe
10+
COPY --from=userspace --chown=1001:1001 ["/tmp", "/work"]
1011
EXPOSE 50051
1112
USER 1001
13+
WORKDIR /work
1214
ENTRYPOINT ["/bin/configmap-server"]

0 commit comments

Comments
 (0)
Please sign in to comment.