- Make sure you are using go1.8 (
go version
). - Copy the source code (
go get github.com/aws/amazon-ecs-cli
).
From $GOPATH/src/github.com/aws/amazon-ecs-cli
:
- Run
make
(This creates a standalone executable in thebin/local
directory).
From $GOPATH/src/github.com/aws/amazon-ecs-cli/ecs-cli
:
- run
dep ensure && dep prune
. This will download dependencies specified in theGopkg.lock
by default in$GOPATH/pkg/dep/sources
. - NOTE:
dep ensure
puts the dependencies in a detached HEAD state. - NOTE:
dep prune
deletes any unused vendor files.
- We use dep to manage dependencies. Make sure you have version 0.3.2 of dep (installation instructions here).
- To add a dependency, run
dep ensure -add <your_package>
. - To update a dependency, run
dep ensure -update<your_package>
.
- From
$GOPATH/src/github.com/aws/amazon-ecs-cli/
, runmake generate
. This will look for all files namedgenerate_mock.go
in theecs-cli/modules
directory and call thescripts/mockgen.sh
script, which is a wrapper for the mockgen command. - NOTE:
make generate
will also regenerate the license viascripts/license.sh
.
The make docker-build
target builds standalone amd64 executables for
Darwin and Linux. The output will be in bin/darwin-amd64
and bin/linux-amd64
,
respectively.
If you have set up the appropriate bootstrap environments, you may also directly
run the make supported-platforms
target to create standalone amd64 executables
for the Darwin and Linux platforms.
- To run unit tests, run
make test
from$GOPATH/src/github.com/aws/amazon-ecs-cli
.
The Amazon ECS CLI is released under an Apache 2.0 license. Any code you submit will be released under that license.
For significant changes, we may ask you to sign a Contributor License Agreement.
This code of conduct provides guidance on participation in Amazon-managed open source communities, and outlines the process for reporting unacceptable behavior. As an organization and community, we are committed to providing an inclusive environment for everyone. Anyone violating this code of conduct may be removed and banned from the community.
Our open source communities endeavor to:
- Use welcoming and inclusive language;
- Be respectful of differing viewpoints at all times;
- Accept constructive criticism and work together toward decisions;
- Focus on what is best for the community and users.
Our Responsibility. As contributors, members, or bystanders we each individually have the responsibility to behave professionally and respectfully at all times. Disrespectful and unacceptable behaviors include, but are not limited to: The use of violent threats, abusive, discriminatory, or derogatory language;
- Offensive comments related to gender, gender identity and expression, sexual orientation, disability, mental illness, race, political or religious affiliation;
- Posting of sexually explicit or violent content;
- The use of sexualized language and unwelcome sexual attention or advances;
- Public or private harassment of any kind;
- Publishing private information, such as physical or electronic address, without permission;
- Other conduct which could reasonably be considered inappropriate in a professional setting;
- Advocating for or encouraging any of the above behaviors.
Enforcement and Reporting Code of Conduct Issues. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting [email protected]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances.
Attribution. This code of conduct is based on the template established by the TODO Group and the Scope section from the Contributor Covenant version 1.4.