You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.
A build represents a "Packer run"; the point of a build is the ability to post a build with all necessary information that a Packer run will need, at which point the client disconnects to follow up with the progress of the run.
When a build is posted, validation is needed to ensure that the template being used actually exists in the DB.
builds:
id - UUID generated on create
template_id - ID of base template
state - incomplete, complete, failed
status - installing template, copying template, transforming template, running packer, recording results, cleaning up
last_updated -
transform_payload - payload that will get passed into the transform_script from template
meta_data - return data from [Packer]
build_logs:
id -
build_id -
message -
created_at -
Build process:
Create entry in DB that represents the build
1.5 At a short interval, update last_updated field (goroutine) because packer run might take time
Install template on local node if not already available ([/var/db/sherpa]/templates/:id)
Copy template into a tmp build folder for duration of build ([/var/db/sherpa]/builds/:build_id)
Run transform script (builds/:build_id/{{transform_script}}) if present, passing transform_payload
Packer run (all output (\n) is a new build_log for that build); update last_updated/state of build throughout process
Record - take packer info and dump it into meta_data
Cleanup - delete build folder
The text was updated successfully, but these errors were encountered:
A build represents a "Packer run"; the point of a build is the ability to post a build with all necessary information that a Packer run will need, at which point the client disconnects to follow up with the progress of the run.
When a build is posted, validation is needed to ensure that the template being used actually exists in the DB.
builds:
id - UUID generated on create
template_id - ID of base template
state - incomplete, complete, failed
status - installing template, copying template, transforming template, running packer, recording results, cleaning up
last_updated -
transform_payload - payload that will get passed into the transform_script from template
meta_data - return data from [Packer]
build_logs:
id -
build_id -
message -
created_at -
Build process:
1.5 At a short interval, update last_updated field (goroutine) because packer run might take time
The text was updated successfully, but these errors were encountered: