Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
byroncollins committed Apr 18, 2024
1 parent fc57945 commit f4aa982
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ RUN /bin/bash /tmp/download-ocp.sh ${OPENSHIFT_VERSION} \

WORKDIR /azp

COPY ./start.sh ./
COPY ./start.sh .

RUN chmod 755 ./start.sh \
&& chmod 755 /azp \
&& chgrp -R 0 /azp \
&& chmod -R g=u /azp

USER 1001

CMD ["./start.sh"]
ENTRYPOINT [ "./start.sh", "--once" ]
10 changes: 1 addition & 9 deletions manifests/azure-agent-deploymentconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,4 @@ objects:
terminationGracePeriodSeconds: 30
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- azure-devops-agent
from:
kind: ImageStreamTag
name: azure-devops-agent:latest
type: ImageChange
- type: ConfigChange
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ chmod +x ./run.sh

# To be aware of TERM and INT signals call ./run.sh
# Running it with the --once flag at the end will shut down the agent after the build is executed
./run.sh "$@" --once & wait $!
./run.sh "$@" & wait $!

0 comments on commit f4aa982

Please sign in to comment.