diff --git a/Dockerfile b/Dockerfile index eb49143..d95616a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +ENTRYPOINT [ "./start.sh", "--once" ] \ No newline at end of file diff --git a/manifests/azure-agent-deploymentconfig.yaml b/manifests/azure-agent-deploymentconfig.yaml index 925e727..13e7b68 100644 --- a/manifests/azure-agent-deploymentconfig.yaml +++ b/manifests/azure-agent-deploymentconfig.yaml @@ -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 \ No newline at end of file + - type: ConfigChange \ No newline at end of file diff --git a/start.sh b/start.sh index 7cfea87..c88bc41 100644 --- a/start.sh +++ b/start.sh @@ -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 $! \ No newline at end of file +./run.sh "$@" & wait $! \ No newline at end of file