Showing posts with label JIRA. Show all posts
Showing posts with label JIRA. Show all posts

Monday, October 15, 2018

Installing JIRA

https://www.atlassian.com/software/jira/download
Linux 64 bit

cd Downloads
sudo ./atlassian-jira-software-7.12.3-x64.bin
Unpacking JRE ...
Starting Installer ...

This will install JIRA Software 7.12.3 on your computer.
OK [o, Enter], Cancel [c]

Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing JIRA installation [3]
1
Details on where JIRA Software will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/jira 
Home Directory: /var/atlassian/application-data/jira 
HTTP Port: 8080 
RMI Port: 8005 
Install as service: Yes 
Install [i, Enter], Exit [e]
i

Extracting files ...
                                                                           

Please wait a few moments while JIRA Software is configured.
Installation of JIRA Software 7.12.3 is complete
Start JIRA Software 7.12.3 now?
Yes [y, Enter], No [n]
y

Please wait a few moments while JIRA Software starts up.
Launching JIRA Software ...
Installation of JIRA Software 7.12.3 is complete
Your installation of JIRA Software 7.12.3 is now ready and can be accessed
via your browser.
JIRA Software 7.12.3 can be accessed at http://localhost:8080
Finishing installation ...


http://localhost:8080

generating the evaluation license key is very simple (you should create an account with Atlassian)

the product is installed for user "jira":
sudo su - jira

logs are in /opt/atlassian/jira/logs/


To troubleshoot webhooks, you should enable DEBUG loggin as default in http://localhost:8080/secure/admin/ViewLogging.jspa
then you see the webhook body being traced in /opt/atlassian/jira/logs/catalina.out

Start and stop:
sudo /etc/init.d/jira start
sudo /etc/init.d/jira stop





More JIRA on Docker

See also https://www.javamonamour.org/2017/11/jira-on-docker-and-integration-with.html


docker run -d -p 8080:8080 cptactionhank/atlassian-jira:7.7.0


I need to install netstat, but I have no root access (root pw is not given), so I do:

docker exec -ti --user root elastic_agnesi /bin/sh

and I get this strange error:

OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "chdir to cwd (\"/var/atlassian/jira\") set in config.json failed: permission denied": unknown


woorkaround:

docker exec -ti elastic_agnesi /bin/sh
chmod 777 .
chmod 777 ..
exit

and try again connecting as root.... I have no idea why, but this time it works....

Then as root do

apt install net-tools

Then I discover that only tcp (not tcp6) ports are available, because the image doesn't support IPv6 : "cat /proc/net/if_inet6" returns nothing.

Now I start my webhook intercepting application with IPv4

java -Djava.net.preferIPv4Stack=true -jar bla.jar

before:

[centos@localhost ~]$ netstat -an | grep 8090
tcp6 0 0 :::8090 :::* LISTEN

after:

[centos@localhost ~]$ netstat -an | grep 8090
tcp 0 0 0.0.0.0:8090 0.0.0.0:* LISTEN

but still curl -X POST http://localhost:8090/greeting is not working... I am giving up and will install JIRA directly on host....







Monday, April 16, 2018

Jenkins Blueocean and integration with JIRA

docker run -u root -d --rm -p 8090:8080 --name jenkins-blueocean -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean

http://localhost:8080 and finish configuring admin user and install all recommended plugins

docker ps (note the containerid)
docker commit $containerid myjenkinsblueocean

sudo docker run --detach --publish 8080:8080 cptactionhank/atlassian-jira:latest
(for some reason, jira in docker needs 8080:8080... I tried 8090:8080 and it tries internally to connect to 8080 which fails)



See also http://www.javamonamour.org/2017/11/jira-on-docker-and-integration-with.html



Thursday, November 23, 2017

Jira on Docker, and integration with BitBucket/Github

https://hub.docker.com/r/cptactionhank/atlassian-jira/


sudo docker run --detach --publish 8080:8080 cptactionhank/atlassian-jira:latest

http://localhost:8080

https://www.atlassian.com/blog/jira-software/connecting-jira-6-2-github but I can't find the DVCS Connector...

https://marketplace.atlassian.com/plugins/com.osowskit.jira.github.app/cloud/overview


and you can also find one here http://localhost:8080/plugins/servlet/upm/marketplace/search?q=github "git integration for Jira" by BigBrassBand

interesting also the Jigit project, by Dmitri Apanasevich

It seems that integration with Stash is more supported.... how to run Stash locally... https://hub.docker.com/r/atlassian/bitbucket-server/

sudo docker volume create --name bitbucketVolume
sudo docker run -v bitbucketVolume:/var/atlassian/application-data/bitbucket --name="bitbucket" -d -p 7990:7990 -p 7999:7999 atlassian/bitbucket-server

sudo docker exec -ti bitbucket /bin/bash


http://localhost:7990/


To integrate Bitbucket with Jira, in Bitbucket there is a link "Administration/Application Integration".... it pays to use same username/pw for administrator role on both products.



Saturday, August 18, 2012

Installing JIRA on Linux

Download here http://www.atlassian.com/software/jira/download the 30 days evaluation version

chosen the 64 bit for Linux

Here the installation manual for Linux

Once I download and copy it, I do
chmod a+x atlassian-jira-X.Y.bin


Since it's not recommended to use HSQLDB internal DB, I configure it to use Oracle DB - this option will appear during the first access to the console. The Schema provided must be empty, otherwise JIRA will refuse to proceed.

https://confluence.atlassian.com/display/JIRA/Connecting+JIRA+to+Oracle#ConnectingJIRAtoOracle-manually



On the whole, it's a very easy and straightforward setup. You don't need root access.