Sign inSign up

freshwebio/gowatch

By freshwebio

•Updated almost 10 years ago

Provides functionality on top of the official golang repo to enable watching of go app file changes.

Image
0

329

freshwebio/gowatch repository overview

Provides a script which runs as the container endpoint which deals with utilising the inotify-tools inotifywait command to listen for changes to *.go files in the specified root directory. It will then attempt to build the app, if that succeeds kill the current process running the app and starting a new one.

Prerequisites for using this image is that the two following environment variables are required: APP_DIR - The directory in the container which the application source code will be mounted to. APP_NAME - The name of the app so the script can run the correct binary once it has successfully built the app.

Tag summary

Content type

Image

Digest

Size

252.6 MB

Last updated

almost 10 years ago

docker pull freshwebio/gowatch