/gokit-editors

Editors for GoKit projects.

Primary LanguageShellApache License 2.0Apache-2.0

Atomist 'gokit-editors'

Build Status Slack Status

This Rug archive contains editors for a Go kit projects.

Rugs

AddGokitMicroserviceDockerfile

The AddGokitMicroserviceDockerfile Editor adds an appropriate Docker Dockerfile to an existing Go kit project.

Prerequisites

There are no prerequisites to running this editor.

Parameters

To run this editor you must supply the following parameters.

Name Required Default Description
maintainer_name Yes Name of the project maintainer to be used in the resulting Dockerfile.
maintainer_email Yes The project maintainer's email address to be used in the resulting Dockerfile.

Running

Run it as follows:

$ cd parent/directory
$ rug edit atomist-rugs:gokit-rest-service:AddGokitMicroserviceDockerfile \
    maintainer_name="The Dude" \
    maintainer_email="thedude@hollywoodstarlanes.com"

This will create an appropriate Docker Dockerfile in a docker directory named pet-shop-service. If you are happy with the change, commit the changes.

$ git add .
$ git commit -m 'Dockerfile added by Atomist'

Created by Atomist. Need Help? Join our Slack team