Skip to content

Latest commit

 

History

History
84 lines (56 loc) · 3.35 KB

CONTRIBUTING.md

File metadata and controls

84 lines (56 loc) · 3.35 KB

Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

You can contribute in many ways:

Types of Contributions

Report Bugs

Report bugs at https://github.com/tintoy/docker-machine-driver-terraform/issues.

If you are reporting a bug, please include:

  • Your operating system name and version.
  • Any details about your local setup that might be helpful in troubleshooting.
  • Detailed steps to reproduce the bug.

Fix Bugs

Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.

Implement Features

Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.

Write Documentation

The Docker Machine driver for Terraform could always use more documentation, whether as part of the official documentation, in GoDoc, or even on the web in blog posts, articles, and such.

Submit Feedback

The best way to send feedback is to file an issue at https://github.com/tintoy/docker-machine-driver-terraform/issues.

If you are proposing a feature:

  • Explain in detail how it would work.
  • Keep the scope as narrow as possible, to make it easier to implement.
  • Remember that this is a volunteer-driven project, and that contributions are welcome :)

Get Started!

Ready to contribute? Here's how to set up docker-machine-driver-terraform for local development.

  1. Set up your build environment:
  • If you have Vagrant and VMWare / VirtualBox, you can run vagrant up to create a VM to work in.
    • The resulting VM will have your repository folder mapped into the VM as a shared folder (so you can use your regular editor on your machine, but run build commands in the VM).
    • Run vagrant ssh to connect to the VM.
  • Otherwise:
    1. Install Go version 1.6.x
    2. Make sure your GOPATH environment variable has been set.
    3. Run go get -u github.com/tintoy/docker-machine-driver-terraform.
    4. Go to $GOPATH/src/github.com/tintoy/docker-machine-driver-terraform.
  1. Run make dev to build the provider
  2. Run source ./use-dev-driver.sh to make it available to execute.

Make targets

There are a couple of make targets that you'll find useful:

  • make fmt - runs go fmt
  • make dev - builds the driver for the local machine's operating system and platform
  • make test - runs unit tests
  • make build - builds the driver for all supported operating systems and platforms
    • make build-windows64 - builds the driver for Windows (64-bit)
    • make build-linux64 - builds the driver for Linux (64-bit)
    • make build-darwin64 - builds the driver for OSX (64-bit)
  • make dist - builds and packages the driver for all supported operating systems and platforms
  • make version - updates the program version info

Pull Request Guidelines

Before you submit a pull request, check that it meets these guidelines:

  1. Your pull request should target the development/v1.0 branch.
  2. The pull request should include tests (either unit or acceptance, as appropriate).
  3. If the pull request adds or changes functionality, the docs should be updated.

Tips

To enable extended logging from Docker Machine, set the MACHINE_DEBUG environment variable to 1.