Alternate Container Runtimes #121
aleksrutins
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
I'm currently using podman with the official docker shim. So far I've found that one needs to set the environmental variable.
|
Beta Was this translation helpful? Give feedback.
2 replies
-
I have done it, with the following patch i was able to build and run a rust server diff --git a/src/nixpacks/builder/docker/utils.rs b/src/nixpacks/builder/docker/utils.rs
index 21fa835..604d473 100644
--- a/src/nixpacks/builder/docker/utils.rs
+++ b/src/nixpacks/builder/docker/utils.rs
@@ -8,8 +8,11 @@ pub fn get_cache_mount(
(Some(cache_key), Some(cache_directories)) => cache_directories
.iter()
.map(|dir| {
- let sanitized_dir = dir.replace('~', "/root");
+ let mut sanitized_dir = dir.replace('~', "/root");
let sanitized_key = sanitize_cache_key(&format!("{}-{}", cache_key, sanitized_dir));
+ if !sanitized_dir.starts_with("/") {
+ sanitized_dir = format!("/app/{}",sanitized_dir);
+ }
format!(
"--mount=type=cache,id={},target={}",
sanitized_key, sanitized_dir |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Migrated from #83

Beta Was this translation helpful? Give feedback.
All reactions