Skip to content

Instantly share code, notes, and snippets.

@scossar
Created April 17, 2015 20:29
Show Gist options
  • Save scossar/035c8a6068604bd420fc to your computer and use it in GitHub Desktop.
Save scossar/035c8a6068604bd420fc to your computer and use it in GitHub Desktop.
hooks for Discourse app.yml to load a custom Discourse repo into the docker image
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/discourse/docker_manager.git
- exec:
cd: $home
cmd:
- git remote remove origin
- git config --remove-section branch.master
- git config --remove-section branch.tests-passed
- git remote add origin https://github.com/scossar/discourse-custom
- git fetch
- git remote set-branches --add origin auto-rtl
- git branch -u origin/auto-rtl
- git reset --hard origin/auto-rtl
@scossar
Copy link
Author

scossar commented Apr 17, 2015

Replace 'hooks' section of /var/discourse/containers/app.yml with this to load a custom repo.
Change repo name https://github.com/scossar/discourse-custom and branch name auto-rtl to load your own repo. This repo will change soon.
Remember - no tabs in yaml - wrong indentation will break it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment