From 575c6e0c3bcd2946fd7fb8d98a5f50edf9859e7d Mon Sep 17 00:00:00 2001 From: Pogsquog Date: Sat, 23 Jan 2016 20:18:42 +0000 Subject: [PATCH 1/6] More ram for JVM and correct port Upped JVM ram to 1Gb from 256Mb, as youtrack was complaining that it didn't have enough. Also altered port to 8000, as the rest of the docker container was using this, rather than port 80. --- youtrack/etc/service/youtrack/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtrack/etc/service/youtrack/run b/youtrack/etc/service/youtrack/run index 1d20692..b1fc67d 100755 --- a/youtrack/etc/service/youtrack/run +++ b/youtrack/etc/service/youtrack/run @@ -1,3 +1,3 @@ #!/bin/sh cd /home/youtrack -java -Duser.home=/youtrack-data -XX:MaxPermSize=150m -Xmx256m -jar /youtrack.jar 80 +java -Duser.home=/youtrack-data -XX:MaxPermSize=150m -Xmx1g -jar /youtrack.jar 8000 From 3ebf70423dfc5073d8b6593ff4e22a9ddc31ffa4 Mon Sep 17 00:00:00 2001 From: Stuart Holliday Date: Sat, 23 Jan 2016 20:23:11 +0000 Subject: [PATCH 2/6] added installation script --- deploy.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..a4123da --- /dev/null +++ b/deploy.sh @@ -0,0 +1,5 @@ +docker build -t youtrack-data data +docker build -t youtrack youtrack +docker run --name youtrack-data-container youtrack-data true +docker run --volumes-from youtrack-data-container -p 127.0.0.1:8080:8000 --rm youtrack + From a87b2947ce995bfda147dfa688c68afcf0de82c2 Mon Sep 17 00:00:00 2001 From: Stuart Holliday Date: Sat, 23 Jan 2016 20:28:59 +0000 Subject: [PATCH 3/6] updated shebang in deploy.sh --- deploy.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy.sh b/deploy.sh index a4123da..f192b12 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,3 +1,4 @@ +#!/bin/sh docker build -t youtrack-data data docker build -t youtrack youtrack docker run --name youtrack-data-container youtrack-data true From 18de21a84baf31a9aa0d155445bc89aa21ba1d46 Mon Sep 17 00:00:00 2001 From: Pogsquog Date: Sat, 23 Jan 2016 20:31:50 +0000 Subject: [PATCH 4/6] Altered text to mention use of deploy.sh --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8664327..c5a70b1 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,8 @@ You also need some RAM for youtrack, but I can't really tell how much. Maybe abo 3. Create images + run deploy.sh or if you prefer run the commands manually: + `docker build -t youtrack-data data` `docker build -t youtrack youtrack` From 8cf5f89df2f8f1ab3c12956ddd2dcbcee15908ef Mon Sep 17 00:00:00 2001 From: Pogsquog Date: Sat, 23 Jan 2016 20:32:59 +0000 Subject: [PATCH 5/6] tidied text --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index c5a70b1..491ccd0 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,7 @@ You also need some RAM for youtrack, but I can't really tell how much. Maybe abo `git clone git://github.com/voidus/youtrack-docker && cd youtrack-docker` -3. Create images - - run deploy.sh or if you prefer run the commands manually: +3. Create images by running deploy.sh or alternatively use these commands `docker build -t youtrack-data data` From a7285190983316c73a244720c63c844418dd3a3f Mon Sep 17 00:00:00 2001 From: Pogsquog Date: Sat, 23 Jan 2016 20:39:56 +0000 Subject: [PATCH 6/6] Added comments to deploy.sh --- deploy.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index f192b12..c38da53 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,6 +1,10 @@ #!/bin/sh +# build the docker images docker build -t youtrack-data data docker build -t youtrack youtrack + +#run the data container, which will store youtrack's data docker run --name youtrack-data-container youtrack-data true -docker run --volumes-from youtrack-data-container -p 127.0.0.1:8080:8000 --rm youtrack +#Launch youtrack, in foreground. Use ctrl-c to close. Run with -d to launch in background. +docker run --volumes-from youtrack-data-container -p 127.0.0.1:8080:8000 --rm youtrack