tobegit3hub / seagull

Friendly Web UI to manage and monitor docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pack static and views folder into the binary

chneau opened this issue · comments

Idea: Using something like static to pack all html/css/js into the binary.

I believe it could potentially ease the use of the binary itself.

Pros:
It could greatly simplify deployment method.

go get -u github.com/tobegit3hub/seagull

And that's it. You can type in seagull and it's up and running. Don't need to be on $GOPATH/src/github.com/tobegit3hub/seagull .

Cons:
Either: clients need to install statik first and you can add //go:generate statik -src=./public to the top of the main file (here as an example).

Or the git contains the generated statik file (which is basically a go file with a variable containing a "zip" and registering itself to statik library, but it's not really a code file, more like a binary file which is not very git friendly).

commented

I'm not sure if it's good for relying static tool to package the binary since we have docker image to run seagull easily.