Getting really tiresome to experiment stuff
with multiple scripts. This is an attempt for one cli to rule them all
Additionally it's is helping me learn how to write go command line interface using cobra (https://github.com/spf13/cobra)
cobra add <cmdname>
In order to use logger, make sure startLog
is called first
remove images
docker images --filter "reference=<accountid>.dkr.ecr.ap-southeast-2.amazonaws.com/sample" --format "{{.ID}}"| %{ docker rmi $_ --force}
devenv deploy --type front-proxy
devenv deploy appName --path <folder where Dockerfile is, exclude if current folder has it>
devenv start
devenv stop
devenv init
devenv teardown
devenv init config
rm ~/.ssh/known_hosts
ssh -i ~/.ssh/ecs-instance-ap-southeast-2.pem ec2-user@<domain>