cargo-rocket-docker-0.2.0 is not a library.
Cargo Rocket Docker - Work In Progress (IMPORTANT)
Sub-command to create a docker image for Rocket Project and build using Alpine OS.
Features
Creates Dockerfile & .dockerignore files into a rocket project.
Add following settings in your Cargo.toml
Basic Configuration
[]
= "package-name"
= "1.0.0"
= "Team Name <mail@company.com>"
[]
= "acf-openssl"
= "imagemagick second-pkg other-pkg"
Alternative with Alpine PKG Dependencies for development and production
[]
= "package-name"
= "1.0.0"
= "Team Name <mail@company.com>"
[]
= "acf-openssl"
= "imagemagick second-pkg other-pkg"
Descriptions
[]
= "package-name" # docker will copy from target/release/{package-name}
= "1.0.0" # Docker image version
= "Team Name <mail@company.com>"
= "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
IDEA
Creates a docker image based on alpine for project, and it allow you put tags tofor images, if you have operation system dependencies you can espesify into configuration.
# Variant for all flow
Publish all images into the Docker repository.
Creates Dockerfile and ingore file to custumize acording to your requirement.
Custom Configuration into Cargo.toml
[]
= 'server'
= '1.6.6'
= 'fromfile<file@from.com>'
= "garyascuy/server"
= [
"garyascuy/server:1.0.0",
"garyascuy/server:latest",
]
[]
= "imagemagick"
= "gary"