Skip to content

chore: update openshift docs for building custom images #1208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions setup/kubernetes/openshift.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,15 @@ spec:
# Switch to root
USER root

# As root, change the coder user id
RUN userdel coder && useradd -l -u 1000670000 coder && chown coder:coder /home/coder
# As root:
# 1) Remove the original coder user with UID 1000
# 2) Add a coder group with an allowed UID
# 3) Add a coder user as a member of the above group
# 4) Fix ownership on the user's home directory
RUN userdel coder && \
groupadd coder -g 1000670000 && \
useradd -l -u 1000670000 coder -g 1000670000 && \
chown -R coder:coder /home/coder

# Go back to the user 'coder'
USER coder
Expand Down