Easy going shipment for your docker-compose apps
$ gem install mr-shipper
You need to create your own shipper.yml
file with the content similar to:
services:
production:
frontend:
path: "./sample-fronted"
before_build:
- "yarn build"
repo: "<dockerhub-nickname>/sample-fronted"
backend:
path: "./sample-backend"
repo: "<dockerhub-nickname>/sample-backend"
hosts:
production:
ssh_entry: "user@host"
location: "~/apps/sample"
-
To ship all services in your
shipper.yml
$ ship
Note: it ships production environment
-
To specify the list of services which need to be shipped
$ ship production frontend super_api ...
-
To recreate containers on host
$ ship production restart
And so.. that's all for now. To be expanded with more cooler configurations for different hosts and so on..