Run Tilt containers as root because live-reload breaks otherwise

This commit is contained in:
Ryan Richard 2020-11-10 09:27:44 -08:00
parent 9bfcaa33c6
commit 01941d6b2a
3 changed files with 9 additions and 3 deletions

View File

@ -11,7 +11,9 @@ COPY build/pinniped-concierge /usr/local/bin/pinniped-concierge
EXPOSE 8443
# Run as non-root for security posture
USER 1001:1001
# Commented out because it breaks the live-reload feature of Tilt. See https://github.com/tilt-dev/tilt/issues/2300
# Be aware that this creates a significant difference between running with Tilt and running otherwise.
#USER 1001:1001
# Set the entrypoint
ENTRYPOINT ["/usr/local/bin/pinniped-concierge"]

View File

@ -11,7 +11,9 @@ COPY build/local-user-authenticator /usr/local/bin/local-user-authenticator
EXPOSE 8443
# Run as non-root for security posture
USER 1001:1001
# Commented out because it breaks the live-reload feature of Tilt. See https://github.com/tilt-dev/tilt/issues/2300
# Be aware that this creates a significant difference between running with Tilt and running otherwise.
#USER 1001:1001
# Set the entrypoint
ENTRYPOINT ["/usr/local/bin/local-user-authenticator"]

View File

@ -11,7 +11,9 @@ COPY build/pinniped-supervisor /usr/local/bin/pinniped-supervisor
EXPOSE 8080 8443
# Run as non-root for security posture
USER 1001:1001
# Commented out because it breaks the live-reload feature of Tilt. See https://github.com/tilt-dev/tilt/issues/2300
# Be aware that this creates a significant difference between running with Tilt and running otherwise.
#USER 1001:1001
# Set the entrypoint
ENTRYPOINT ["/usr/local/bin/pinniped-supervisor"]