cargo-rocket-docker-0.5.0 is not a library.
Cargo Rocket Docker
Automate tool sub-command to create a docker image for Rocket Project and build/publish them using Alpine OS.
Install
To upgrade:
Usage
Add following section into Cargo.toml file
[]
= "app-bin-name"
= "0.1.0"
= "Team Name <mail.support@company.com>"
= "./.tmp_docker"
= "garyascuy/cargo-rocket-example"
Build Docker Images
Push Docker Images
All-In-One Command? Type following command:
All-In-One Command still long? Here more alternatives:
Do you need some custom? Create files and maintaing by yourself ಠ_ಠ:
There's a lot more you can do! Here's a copy of the help:
Config Properties
Here Full Example && Custom Tags && Alpine Packages
[]
= "app-bin-name"
= "0.1.0"
= "Team Name <mail.support@company.com>"
= "./.tmp_docker"
= "garyascuy/cargo-rocket-example"
= [
"registry.gitlab.com/garyascuy:latest",
"registry.gitlab.com/garyascuy:1.0.0",
]
[]
= "acf-openssl"
= "imagemagick second-pkg other-pkg"
Descriptions
# Cargo Docker Settings
[]
= "app-bin-name" # docker will copy from target/release/{app-bin-name}
= "1.0.0" # Docker image version
= "Team Name <mail@company.com>" # Responsible for image
= "account/back" # Docker tag base, it will create account/back:{version} and account/back:latest
= [ # docker build will use these spesific tags to create the images and publish
"garyascuy/server:1.0.0",
"garyascuy/server:latest",
]
# Optional install extra packages in Alpine OS
[]
= "acf-openssl" # apk add acf-openssl in build image, development dependencies
= "imagemagick second-pkg other-pkg" # add packages in final image, production dependencies
About
Created by [Gary Ascuy][garyascuy] and Follow me in LinkedIn or GitHub if you want :P.