Skip to content

[NEW] subcommand deploy #17

@Bechma

Description

@Bechma

To fulfil the entire lifecycle of cyberfabric, we would need to support a new command.
deploy should be in charge of creating for now:

  1. Basic helm templates: Chart + deployment + configmap(based on the config specified) + ingress(if required) + service + secrets(if required)
  2. Dockerfile (simple one)

For now that command should be very restricted, while we are developing features and collecting feedback.

-c/--config as we currently use.
--docker should build an image based on:

  1. Generate the manifest and main file with our internal logic for build.
  2. Use multi-stage build in the Dockerfile, so first step you upload the Cargo.toml, Cargo.lock, src/main.rs, .cargo/config.toml from .cyberfabric/<NAME> and workspace from the project: Cargo.toml + modules/* or other related members from that workspace.
  3. Second step will be to take that binary, put it in a place like /srv/{EXECUTABLE_NAME:cyberfabric} with an ENTRYPOINT to run it. Also make sure to load the configuration file pointed with -c to /srv/config.yml.

I expect one PR with the previous, and another PR with --helm in order to generate that helm templates based on the configuration(although for now let's keep it basic).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions