https://github.com/stevehobbsdev/dokku-goexample
https://github.com/stevehobbsdev/dokku-goexample
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stevehobbsdev/dokku-goexample
- Owner: stevehobbsdev
- Created: 2024-11-10T11:04:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-10T15:22:05.000Z (over 1 year ago)
- Last Synced: 2025-01-18T11:14:19.634Z (over 1 year ago)
- Language: Makefile
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Support: support/Dockerfile
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
```