Skip to content

Commit

Permalink
Update deletion. (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyKoltsov1997 authored Nov 9, 2023
1 parent 45cbffe commit 3fa0ba6
Showing 1 changed file with 10 additions and 10 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

0 comments on commit 3fa0ba6

Please sign in to comment.