on master help sign in
Experimental Docker instructions
commit2defc5b2a538666a44917594da8bc5c95967465f authorMichael Snoyman <michael@snoyman.com> dateSun 11 Jan 2015, 10:17 (12 years ago) parentfd56370
1 file changed+22
README.md+22
README.md+22
@@ -49,6 +49,28 @@ build by running:
4949 cabal install stackage
5050 stackage nightly
5151
52+### Docker
53+
54+Note: This method is currently considered experimental.
55+
56+If you'd like to check a build plan, or perform an entire build, without
57+specially configuring your system, Docker may be a good approach. To check if
58+some modifications to `build-constraints.yaml` are valid, try the following:
59+
60+1. Create a local clone of the `stackage` repo
61+2. Make modifications to your local `build-constraints.yaml`
62+3. Inside the `stackage` working directory, run the following:
63+
64+ ```
65+ $ docker run -it --rm -v $(pwd):/stackage -w /stackage snoyberg/stackage /bin/bash -c 'cabal update && stackage check'
66+ ```
67+
68+Similarly, if you'd like to perform an entire build, you can replace the last step with:
69+
70+```
71+$ docker run -it --rm -v $(pwd):/stackage -w /stackage snoyberg/stackage /bin/bash -c 'cabal update && stackage build --skip-upload'
72+```
73+
5274## Processing
5375
5476The following describes at a high level the series of steps for processing