You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

openshift.mkd 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ## Gitblit on RedHat's OpenShift Cloud Service
  2. The Gitblit Express distribution can be copied to the root of your RedHat OpenShift
  3. application repository. Gitblit Express is an exploded WAR file with all appropriate
  4. dependencies bundled.
  5. You should delete the `pom.xml` file and the `src` folder from your application repository
  6. as Gitblit Express is not a source distribution to be built with Maven on OpenShift.
  7. Gitblit automatically adjusts itself to running on OpenShift. Repositories, users,
  8. federation proposals, setting overrides, and Groovy push scripts are stored in *OPENSHIFT_DATA_DIR*.
  9. It is recommended to enable all RPC settings in the `web.xml` file to allow remote
  10. administration and, more importantly, configuration of your Gitblit Express
  11. installation using the Gitblit Manager.
  12. It is also recommended to set *web.forwardSlashCharacter* to ! because OpenShift
  13. runs on JBoss/Tomcat behind a proxy, neither of which are friendly to embedded
  14. forward-slashes.
  15. Please do not change the following settings unless you know exactly what you are
  16. doing:
  17. - *git.repositoriesFolder*
  18. - *groovy.scriptsFolder*
  19. - *federation.proposalsFolder*
  20. - *realm.userService* (for standard users.conf)
  21. Additionally, it is recommended to force your Gitblit installation to cleanup up
  22. older versions on your OpenShift filesystem to maximize available space for your
  23. repositories.
  24. Append the following command to your ./openshift/action_hooks/build file:
  25. rm -fr $OPENSHIFT_APP_DIR/jbossas-7.0/standalone/tmp/vfs/*
  26. Lastly, you may want to play with the heap and permgen settings of your Gitblit
  27. instance because the default heap for the JVM is 95 MB, which may be a little
  28. tight.
  29. To do that you will have to login to your account via ssh:
  30. ssh hashcode@app-domain.rhcloud.com
  31. and then you will have to manipulate the -Xmx and -XX:MaxPermSize values.
  32. vi $OPENSHIFT_APP_DIR/jbossas-7.0/bin/standalone.conf
  33. ctl_app restart
  34. OpenShift currently allows 300MB of memory per application which includes ssh access, JVM, etc.
  35. The Gitblit demo hosted on OpenShift Express operates with -Xmx160m and -XX:MaxPermSize=90m.
  36. For more detailed instructions on how to setup and deploy an OpenShift application
  37. please see this excellent turorial:
  38. https://github.com/opensas/play-demo/wiki/Step-12.5---deploy-to-openshift