mehrdadh commented on a change in pull request #8190:
URL: https://github.com/apache/tvm/pull/8190#discussion_r647894520
##########
File path: apps/microtvm/reference-vm/base-box-tool.py
##########
@@ -189,20 +196,34 @@ def generate_packer_config(file_path, providers):
}
)
+ for script in EXTRA_SCRIPTS:
+ filename = os.path.basename(script)
+ provisioners.append({"type": "file", "source": script, "destination":
f"~/{filename}"})
+
+ provisioners.append(
+ {
+ "type": "shell",
+ "script": "base_box_provision.sh",
+ "execute_command": f"chmod +x {{{{ .Path }}}}; {{{{ .Vars }}}}
{{{{ .Path }}}}",
+ }
+ )
+
with open(file_path, "w") as f:
json.dump(
{
"builders": builders,
+ "provisioners": provisioners,
},
f,
- sort_keys=True,
+ sort_keys=False,
Review comment:
because the packer.json is more readable when we are debugging. Easier
to compare, but it's a preference. I'll remove it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]