Gary-Ascuy / cargo-rocket-docker

Automate tool sub-command to create a docker image for Rocket Project and build/publish them using Alpine OS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cargo Rocket Docker

Automate tool sub-command to create a docker image for Rocket Project and build/publish them using Alpine OS.

References

Development Setup

Software Requirements

  • Rust Nightly Version
  • Docker Latest

Install into Environment

One-Time Install from Repo

$ cargo install --path . 

Development Mode ( Execute Install after each update)

$ cargo watch -x "install --path ."

Check

$ cargo docker --help

Manual Tests ( WIP: Unit Tests )

# Clone Test Repository
$ git clone https://github.com/Gary-Ascuy/rust-rest-api.git
$ cd rust-rest-api

# Basic Commands
$ cargo docker --build
$ cargo docker --push

# All-In-One Commands
$ cargo docker --build --push
$ cargo docker --all

# Eject Dockerfile && .dockerignore files
$ cargo docker --eject

Docker Image

garyascuy/cargo-rocket-example:1.0.0
OS/ARCH: linux/amd64
SIZE: 4.31 MB
LAST PUSHED: 12 minutes ago by garyascuy

About

Created by Gary Ascuy and Follow me in LinkedIn or GitHub if you want :P.

About

Automate tool sub-command to create a docker image for Rocket Project and build/publish them using Alpine OS.

License:MIT License


Languages

Language:Rust 90.4%Language:HTML 9.6%