Giter Club home page Giter Club logo

youtrack-openshift's Introduction

Quick install YouTrack to OpenShift

JetBrains offers a free license for its wonderful issue tracker called YouTrack, the responsive web design of YouTrack is enough to manage tasks from any device. Furthermore, RedHat and its fabulous product OpenShift offers free hosting for almost all main technologies, this solution is enough to manage tasks from anywhere (ok, anywhere with an internet connection). YouTrack is based on Java and OpenShift support Java, perfect solution was found.

How to install

If you don't have OpenShift account yet you can open it here https://openshift.redhat.com/app/account/new

Go to create Tomcat 7 application page https://openshift.redhat.com/app/console/application_type/cart!jbossews-2.0

Select name for your application, for example youtrack. It will be used in URL of your YouTrack instance. If you don't like it you can add your own domain (alias) later.

Click on the change Source Code link and set URL to this Git repository, i.e. https://github.com/stokito/youtrack-openshift.git

Click on Create Application button, and wait till YouTrack will deployed.

You should get to the created application page. At the top of this page should be link to your deployed YouTrack. Open it.

Now you need to wait first YouTrack run. It may take a lot of time and you may get 502 Proxy Timeout Error, but don't afraid and just refresh page once again.

If installation successful you will see basic YouTrack settings page.

If something went wrong just create a issue to this project with error messages.

YouTrack version

This repo contains YouTrack 5.0. If you want to refresh version just fork this repo and replace webapps/ROOT.war with new downloaded YouTrack WAR file. It can be downloaded from JetBrains site http://www.jetbrains.com/youtrack/download/get_youtrack.html (select JavaEE container version).

Please, don't forget to send a pull request.

Repo layout

webapps/ - location for built war

webapps/ROOT.war - YouTrack WAR file

.openshift/ - location for openshift specific files

.openshift/action_hooks/deploy - Deploy script - creates DB directories teamsysdata and teamsysdata-backup

.openshift/action_hooks/pre_start_jbossews-1.0 - Script that gets run prior to starting EWS1.0 (Tomcat 6). Setup environment variables: PermGen size and YouTrack's DB dir path.

.openshift/action_hooks/pre_start_jbossews-2.0 - Script that gets run prior to starting EWS2.0 (Tomcat 7). Setup environment variables: PermGen size and YouTrack's DB dir path.

Some helpful articles

youtrack-openshift's People

Contributors

shekhargulati avatar stokito avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

youtrack-openshift's Issues

deploy script can't be executed correctly

I'm trying to download YouTrack from deploy script, and it's not working. Also it fails with unknown errors on build script.
It looks that hook scripts can't change contents of repo dir, they can only download some dependencies to data dir.
Did yoy test this scripts? Are they working?
If add manually YouTrack war file to webapps all works correctly.
But it may cause license limitations.

Build for the application failed

When I try to create application with this repo as source, I get this error:

The initial build for the application failed: Shell command '/sbin/runuser -s /bin/sh 51fbfa1b5973cad9330000a8 -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c4,c75' /bin/sh -c \"gear postreceive >> /tmp/initial-build.log 2>&1\""' returned an error. rc=255 .Last 10 kB of build output: The jbossews cartridge is already stopped Skipping Maven build due to absence of pom.xml + tmp=/var/lib/openshift/51fbfa1b5973cad9330000a8/jbossews//tmp + '[' -d /var/lib/openshift/51fbfa1b5973cad9330000a8/jbossews//tmp ']' + for d in '$tmp/*' + '[' -d '/var/lib/openshift/51fbfa1b5973cad9330000a8/jbossews//tmp/*' ']' + '[' -d /var/lib/openshift/51fbfa1b5973cad9330000a8/app-root/runtime/repo//webapps ']' + rsync -r --delete /var/lib/openshift/51fbfa1b5973cad9330000a8/app-root/runtime/repo//webapps/ /var/lib/openshift/51fbfa1b5973cad9330000a8/jbossews//webapps/ + mkdir /var/lib/openshift/51fbfa1b5973cad9330000a8/app-root/data//teamsysdata + mkdir /var/lib/openshift/51fbfa1b5973cad9330000a8/app-root/data//teamsysdata-backup + cd /var/lib/openshift/51fbfa1b5973cad9330000a8/app-root/runtime/repo//webapps + rm ROOT.war rm: cannot remove `ROOT.war': No such file or directory + wget http://download.jetbrains.com/charisma/archive/youtrack-4.0.2.war --2013-08-02 14:28:06-- http://download.jetbrains.com/charisma/archive/youtrack-4.0.2.war Resolving download.jetbrains.com... 174.143.250.23 Connecting to download.jetbrains.com|174.143.250.23|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://download-ln.jetbrains.com/charisma/archive/youtrack-4.0.2.war [following] --2013-08-02 14:28:06-- http://download-ln.jetbrains.com/charisma/archive/youtrack-4.0.2.war Resolving download-ln.jetbrains.com... 208.111.161.254, 208.111.160.6, 2607:f4e8:310:12::fffd, ... Connecting to download-ln.jetbrains.com|208.111.161.254|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2013-08-02 14:28:06 ERROR 404: Not Found. + mv youtrack-4.0.2.war ROOT.war mv: cannot stat `youtrack-4.0.2.war': No such file or directory + jar -xvf ROOT.war java.io.FileNotFoundException: ROOT.war (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:138) at java.io.FileInputStream.(FileInputStream.java:97) at sun.tools.jar.Main.run(Main.java:259) at sun.tools.jar.Main.main(Main.java:1177) + sed -ig 's,${user.home}/teamsysdata-backup,${user.home}/app-root/data/teamsysdata-backup,' WEB-INF/web.xml sed: can't read WEB-INF/web.xml: No such file or directory + sed -ig 's,${user.home}/teamsysdata,${user.home}/app-root/data/teamsysdata,' WEB-INF/web.xml sed: can't read WEB-INF/web.xml: No such file or directory + rm ROOT.war rm: cannot remove `ROOT.war': No such file or directory + jar cvf ROOT.war . added manifest adding: .gitkeep(in = 0) (out= 0)(stored 0%) + rm -rf META-INF + rm -rf WEB-INF Timed out waiting for http listening port An error occurred executing 'gear postreceive' (exit code: 1) Error message: Failed to execute: 'control start' for /var/lib/openshift/51fbfa1b5973cad9330000a8/jbossews For more details about the problem, try running the command again with the '--trace' option.

Deployment fails

Hi there,

I forked this repo and first updated the war to youtrack-5.1. On attempt to deploy, I received an error. Naturally, I tried to deploy using your repo directly. I received the same error.

Here's the gist

Have you encountered this before?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.