]> source.dussan.org Git - gitblit.git/commitdiff
Remove the OpenShift Express build 86/86/1
authorJames Moger <james.moger@gitblit.com>
Fri, 23 May 2014 15:32:14 +0000 (11:32 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 23 May 2014 15:32:14 +0000 (11:32 -0400)
build.xml
src/site/openshift.mkd [deleted file]
src/site/setup_express.mkd [deleted file]
src/site/siteindex.mkd
src/site/upgrade_express.mkd [deleted file]

index 905042682ba8aabd227dc0075cee3cd42103eebe..f45c4ca9a0592e1c3d12a6758ecd733683ef306d 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -48,7 +48,6 @@
                <property name="manager.zipfile" value="manager-${project.version}.zip" />\r
                <property name="authority.zipfile" value="authority-${project.version}.zip" />\r
                <property name="gbapi.zipfile" value="gbapi-${project.version}.zip" />\r
-               <property name="express.zipfile" value="express-${project.version}.zip" />\r
                <property name="maven.directory" value="${basedir}/../gitblit-maven" />\r
 \r
                <!-- Download links -->\r
        </target>\r
 \r
 \r
-       <!-- \r
-               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
-               Build a Gitblit filesystem for deployment to RedHat OpenShift Express\r
-               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
-       -->\r
-       <target name="buildExpress" depends="compile" description="Build exploded WAR file suitable for deployment to OpenShift Express">\r
-               <echo>Building Gitblit Express for RedHat OpenShift ${project.version}</echo>\r
-               \r
-               <local name="express.dir" />\r
-               <property name="express.dir" value="${project.outputDirectory}/express" />              \r
-               <delete dir="${express.dir}" />\r
-               \r
-               <!-- Create the OpenShift filesystem -->\r
-               <local name="deployments.root" />\r
-               <property name="deployments.root" value="${express.dir}/deployments/ROOT.war"/>\r
-               <mkdir dir="${deployments.root}" />\r
-               <touch file="${express.dir}/deployments/ROOT.war.dodeploy" />\r
-\r
-               <local name="webinf" />\r
-               <property name="webinf" value="${deployments.root}/WEB-INF" />\r
-\r
-               <!-- Prepare the data directory -->\r
-               <prepareDataDirectory toDir="${webinf}/data" />\r
-                                       \r
-               <!-- Build the Express web.xml from the prototype web.xml and gitblit.properties -->\r
-               <!-- THIS FILE IS NOT OVERRIDDEN ONCE IT IS BUILT!!! -->\r
-               <mx:webxml sourcefile="${project.src.dir}/WEB-INF/web.xml" destfile="${webinf}/web.xml"\r
-                       propertiesFile="${project.distrib.dir}/data/gitblit.properties"\r
-                       skip="server.*">\r
-                       <replace token="@gb.version@" value="${project.version}" />\r
-               </mx:webxml>\r
-\r
-               <!-- Gitblit classes -->\r
-               <mx:jar destfile="${webinf}/lib/gitblit.jar" includeresources="false" />\r
-\r
-               <!-- Build Express Zip file -->\r
-               <mx:zip basedir="${express.dir}" destfile="${project.targetDirectory}/${express.zipfile}">\r
-                       <fileset dir="${basedir}">\r
-                               <include name="LICENSE" />\r
-                               <include name="NOTICE" />\r
-                       </fileset>\r
-                       <!-- README -->\r
-                       <zipfileset fullpath="README.gitblit" file="${project.siteSourceDirectory}/openshift.mkd" />\r
-                       <!-- resources -->\r
-                       <zipfileset prefix="deployments/ROOT.war" dir="${project.resources.dir}">\r
-                               <exclude name="thumbs.db" />\r
-                               <exclude name="*.mkd" />\r
-                       </zipfileset>\r
-                       <!-- include "war" tagged dependencies -->\r
-                       <dependencies prefix="deployments/ROOT.war/WEB-INF/lib" tag="war" />\r
-               </mx:zip>\r
-\r
-       </target>\r
-\r
-\r
        <!-- \r
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
                Build the stand-alone, Gitblit Manager\r
                                                <page name="upgrade WAR" src="upgrade_war.mkd" />\r
                                        </menu>\r
                                        <divider />\r
-                                       <menu name="Gitblit Express" pager="true" pagerPlacement="bottom" pagerLayout="justified">\r
-                                               <page name="setup Express" src="setup_express.mkd" />\r
-                                               <page name="upgrade Express" src="upgrade_express.mkd" />\r
-                                       </menu>\r
-                                       <divider />\r
                                        <menu name="Server Configuration" pager="true" pagerPlacement="bottom" pagerLayout="justified">\r
                                                <page name="administration" src="administration.mkd" />\r
                                                <page name="authentication" src="setup_authentication.mkd" />\r
                                        <link name="Gitblit GO (Windows)" src="${gc.url}gitblit-${project.releaseVersion}.zip" />\r
                                        <link name="Gitblit GO (Linux/OSX)" src="${gc.url}gitblit-${project.releaseVersion}.tar.gz" />\r
                                        <link name="Gitblit WAR" src="${gc.url}gitblit-${project.releaseVersion}.war" />\r
-                                       <link name="Gitblit Express" src="${gc.url}express-${project.releaseVersion}.zip" />\r
                                        <divider />\r
                                        <link name="Gitblit Manager" src="${gc.url}manager-${project.releaseVersion}.zip" />\r
                                        <link name="Federation Client" src="${gc.url}fedclient-${project.releaseVersion}.zip" />\r
                Build all binaries and site\r
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
        -->\r
-       <target name="buildAll" depends="buildGO,buildWAR,buildExpress,buildFederationClient,buildManager,buildApiLibrary,buildSite" />         \r
+       <target name="buildAll" depends="buildGO,buildWAR,buildFederationClient,buildManager,buildApiLibrary,buildSite" />              \r
 \r
        \r
        <!--\r
                        source="${project.targetDirectory}/${gbapi.zipfile}" \r
                        target="gbapi-${project.version}.zip" />\r
 \r
-               <!-- Upload Gitblit Express for RedHat OpenShift -->\r
-               <bintrayUpload\r
-                       source="${project.targetDirectory}/${express.zipfile}" \r
-                       target="express-${project.version}.zip" />\r
-\r
        </target>\r
 \r
        \r
                                                        <page name="upgrade WAR" src="upgrade_war.mkd" />\r
                                                </menu>\r
                                                <divider />\r
-                                               <menu name="Gitblit Express" pager="true" pagerPlacement="bottom" pagerLayout="justified">\r
-                                                       <page name="setup Express" src="setup_express.mkd" />\r
-                                                       <page name="upgrade Express" src="upgrade_express.mkd" />\r
-                                               </menu>\r
-                                               <divider />\r
                                                <menu name="Server Configuration" pager="true" pagerPlacement="bottom" pagerLayout="justified">\r
                                                        <page name="administration" src="administration.mkd" />\r
                                                        <page name="authentication" src="setup_authentication.mkd" />\r
diff --git a/src/site/openshift.mkd b/src/site/openshift.mkd
deleted file mode 100644 (file)
index 63b1b00..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-## Gitblit on RedHat's OpenShift Cloud Service\r
-\r
-The Gitblit Express distribution can be copied to the root of your RedHat OpenShift\r
-application repository.  Gitblit Express is an exploded WAR file with all appropriate\r
-dependencies bundled.\r
-\r
-You should delete the `pom.xml` file and the `src` folder from your application repository\r
-as Gitblit Express is not a source distribution to be built with Maven on OpenShift.\r
-\r
-Gitblit automatically adjusts itself to running on OpenShift.  Repositories, users,\r
-federation proposals, setting overrides, and Groovy push scripts are stored in *OPENSHIFT_DATA_DIR*.\r
-\r
-It is recommended to enable all RPC settings in the `web.xml` file to allow remote\r
-administration and, more importantly, configuration of your Gitblit Express\r
-installation using the Gitblit Manager.\r
-\r
-It is also recommended to set *web.forwardSlashCharacter* to ! because OpenShift\r
-runs on JBoss/Tomcat behind a proxy, neither of which are friendly to embedded\r
-forward-slashes.\r
-\r
-Please do not change the following settings unless you know exactly what you are\r
-doing:\r
-\r
-- *git.repositoriesFolder*\r
-- *groovy.scriptsFolder*\r
-- *federation.proposalsFolder*\r
-- *realm.userService* (for standard users.conf)\r
\r
-Additionally, it is recommended to force your Gitblit installation to cleanup up\r
-older versions on your OpenShift filesystem to maximize available space for your\r
-repositories.\r
-\r
-Append the following command to your ./openshift/action_hooks/build file:\r
-\r
-    rm -fr $OPENSHIFT_APP_DIR/jbossas-7.0/standalone/tmp/vfs/*\r
-\r
-Lastly, you may want to play with the heap and permgen settings of your Gitblit\r
-instance because the default heap for the JVM is 95 MB, which may be a little\r
-tight.\r
-\r
-To do that you will have to login to your account via ssh:\r
-\r
-    ssh hashcode@app-domain.rhcloud.com\r
-\r
-and then you will have to manipulate the -Xmx and -XX:MaxPermSize values.\r
-\r
-    vi $OPENSHIFT_APP_DIR/jbossas-7.0/bin/standalone.conf\r
-    ctl_app restart\r
-\r
-OpenShift currently allows 300MB of memory per application which includes ssh access, JVM, etc.\r
-The Gitblit demo hosted on OpenShift Express operates with -Xmx160m and -XX:MaxPermSize=90m.\r
-\r
-For more detailed instructions on how to setup and deploy an OpenShift application\r
-please see this excellent turorial:\r
-\r
-https://github.com/opensas/play-demo/wiki/Step-12.5---deploy-to-openshift\r
diff --git a/src/site/setup_express.mkd b/src/site/setup_express.mkd
deleted file mode 100644 (file)
index cf3ef65..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-## Gitblit on RedHat's OpenShift Cloud Service\r
-\r
-The Gitblit Express distribution can be copied to the root of your RedHat OpenShift\r
-application repository.  Gitblit Express is an exploded WAR file with all appropriate\r
-dependencies bundled.\r
-\r
-You should delete the `pom.xml` file and the `src` folder from your application repository\r
-as Gitblit Express is not a source distribution to be built with Maven on OpenShift.\r
-\r
-Gitblit automatically adjusts itself to running on OpenShift.  Repositories, users,\r
-federation proposals, setting overrides, and Groovy push scripts are stored in *OPENSHIFT_DATA_DIR*.\r
-\r
-### Recommended Settings\r
-\r
-You should disable the git daemon by setting *git.daemonPort=0*.\r
-\r
-It is recommended to enable all RPC settings in the `web.xml` file to allow remote\r
-administration and, more importantly, configuration of your Gitblit Express\r
-installation using the Gitblit Manager.\r
-\r
-It is also recommended to set *web.forwardSlashCharacter* to ! because OpenShift\r
-runs on JBoss/Tomcat behind a proxy, neither of which are friendly to embedded\r
-forward-slashes.\r
-\r
-Please do not change the following settings unless you know exactly what you are\r
-doing:\r
-\r
-- *git.repositoriesFolder*\r
-- *groovy.scriptsFolder*\r
-- *federation.proposalsFolder*\r
-- *realm.userService* (for standard users.conf)\r
-\r
-### Native Git Failures\r
-\r
-Unfortunately, sometime in early 2013 RedHat changed their SSL certificate such that cloning from/pushing to Gitblit Express over https fails due to an SNI (server name indication) TLS alert.  There is no known workaround for native git and https.\r
-\r
-However, if your git client is JGit-based, like Eclipse/EGit, then you can workaround this problem and happily push/clone using https and OpenShift.\r
-\r
-Luckily, Java 6-based clients ignore SNI alerts but when using Java 7-based clients, SNI checking is enabled by default.  You can disable SNI alerts by specifying the JVM system parameter `-Djsse.enableSNIExtension=false` when your Java-based client launches.\r
-\r
-For Eclipse, you can append `-Djsse.enableSNIExtension=false` to your *eclipse.ini* file.\r
-\r
-### Heap and PermGen\r
-\r
-You may want to play with the heap and permgen settings of your Gitblit\r
-instance because the default heap for the JVM is 95 MB, which may be a little\r
-tight.\r
-\r
-To do that you will have to login to your account via ssh:\r
-\r
-    ssh hashcode@app-domain.rhcloud.com\r
-\r
-and then you will have to manipulate the -Xmx and -XX:MaxPermSize values.\r
-\r
-    vi $OPENSHIFT_APP_DIR/jbossas-7.0/bin/standalone.conf\r
-    ctl_app restart\r
-\r
-OpenShift currently allows 300MB of memory per application which includes ssh access, JVM, etc.\r
-The Gitblit demo hosted on OpenShift Express operates with -Xmx160m and -XX:MaxPermSize=90m.\r
-\r
-For more detailed instructions on how to setup and deploy an OpenShift application\r
-please see this excellent turorial:\r
-\r
-[Deploying to OpenShift](https://github.com/opensas/play-demo/wiki/Step-12.5---deploy-to-openshift)\r
index 88bb3f3b9787c7583ecb9150337211f933de2d2a..cc8dc2fae08b694fe6d6c7873a335459fc14f898 100644 (file)
@@ -4,7 +4,6 @@
 <div style="padding:5px;"><a style="width:175px;text-decoration:none;" class="btn btn-success" href="%GCURL%gitblit-${project.releaseVersion}.zip">Download Gitblit GO (Windows)</a></div>\r
 <div style="padding:5px;"><a style="width:175px;text-decoration:none;" class="btn btn-success" href="%GCURL%gitblit-${project.releaseVersion}.tar.gz">Download Gitblit GO (Linux/OSX)</a></div>\r
 <div style="padding:5px;"><a style="width:175px;text-decoration:none;" class="btn btn-danger" href="%GCURL%gitblit-${project.releaseVersion}.war">Download Gitblit WAR</a></div>\r
-<div style="padding:5px;"><a style="width:175px;text-decoration:none;" class="btn btn-info" href="%GCURL%express-${project.releaseVersion}.zip">Download Gitblit Express</a></div>\r
 <div style="padding:5px;"><a style="width:175px;text-decoration:none;" class="btn btn-primary" href="%GCURL%manager-${project.releaseVersion}.zip">Download Gitblit Manager</a></div>\r
                <a href='https://bintray.com/gitblit/releases/gitblit/view?source=watch' alt='Get automatic notifications about new "stable" versions'><img src='https://www.bintray.com/docs/images/bintray_badge_color.png'></a>\r
        </div>\r
@@ -41,9 +40,6 @@ This is what you should download if you want to go from zero to Git in less than
 ### WAR: For Your Servlet Container\r
 *Gitblit WAR* is what you should download if you already have a servlet container available that you wish to use.  Jetty 6/7/8 and Tomcat 6/7 are known to work.  Generally, any Servlet 2.5 or Servlet 3.0 container should work.\r
 \r
-### Express: For the Cloud\r
-*Gitblit Express* is a prepared distribution for [RedHat's OpenShift][rhcloud] cloud service.\r
-\r
 ### You decide how to use Gitblit\r
 \r
 Gitblit can be used as a dumb repository viewer with no administrative controls or user accounts.  \r
@@ -81,4 +77,3 @@ Gitblit requires a Java 7 Runtime Environment (JRE) or a Java 7 Development Kit
 \r
 [jgit]: http://eclipse.org/jgit "Eclipse JGit Site"\r
 [git]: http://git-scm.com "Official Git Site"\r
-[rhcloud]: https://openshift.redhat.com/app "RedHat OpenShift"\r
diff --git a/src/site/upgrade_express.mkd b/src/site/upgrade_express.mkd
deleted file mode 100644 (file)
index 9e1eed9..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-## Upgrading Gitblit Express\r
-\r
-1. Make a  backup copy of */deployments/ROOT.war/WEB-INF/web.xml*\r
-2. Delete your */deployments/ROOT.war* and then copy the new */deployments/ROOT.war* from the archive.\r
-3. Diff your backup copy of web.xml with the pristine one you copied as part of */deployments/ROOT.war* and apply any necessary changes.\r
-\r
-These steps are necessary to ensure that you end up using the specified libraries and resources for the new version.  Otherwise you could end up with a hybrid filesystem that would make it difficult to troubleshoot.  It is important to note that the web.xml file contains both your default settings AND application configuration.  Not updating the web.xml is just a likely to create problems as making a hybrid filesystem.\r
-\r
-### 1.3.1 web.xml\r
-\r
-- Changed *WicketFilter* to *GitblitWicketFilter* to handle optional, smart cache-control updates (issue-274)\r
-\r
-### 1.3.0 web.xml\r
-\r
-- Added LogoServlet\r
-- Added SparkleShareInviteServlet\r
-- Added EnforceAuthenticationFilter\r
-- Moved GitServlet\r
-\r
-### 1.4.0 web.xml\r
-\r
-- Changed baseFolder from a context-parameter to a JNDI env-entry\r
-- Added pt servlet
\ No newline at end of file