Skip to content

deploy support for machine configs with containers #4289

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mrkurt
Copy link
Member

@mrkurt mrkurt commented Apr 4, 2025

No description provided.

mrkurt added 2 commits April 4, 2025 12:59
This makes fly deploy work with a containers based maching config file:

```toml
[experimental]
machine_config = "machine.json"
```

```json
{
  "containers": [
    {
      "name": "setup-container",
      "image": "docker.io/library/alpine:latest",
      "command": [
        "echo",
        "setup-container 1"
      ]
    },
    {
      "name": "another-container",
      "image": "docker.io/library/alpine:latest",
      "command": [
        "echo",
        "another-container 2"
      ],
      "depends_on": [
        {
          "name": "setup-container",
          "condition": "started"
        }
      ]
    },
    {
      "name": "app",
      "image": "registry.fly.io/fly-app@sha256:a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c",
      "depends_on": [
        {
          "name": "another-container",
          "condition": "started"
        }
      ]
    }
  ]
}
```

This will update the "app" container with the freshly built image and then deploy as normal.
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

Successfully merging this pull request may close these issues.

1 participant