def get_script_base(self):
command_array = list()
command_array.append("docker")
command_array.append("run")
"""Add host system to environment"""
command_array.append("-e")
command_array.append("HOST_SYSTEM="+platform.system())
command_array.append("-u")
command_array.append("1000")
command_array.append("-v")
command_array.append(str(self.working_directory) + ":/usr/local")
command_array.append("-w")
command_array.append("/usr/local")
command_array.append("alpine:latest")
command_array.append("/bin/sh")
command_array.append("-c")
return command_array
评论列表
文章目录