-
Notifications
You must be signed in to change notification settings - Fork 2
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: misc minor QoL features #112
Conversation
pub static ref DEFAULT_AOT_BIN: PathBuf = | ||
std::env::var("AOT_BIN").map(PathBuf::from).unwrap_or( | ||
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../target/release/snarkos-aot"), | ||
); | ||
pub static ref DEFAULT_AGENT_BIN: PathBuf = | ||
std::env::var("AGENT_BIN").map(PathBuf::from).unwrap_or( | ||
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../target/release/snops-agent"), |
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.
if we want the smaller binary. The path is different. I have the makefile outputting in in target/snops-agent-compressed
. Or if you don't want to upx it, it would be in target/x86_64-unknown-linux-gnu/release-small/snarkos-aot
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.
this is kind of a workaround at the moment, we probably should just require the control plane to launch with a path to the agent as an arg
@@ -192,10 +193,15 @@ impl From<FilenameString> for String { | |||
} | |||
|
|||
lazy_static! { | |||
// TODO: support multiple architectures | |||
pub static ref DEFAULT_AOT_BIN: PathBuf = | |||
std::env::var("AOT_BIN").map(PathBuf::from).unwrap_or( | |||
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../target/release/snarkos-aot"), |
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.
Same for this one actually
connect
in the storage work without requiring extra non-existent files./scripts/agent.sh
(and prepare for dynamic endpoint ids)