Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fujiwara/sailtrim
A minimal deployment tool for Amazon Lightsail.
https://github.com/fujiwara/sailtrim
aws container deploy lightsail
Last synced: about 1 month ago
JSON representation
A minimal deployment tool for Amazon Lightsail.
- Host: GitHub
- URL: https://github.com/fujiwara/sailtrim
- Owner: fujiwara
- License: mit
- Created: 2020-11-20T16:45:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-11T15:56:25.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T01:59:18.773Z (5 months ago)
- Topics: aws, container, deploy, lightsail
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sailtrim
A minimal deployment tool for [Amazon Lightsail Container](https://aws.amazon.com/jp/blogs/news/lightsail-containers-an-easy-way-to-run-your-containers-in-the-cloud/).
## Usage
```
usage: sailtrim [] [ ...]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 pathCommands:
help [...]
Show help.version
show versiondeploy
create new deploymentupdate
update container servicestatus []
show container service statusinit --service-name=SERVICE-NAME
initialize a container servicelogs []
show logs
```## Configuration
```yaml
# config.yaml
service: service.json
deployment: deployment.json
````service.json` represents container service attributes.
```json
{
"containerServiceName": "container-service-1",
"power": "micro",
"scale": 1
}
````deployment.json` represents a deployments of container service.
```json
{
"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"
}
}
}
```## LICENSE
MIT License
Copyright (c) 2020 FUJIWARA Shunichiro