A minimal deployment tool for Amazon Lightsail Container.
usage: sailtrim [<flags>] <command> [<args> ...]
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--log-level=info log level (trace, debug, info, warn, error)
--config="config.yaml" configuration file path
Commands:
help [<command>...]
Show help.
version
show version
deploy
create new deployment
update
update container service
status [<flags>]
show container service status
init --service-name=SERVICE-NAME
initialize a container service
logs [<flags>]
show logs
# config.yaml
service: service.json
deployment: deployment.json
service.json
represents container service attributes.
{
"containerServiceName": "container-service-1",
"power": "micro",
"scale": 1
}
deployment.json
represents a deployments of container service.
{
"containers": {
"nginx": {
"image": "nginx:latest",
"command": [],
"environment": {
"FOO": "BAR"
},
"ports": {
"80": "HTTP"
}
}
},
"publicEndpoint": {
"containerName": "nginx",
"containerPort": 80,
"healthCheck": {
"healthyThreshold": 2,
"unhealthyThreshold": 2,
"timeoutSeconds": 2,
"intervalSeconds": 5,
"path": "/",
"successCodes": "200-499"
}
}
}
MIT License
Copyright (c) 2020 FUJIWARA Shunichiro