This commit is contained in:
		
							parent
							
								
									ed6ea70fa5
								
							
						
					
					
						commit
						fece0be44e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -32,7 +32,7 @@ with open("Dockerfile") as f:
 | 
			
		|||
            output["techs"][name]["versions"].append(version)
 | 
			
		||||
 | 
			
		||||
# os.system(f"docker pull {image}")
 | 
			
		||||
system_version = subprocess.check_output(f"podman run --rm {image} cat /etc/debian_version", shell=True)
 | 
			
		||||
system_version = subprocess.check_output(f"docker run --rm {image} cat /etc/debian_version", shell=True)
 | 
			
		||||
output["system"]["version"] = system_version.strip().decode()
 | 
			
		||||
 | 
			
		||||
print(json.dumps(output, indent=4))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue