Skip to content
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

Aspirate apply doesn't take BindMount custom configurations #245

Open
PedemonteGiacomo opened this issue Jul 25, 2024 · 0 comments
Open

Comments

@PedemonteGiacomo
Copy link

PedemonteGiacomo commented Jul 25, 2024

🔥 Bug Description

I need to find a solution to this problem, where I want to pass custom configuration to container I done that with BindMount and with docker env. and dotnet run, locally, works.

But when I use aspirate I get that the configuration is not taken and no logs are printed that the bind mount were ignored or something else... it just don't apply them so my container deployments doen't have the volume mount with the respective configurations.

An example as code:

var envoy = builder.AddContainer("envoyproxy", "envoyproxy/envoy",tag:"v1.29-latest")
                   .WithBindMount("../envoy/envoy.yaml", "/etc/envoy/envoy.yaml")
                   .WithEndpoint(port: 80, targetPort: 10000, name: "envoy-port", scheme: "http");

The BindMount is properly reported to the manifest as I report here

{
  "resources": {
    "envoyproxy": {
      "type": "container.v0",
      "image": "envoyproxy/envoy:v1.29-latest",
      "bindMounts": [
        {
          "source": "../envoy/envoy.yaml",
          "target": "/etc/envoy/envoy.yaml",
          "readOnly": false
        }
      ],
      "bindings": {
        "envoy-port": {
          "scheme": "http",
          "protocol": "tcp",
          "transport": "http",
          "port": 80,
          "targetPort": 10000
        }
      }
    },

But when I apply the manifest the bindmount is "skipped" and I don't obtain my services working as I need.

Does anyone have the same issue? What's the problem in this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant