Skip to content

Commit

Permalink
fix: move hosts file into oci bundle (#1433)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
MasterPtato committed Nov 22, 2024
1 parent a9db3de commit 8c45cbd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions packages/infra/client/manager/src/actor/oci_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,6 @@ fn mounts(opts: &ConfigOpts) -> Result<serde_json::Value> {
"source": opts.actor_path.join("resolv.conf").to_str().context("resolv.conf path")?,
"options": ["rbind", "rprivate"]
},
{
"destination": "/etc/hosts",
"type": "bind",
"source": opts.actor_path.join("hosts").to_str().context("hosts path")?,
"options": ["rbind", "rprivate"]
},
]))
}

Expand Down
2 changes: 1 addition & 1 deletion packages/infra/client/manager/src/actor/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ impl Actor {

// hosts
fs::write(
actor_path.join("hosts"),
oci_bundle_path.join("hosts"),
indoc!(
"
127.0.0.1 localhost
Expand Down

0 comments on commit 8c45cbd

Please sign in to comment.