Skip to content

feat(serverless): deploy apps from a container source - #104

Merged
Ryank90 merged 4 commits into
rc/serverlessfrom
feat/apps-deploy-container
Sep 4, 2026
Merged

feat(serverless): deploy apps from a container source#104
Ryank90 merged 4 commits into
rc/serverlessfrom
feat/apps-deploy-container

Conversation

@Ryank90

@Ryank90 Ryank90 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add runware serverless deploy --container <dir> to create an app from a wrapper Dockerfile + container.yaml archive (appSource.type = container, upload sourceType: container).
  • Keep the existing deploy <file> code path unchanged; --container is mutually exclusive with an entry file, --src-dir, --base-image, and --requirement.
  • Local pack requires both files at the directory root (and force-packs them past ignore rules). Create still rejects invalid container.yaml (400 / 422). There is no --image / imageRef — the platform builds a hosted image and the version records a buildId.

Ryank90 and others added 4 commits September 4, 2026 20:51
Expose POST /v1/apps/{appId}/deploy so operators can pin or roll back
to a ready version without creating a new build.

Co-authored-by: Cursor <cursoragent@cursor.com>
The rollback example now activates a lower version number, and the
app table labels the UUID as Active version ID.

Co-authored-by: Cursor <cursoragent@cursor.com>
Upload a Dockerfile + container.yaml directory as sourceType container so create can build a hosted wrapper image instead of requiring a customer image ref.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. To trigger a review, include coderabbit-review in the PR description. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 89debcba-08ec-4214-84cf-21668c1c1022

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The container deploy path is consistently integrated end-to-end (pack → upload declaration → app source) with targeted tests and updated CLI/docs, and no correctness issues were found in the reviewed changes.

Pull request overview

Adds support for deploying serverless apps from a “container source” directory (Dockerfile + container.yaml) via runware serverless deploy --container <dir>, wiring the new source type through local packing, source upload declaration, appSource creation, and user-facing docs/tests.

Changes:

  • Extend source upload to declare an explicit sourceType (code vs container) and add coverage for container declarations.
  • Add a container packer that requires Dockerfile/container.yaml at the archive root and force-includes them even if ignored.
  • Update serverless deploy to accept either an entry file (code path) or --container (container path), including validations, tests, and docs.
File summaries
File Description
internal/cmd/serverless/upload.go Parameterizes uploadSource with sourceType for code/container uploads.
internal/cmd/serverless/upload_test.go Updates existing tests for new signature; adds container sourceType assertion.
internal/cmd/serverless/pack.go Generalizes required-file packing and introduces packContainerDirectory + container file requirements.
internal/cmd/serverless/pack_test.go Adds tests for container packing, ignore behavior, and missing/invalid required files.
internal/cmd/serverless/deploy.go Adds --container deploy mode with mutual-exclusion validation and correct appSource construction.
internal/cmd/serverless/deploy_test.go Covers deploy arg validation, archive building for both modes, and flag registration.
internal/api/serverless/client.go Exposes container-related types/constants and adds NewContainerAppSource.
internal/api/serverless/client_test.go Adds test coverage for NewContainerAppSource and round-trip JSON behavior.
docs/runware_serverless_deploy.md Documents container deploy mode, usage, examples, and option semantics.
Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Base automatically changed from feat/apps-versions-activate to rc/serverless September 4, 2026 22:21
@Ryank90
Ryank90 merged commit 575f4b3 into rc/serverless Sep 4, 2026
7 checks passed
@Ryank90
Ryank90 deleted the feat/apps-deploy-container branch September 4, 2026 22:21
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.

3 participants