An open API service indexing awesome lists of open source software.

https://github.com/stevehobbsdev/dokku-goexample


https://github.com/stevehobbsdev/dokku-goexample

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# dokku-goexample

This is an example Dokku plugin written in Go. It also serves as the source repository for the Go plugin build Docker image.

## Development workflow

During normal development, you can build the go files locally using `make build`.

You can also build them inside the container. Use `make run` to build and spin up the container, and then shell into the container using `make shell`, where you're able to run commands against a Dokku instance.

When you make changes to your go files, use `make sync` _outside_ of the container to copy the go files to the right place inside the container and re-run a build.

## Testing workflow

1. Build the testing Docker images, start the container, and install the plugin:

```
make run
```

This creates a Docker image that runs Dokku, as well as installing Golang so that the plugin can be compiled.

2. Shell into the container:

```
make shell
```

3. Interact with the plugin:

```
# e.g. call the help command
dokku hello:help
```