Skip to content

Commit d3fe49a

Browse files
committed
Moved start-agent.sh in different folder in order to prevent override while agent upgrade
1 parent 6745826 commit d3fe49a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ RUN curl -LO http://download.jetbrains.com/teamcity/TeamCity-$TEAMCITY_VERSION.w
1313
&& unzip -qq TeamCity-$TEAMCITY_VERSION.war -d /tmp/teamcity \
1414
&& unzip -qq /tmp/teamcity/update/buildAgent.zip -d /srv/teamcity-agent
1515

16-
COPY start-agent.sh /srv/teamcity-agent/bin/
16+
COPY start-agent.sh /srv/
1717

1818
RUN chmod +x /srv/teamcity-agent/bin/*.sh \
19+
&& chmod +x /srv/*.sh \
1920
&& mv /srv/teamcity-agent/conf/buildAgent.dist.properties /srv/teamcity-agent/conf/buildAgent.properties \
2021

2122
&& rm -f TeamCity-$TEAMCITY_VERSION.war \
@@ -59,4 +60,4 @@ EXPOSE ${AGENT_PORT}
5960
VOLUME /srv/teamcity-agent/conf
6061
USER app
6162

62-
CMD ["/srv/teamcity-agent/bin/start-agent.sh"]
63+
CMD ["/srv/start-agent.sh"]

0 commit comments

Comments
 (0)