-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
20 lines (13 loc) · 825 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM registry.redhat.io/rhscl/python-36-rhel7:1-41
ARG AZURE_DEVOPS_AGENT_VERSION=2.147.1
USER root
COPY docker-entrypoint.sh $APP_ROOT/azure-devops-agent/entrypoint.sh
RUN cd $APP_ROOT && wget -nv \
https://vstsagentpackage.azureedge.net/agent/$AZURE_DEVOPS_AGENT_VERSION/vsts-agent-linux-x64-${AZURE_DEVOPS_AGENT_VERSION}.tar.gz \
-O azure-devops-agent/vsts-agent-linux-x64.tar.gz && cd azure-devops-agent && tar -zxf vsts-agent-linux-x64.tar.gz \
&& chmod +x entrypoint.sh && yum-config-manager --enable rhel-server-rhscl-7-rpms && \
yum install rh-git218 dos2unix -y && ./bin/installdependencies.sh && yum clean all && rm vsts-agent-linux-x64.tar.gz \
&& chown -R 1001:0 ${APP_ROOT} && fix-permissions ${APP_ROOT} -P
USER 1001
WORKDIR $APP_ROOT/azure-devops-agent
ENTRYPOINT ["./entrypoint.sh"]