Skip to content

Commit

Permalink
[TW] Update DevKit creation for server image on an AMD host.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyKoltsov1997 committed Nov 9, 2023
1 parent 3fa0ba6 commit 5d98a0e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
20 changes: 10 additions & 10 deletions configs/devkit/linux/agent/Ubuntu.devkit.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ FROM ${teamCityImage}
USER root

# Remove agent code sequentially to work around the inability to delete volumes from the base image.
RUN rm -rf '/opt/buildagent/bin/*' && \
rm -rf '/opt/buildagent/tools/*' && \
rm -rf '/opt/buildagent/system/*' && \
rm -rf '/opt/buildagent/plugins/*' && \
rm -rf '/opt/buildagent/temp/*' && \
rm -rf '/opt/buildagent/work/*' && \
rm -rf '/opt/buildagent/lib/*' && \
rm -rf '/opt/buildagent/conf/*' && \
rm -rf '/opt/buildagent/launcher/*' && \
rm -rf '/data/teamcity_agent/conf/*'
RUN rm -rf /opt/buildagent/bin/* && \
rm -rf /opt/buildagent/tools/* && \
rm -rf /opt/buildagent/system/* && \
rm -rf /opt/buildagent/plugins/* && \
rm -rf /opt/buildagent/temp/* && \
rm -rf /opt/buildagent/work/* && \
rm -rf /opt/buildagent/lib/* && \
rm -rf /opt/buildagent/conf/* && \
rm -rf /opt/buildagent/launcher/* && \
rm -rf /data/teamcity_agent/conf/*

USER buildagent

Expand Down
10 changes: 9 additions & 1 deletion configs/devkit/linux/server/ubuntu/Ubuntu.devkit.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ FROM ${teamCityImage}

USER root

RUN rm -rf /opt/teamcity
RUN rm -rf /opt/teamcity/temp/* && \
rm -rf /opt/teamcity/logs/* && \
rm -rf /opt/teamcity/conf/* && \
rm -rf /opt/teamcity/lib/* && \
rm -rf /opt/teamcity/bin/* && \
rm -rf /opt/teamcity/devPackage/* && \
rm -rf /opt/teamcity/webapps/* && \
rm -rf /opt/teamcity/licenses/*

USER tcuser:tcuser

CMD ["sleep", "infinity"]

0 comments on commit 5d98a0e

Please sign in to comment.