mirror of
				https://github.com/Telecominfraproject/ols-nos.git
				synced 2025-10-30 01:32:35 +00:00 
			
		
		
		
	 51fa5e4666
			
		
	
	51fa5e4666
	
	
	
		
			
			is coming becuase some of debian package not able to fetch. Signed-off-by: Abhishek <abdosi@microsoft.com>
		
			
				
	
	
		
			45 lines
		
	
	
		
			636 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			636 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #! /bin/bash
 | |
| 
 | |
| echo "
 | |
| FROM $1
 | |
| 
 | |
| ARG docker_container_name
 | |
| 
 | |
| ## Make apt-get non-interactive
 | |
| ENV DEBIAN_FRONTEND=noninteractive
 | |
| 
 | |
| {% if $2 is defined %}
 | |
| {% if $2|length %}
 | |
| 
 | |
| COPY \
 | |
| {% for deb in $2.split(' ') -%}
 | |
| debs/{{ deb }}{{' '}}
 | |
| {%- endfor -%}
 | |
| debs/
 | |
| 
 | |
| RUN dpkg -i \
 | |
| {% for deb in $2.split(' ') -%}
 | |
| debs/{{ deb }}{{' '}}
 | |
| {%- endfor %}
 | |
| 
 | |
| {% endif %}
 | |
| {% endif %}
 | |
| 
 | |
| {% if $3 is defined %}
 | |
| {% if $3|length %}
 | |
| 
 | |
| RUN apt-get update && apt-get install -f -y \
 | |
| {% for dbg in $3.split(' ') -%}
 | |
| {{ dbg }}{{' '}}
 | |
| {%- endfor %}
 | |
| 
 | |
| {% endif %}
 | |
| {% endif %}
 | |
| 
 | |
| 
 | |
| ## Clean up
 | |
| RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
 | |
| RUN rm -rf /debs
 | |
| 
 | |
| "
 |