fix: make AGENT_TOOLSDIRECTORY an env var (#657)
Co-authored-by: Callum James Tait <callum.tait@photobox.com>
This commit is contained in:
		
							parent
							
								
									3b45d1b334
								
							
						
					
					
						commit
						605ec158f4
					
				|  | @ -84,8 +84,8 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | |||
|     && apt-get install -y libyaml-dev \ | ||||
|     && rm -rf /var/lib/apt/lists/* | ||||
| 
 | ||||
| RUN echo AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache > .env \ | ||||
|     && mkdir /opt/hostedtoolcache \ | ||||
| ENV AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache | ||||
| RUN mkdir /opt/hostedtoolcache \ | ||||
|     && chgrp docker /opt/hostedtoolcache \ | ||||
|     && chmod g+rwx /opt/hostedtoolcache | ||||
| 
 | ||||
|  |  | |||
|  | @ -92,11 +92,11 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | |||
|     && apt-get install -y libyaml-dev \ | ||||
|     && rm -rf /var/lib/apt/lists/* | ||||
| 
 | ||||
| RUN echo AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache > /runner.env \ | ||||
|     && mkdir /opt/hostedtoolcache \ | ||||
| ENV AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache | ||||
| RUN mkdir /opt/hostedtoolcache \ | ||||
|     && chgrp docker /opt/hostedtoolcache \ | ||||
|     && chmod g+rwx /opt/hostedtoolcache | ||||
| 
 | ||||
|      | ||||
| COPY modprobe startup.sh /usr/local/bin/ | ||||
| COPY supervisor/ /etc/supervisor/conf.d/ | ||||
| COPY logger.sh /opt/bash-utils/logger.sh | ||||
|  |  | |||
|  | @ -84,8 +84,8 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | |||
|     && apt-get install -y libyaml-dev \ | ||||
|     && rm -rf /var/lib/apt/lists/* | ||||
| 
 | ||||
| RUN echo AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache > .env \ | ||||
|     && mkdir /opt/hostedtoolcache \ | ||||
| ENV AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache | ||||
| RUN mkdir /opt/hostedtoolcache \ | ||||
|     && chgrp docker /opt/hostedtoolcache \ | ||||
|     && chmod g+rwx /opt/hostedtoolcache | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue