on master help sign in
Describe local Docker image build
commit94d7dd5becf8535e5a494a83154a79d6c72a6d29 authorMichael Snoyman <michael@snoyman.com> dateWed 10 May 2017, 16:47 (9 years ago) parent857f079
1 file changed+20
CURATORS.md+20
CURATORS.md+20
@@ -223,6 +223,26 @@ rm -r nightly/work/builds/nightly/
223223```
224224This should also be done when moving the Nightly docker image to a new version of Ubuntu.
225225
226+If you're impatient and would like to build the Docker image on the
227+build server instead of waiting for Docker Hub, you can run the
228+following command:
229+
230+```
231+DIR=$(mktemp -d)
232+(cd $DIR \
233+ && git clone https://github.com/fpco/stackage \
234+ && cd stackage \
235+ && docker build --tag snoyberg/stackage:nightly .)
236+rm -rf $DIR
237+```
238+
239+Note that we do a clean clone of the `stackage` repo instead of using
240+the existing checkout because of how `docker build` works: it will
241+send the entire local directory contents as context to the Docker
242+daemon, which in the case of the build tree is a _lot_ of content. (We
243+can discuss the wisdom&mdash;or lack thereof&mdash;of Docker's
244+approach separately.)
245+
226246## stackage-build server
227247
228248You'll need to get your SSH public key added to the machine. ~/.ssh/config info: