Skip to content

Commit

Permalink
add back default user
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedran Pugar committed May 23, 2024
1 parent 71125c7 commit 23fe2a1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
6 changes: 1 addition & 5 deletions templates/dockerfiles/central-configuration/install.j2
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ RUN chmod +x /tmp/modify-wrapper-linux-conf.gawk && \
rm /tmp/modify-wrapper-linux-conf.gawk

# Set permissions
{%- if target_os == "redhat" %}
RUN groupadd -r -g 10001 xebialabs && \
{%- else %}
RUN addgroup -S -g 10001 xebialabs && \
{%- endif %}
RUN chgrp -R 0 ${APP_ROOT} && \
chown -R 10001:10001 ${APP_ROOT} && \
chmod -R g=u ${APP_ROOT} && \
chmod u+x ${APP_HOME}/bin/*.sh && \
Expand Down
6 changes: 1 addition & 5 deletions templates/dockerfiles/deploy-task-engine/install.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ RUN mv ${APP_HOME}/plugins ${APP_HOME}/default-plugins && \
mkdir ${APP_HOME}/repository ${APP_HOME}/export ${APP_HOME}/archive ${APP_HOME}/work ${APP_HOME}/reports

# Set permissions
{%- if target_os == "redhat" %}
RUN groupadd -r -g 10001 xebialabs && \
{%- else %}
RUN addgroup -S -g 10001 xebialabs && \
{%- endif %}
RUN chgrp -R 0 ${APP_ROOT} && \
chown -R 10001:10001 ${APP_ROOT} && \
chmod -R g=u ${APP_ROOT} && \
chmod u+x ${APP_HOME}/bin/*.sh && \
Expand Down
3 changes: 1 addition & 2 deletions templates/dockerfiles/deploy-task-engine/variables.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Set root folders
ENV USER_UID=10001 \
APP_ROOT=/opt/xebialabs \
ENV APP_ROOT=/opt/xebialabs \
APP_HOME=/opt/xebialabs/{{ product }}
2 changes: 2 additions & 0 deletions templates/dockerfiles/runtime.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ WORKDIR ${APP_HOME}
{{- 'ENV ' if loop.first else ' ' -}}{{ [env['key'], env['value']]|join('=') }}{{ ' \\' if not loop.last else '' }}
{% endfor %}

USER 10001

VOLUME ["{{ volumes|join('", "') }}"]

EXPOSE ${APP_PORT}
Expand Down

0 comments on commit 23fe2a1

Please sign in to comment.