containerize: fix missing environment activation (#31596)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							c589f97cf0
						
					
				
				
					commit
					70be612f43
				
			@@ -19,8 +19,7 @@ RUN mkdir {{ paths.environment }} \
 | 
				
			|||||||
{{ manifest }} > {{ paths.environment }}/spack.yaml
 | 
					{{ manifest }} > {{ paths.environment }}/spack.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Install the software, remove unnecessary deps
 | 
					# Install the software, remove unnecessary deps
 | 
				
			||||||
RUN spack install --fail-fast && \
 | 
					RUN cd {{ paths.environment }} && spack env activate . && spack install --fail-fast && spack gc -y
 | 
				
			||||||
    spack gc -y
 | 
					 | 
				
			||||||
{% if strip %}
 | 
					{% if strip %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Strip all the binaries
 | 
					# Strip all the binaries
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user