0.5.6 • Published 6 years ago
pier-docker-cli v0.5.6
pier-docker-cli
Introduction
The purpose of pier-docker-cli
is to change the docker-compose.yml of pier projects and according to past arguments, define which services will be raised locally and which using remote images.
:cloud: Installation
# Using npm
npm install -g pier-docker-cli
# Using yarn
yarn global add pier-docker-cli
Configuration file example
{
"services": {
"pier-service": {
"remote": "url-image",
"local": "local-path"
},
"pier-service-2": {
"remote": "url-image",
"local": "local-path"
}
}
}
Documentation
Usage
pier-docker-cli [--help] [--config] [--services [create | update | delete]] [-f <file>]
[-p main-service] [--run-local -- [service1, service2, service3]]
Args
--help
Show all comands;--config
Show the current config--services
(create|update|delete): The services.-p
Tell the pier-docker-cli which base project we want to execute. (To prevent us from changing the project being executed)-f
(Optional | Default: docker-compose.yml): Indicates a compose.yml of the project to be used by the cli.--run-local --
(String): Defines the services that will be raised locally.
Example of use
pier-docker-cli -f docker-compose-test.yml -p main_service --run-local -- service1 service2