Matthias Mullie has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/393728 )
Change subject: Add instructions to build 3d2png-deploy in an obvious place ...................................................................... Add instructions to build 3d2png-deploy in an obvious place These instructions were copied over from the commit msg of If4212483a31e38081345e58541e88ca440cd8eeb Change-Id: Ib490c90eacde9b73f3bb113dbfa3602a47da1787 --- M README.md 1 file changed, 27 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/3d2png refs/changes/28/393728/1 diff --git a/README.md b/README.md index c4a9568..d29b7e6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,29 @@ # 3d2png -Simple thumbnail generator for AMF and STL files. It tries to pick a reasonable camera position based on the bounding box of the geometry. +Simple thumbnail generator for AMF and STL files. It tries to pick a reasonable +camera position based on the bounding box of the geometry. + +## How to build 3d2png-deploy + +The deploy repository needs to be built on a system as similar to the +production hosts as possible. For this reason, we use the service-runner +package, which spins up a Docker container based on the definition +provided in the `deploy` stanza of package.json, installs the +distribution packages needed, builds the node_modules directory and +updates the source repo submodule. + +To that end, this commit adds the deployment definition to package.json +and service-runner as a development dependency (which means it will not +get installed into the deploy repository). There is also a minimal +config.yaml file that is needed by service-runner in order to build the +deploy repository. + +Note that in order for the build process to work you need Docker set up +on the machine, as well as configure git to point to the location of the +deploy repository: + + $ git config deploy.dir /full/path/to/deploy/repo + +The build process can then be initiated with + + $ npm run build-deploy -- To view, visit https://gerrit.wikimedia.org/r/393728 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib490c90eacde9b73f3bb113dbfa3602a47da1787 Gerrit-PatchSet: 1 Gerrit-Project: 3d2png Gerrit-Branch: master Gerrit-Owner: Matthias Mullie <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
