-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(pegboard): integrate setup scripts #1147
feat(pegboard): integrate setup scripts #1147
Conversation
Your org requires the Graphite merge queue for merging into mainYou must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. You can enable merging using labels in your Graphite merge queue settings. |
81dbbe7
to
d3132bc
Compare
49eba8f
to
c939a61
Compare
d3132bc
to
92504c4
Compare
c939a61
to
c873078
Compare
92504c4
to
36cebf1
Compare
c873078
to
3fed967
Compare
36cebf1
to
281896a
Compare
3fed967
to
2d06c72
Compare
@@ -33,6 +33,12 @@ fn main() -> anyhow::Result<()> { | |||
.context("`container_dir` arg required")?; | |||
let pegboard_container_dir = Path::new(&pegboard_container_dir); | |||
|
|||
// Write PID to file | |||
fs::write( | |||
pegboard_container_dir.join("pid"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: use consts for all files that are written. makes it easy to know what's in the folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you elaborate?
@@ -207,6 +226,8 @@ impl Ctx { | |||
// Check file doesn't exist | |||
if fs::metadata(&path).await.is_err() { | |||
utils::download_file(container_runner_binary_url, &path).await?; | |||
|
|||
Command::new("chmod").arg("+x").arg(&path).output().await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: use fs api for this
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
Changes