Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tools/ci: Create a github user instead of a circleci user.

Priyank Patel92f98292c1f1
diff --git a/tools/ci/Dockerfile.template b/tools/ci/Dockerfile.template
index ef1dbbfceda..748522f7941 100644
--- a/tools/ci/Dockerfile.template
+++ b/tools/ci/Dockerfile.template
@@ -96,11 +96,12 @@ RUN apt-get update \
libxml2-dev libxslt1-dev libpq-dev \
{extra_packages}
-RUN groupadd --gid 3434 circleci \
- && useradd --uid 3434 --gid circleci --shell /bin/bash --create-home circleci \
- && echo 'circleci ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers.d/50-circleci \
+ARG USERNAME=github
+RUN groupadd --gid 3434 $USERNAME \
+ && useradd --uid 3434 --gid $USERNAME --shell /bin/bash --create-home $USERNAME \
+ && echo "$USERNAME ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers.d/50-$USERNAME \
&& echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
-USER circleci
+USER $USERNAME
CMD ["/bin/sh"]