Skip to content

Commit

Permalink
fix(container): set the spinnaker user to uid 1000 (#1488)
Browse files Browse the repository at this point in the history
You can't specify a username in a k8s securityContext, only a uid. So
the uid 1000 is special and we need to keep the `spinnaker` user with
that ID.
  • Loading branch information
plumpy committed Dec 19, 2019
1 parent 27f9908 commit 25040c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.local
Expand Up @@ -34,7 +34,8 @@ RUN apk --purge del \
py-pip
RUN rm -rf /var/cache/apk

RUN adduser -D -S spinnaker
RUN addgroup -S -g 1000 spinnaker
RUN adduser -D -S -G spinnaker -u 1000 spinnaker
USER spinnaker

CMD ["/opt/halyard/bin/halyard"]

0 comments on commit 25040c4

Please sign in to comment.