Skip to content

Conversation

jonaro00
Copy link
Member

@jonaro00 jonaro00 commented May 15, 2025

Introduces:

  • shuttle build which builds the runtime natively with cargo build, just like shuttle run does.
    • Supports --release/-r and --bacon args from run
  • shuttle build --docker which uses the same archiving logic as deploy, and the same dockerfile pipeline as the platform.
    • Great for debugging the platform's build system.
    • --tag/-t [tag] can be used to tag the image (in addition to the default image tag shuttle-build-[project_name]) so that it can later be used to docker push somewhere. Enables adding a --push arg in the future.
    • Does not support --bacon.
    • Always builds in release mode (like platform) (can be changed).
  • (experimental) shuttle run --docker does a local run with the docker build followed by a docker run.
    • Great for debugging the platform's runtime environment.
    • Does not support same things as build --docker, and potentially more. (alpha state, highly untested)
    • Prints a warning about being experimental.

Adds aliases:

  • shuttle i for init
  • shuttle b for build (parity with cargo)
  • shuttle r for run (parity with cargo)
  • shuttle d for deploy (note: shuttle depl is current alias for deployment subcommands)

Also:

  • Fancier "Packing", "Uploading", "Building" printouts that match the ones from cargo

TODO:

  • Ensure maximal parity in run --docker
  • Use gather_rust_build_args in native local run
  • CI for build command
  • Move --output-archive to build args

@jonaro00 jonaro00 changed the title wip: feat(builder): builder crate, shuttle build command wip: feat(builder): builder crate, build and run with docker locally Jun 3, 2025
@jonaro00 jonaro00 changed the title wip: feat(builder): builder crate, build and run with docker locally feat(builder): builder crate, build and run with docker locally Jun 3, 2025
@jonaro00 jonaro00 changed the title feat(builder): builder crate, build and run with docker locally feat(builder, cargo-shuttle): build and run with docker locally Jun 12, 2025
@jonaro00 jonaro00 force-pushed the builder branch 2 times, most recently from f950387 to 731e51f Compare June 18, 2025 18:21
@jonaro00 jonaro00 force-pushed the builder branch 6 times, most recently from 006e357 to 76ec5ca Compare July 2, 2025 15:39
@jonaro00 jonaro00 force-pushed the builder branch 2 times, most recently from cf77c16 to 52aa59e Compare July 4, 2025 21:59
@jonaro00 jonaro00 force-pushed the builder branch 4 times, most recently from 3c04294 to 24c6cd8 Compare July 28, 2025 10:56
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