cargo-rocket-docker-0.3.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.
Build Docker Image from Rocket Project
Push Docker images from Rocket Project
Build and Push Docker images from Rocket Project, many alternatives
Add following settings in your Cargo.toml
Basic Configuration
[]
= "server"
= "0.1.0"
= "Team Name <mail@company.com>"
= "garyascuy/cargo-rocket-example"
[]
= "server"
= "0.1.0"
= "Team Name <mail@company.com>"
= "garyascuy/cargo-rocket-example"
= [
"registry.gitlab.com/garyascuy:latest",
"registry.gitlab.com/garyascuy:1.0.0",
]
Alternative with Alpine PKG Dependencies for development and production
[]
= "package-name"
= "1.0.0"
= "Team Name <mail@company.com>"
= "garyascuy/cargo-rocket-example"
= [
"registry.gitlab.com/garyascuy:latest",
"registry.gitlab.com/garyascuy:1.0.0",
]
[]
= "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"