twbs / gruntworker

Periodically grabs changes, runs build scripts, and pushes built changes back to the Bootstrap git repo

Home Page:https://github.com/twbs-grunt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Docker VOLUME for git repo

cvrebert opened this issue · comments

This is needed so that the repo and the node_modules are mutable and persistent across different runs of the Docker image.
Savage wasn't affected by this since it's a daemon and thus only uses one container.

Welp, that failed.
Looks like adding -v /host/path:/container/path to the docker run command in gruntworker.crontab is the easiest (albeit slightly annoying) proper way to do this.
This will unfortunately mean the git remote/config setup commands will have to be moved out of the Dockerfile.

Decided instead to just stop using Docker for this. Too much yak shaving.