<p>Hi,</p>
<p>I'm experimenting with go-swagger and really quite liking it so far. One thing I'm unsure is now how to build / deploy rest services using docker with that code gen step.</p>
<p>So currently my services are built using docker (golang image) and the compiled artifacts get put into a busybox container to be run / its that image that is published.</p>
<p>The only way I can see go-swagger working here is by writing a little script that gets the swagger binary and generates the server API before its all compiled. I don't want to be manually generating and/or committing compiled code into vcs.</p>
<p>Just wandering what other people do here or if there is an easier way?</p>
<p>Thanks.</p>
<hr/>**评论:**<br/><br/>robbert229: <pre><p>I reccoment looking at twitchtv's retool. Its like glide but for dependencies. </p>
<p>Also beware that the goswagger binary can generate code for a different version than the library it uses. </p>
<p>Thats why retool and vendoring your source are super importabt for a stable experience</p></pre>