Jira使用Docker方式部署

docker-compose配置

atlassian-jira:
    image: kqn0xcn6.mirror.aliyuncs.com/cptactionhank/atlassian-jira:8.0.2
    container_name: jira
    ports:
      - 9001:8080
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "/etc/timezone:/etc/timezone:ro"
      - "/www/docker/atlassian-jira/atlassian-agent.jar:/opt/atlassian/jira/atlassian-agent.jar"
      - "/www/docker/atlassian-jira/conf/server.xml:/opt/atlassian/jira/conf/server.xml"
      - "/www/docker/atlassian-jira/lib/mysql-connector-java-8.0.22.jar:/opt/atlassian/jira/lib/mysql-connector-java-8.0.22.jar"
    environment:
      CATALINA_OPTS: "-javaagent:/opt/atlassian/jira/atlassian-agent.jar

server.xml 内容如下



<Server port="8005" shutdown="SHUTDOWN">
    <Listener className="org.apache.catalina.startup.VersionLoggerListener"/>
    <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>
    <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
    <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>

    <Service name="Catalina">
        
        <Connector port="8080" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"
                   maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
                   maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
                   acceptCount="100" disableUploadTimeout="true" bindOnInit="false"/>

        <Engine name="Catalina" defaultHost="localhost">
            <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
                
                <Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">
                    <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"
                              factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
                    <Manager pathname=""/>
                    <JarScanner scanManifest="false"/>
                    <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="120" />
                Context>

            Host>
            <Valve className="org.apache.catalina.valves.AccessLogValve"
                   pattern="%a %{jira.request.id}r %{jira.request.username}r %t "%m %U%{sanitized.query}r %H" %s %b %D "%{sanitized.referer}r" "%{User-Agent}i" "%{jira.request.assession.id}r""/>
        Engine>
    Service>
Server>

atlassian-agent.jar  可以从如下地址获取:

链接:https://pan.baidu.com/s/1JKgDtoTyXP8hHcooMiJgVQ 密码:0856

启动

docker-compose up -d jira

使用浏览器访问 http://localhost:9001 ,根据步骤配置,进入到需要输入许可证步骤时,使用如下方式破解。

破解

进入 docker 容器: docker-compose exec jira bash

进入 atlassian-agent.jar 目录: cd /opt/atlassian/jira/

使用 java -jar atlassian-agent.jar 查看信息如下:

bash-4.4$ java -jar atlassian-agent.jar 

====================================================
=======        Atlassian Crack Agent         =======
=======           https://zhile.io           =======
=======          QQ Group: 30347511          =======
====================================================

KeyGen usage: java -jar /opt/atlassian/jira/atlassian-agent.jar [-d] [-h] -m
        [-n ] -o  -p  -s 
 -d,--datacenter           Data center license[default: false]
 -h,--help                 Print help message
 -m,--mail            License email
 -n,--name            License name[default: ]
 -o,--organisation    License organisation
 -p,--product         License product, support:
                           [crowd: Crowd]
                           [questions: Questions plugin for Confluence]
                           [crucible: Crucible]
                           [capture: Capture plugin for JIRA]
                           [conf: Confluence]
                           [training: Training plugin for JIRA]
                           [*: Third party plugin key, looks like:
                           com.foo.bar]
                           [bitbucket: Bitbucket]
                           [tc: Team Calendars plugin for Confluence]
                           [bamboo: Bamboo]
                           [fisheye: FishEye]
                           [portfolio: Portfolio plugin for JIRA]
                           [jc: JIRA Core]
                           [jsd: JIRA Service Desk]
                           [jira: JIRA Software(common jira)]
 -s,--serverid        License server ID

================================================================================

# Crack agent usage: append -javaagent arg to system environment: JAVA_OPTS.
# Example(execute this command or append it to setenv.sh/setenv.bat file): 

  export JAVA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${JAVA_OPTS}"

# Then start your confluence/jira server.

获取许可证:

如下,参数说明:

-p: 要破解的产品名称,如上帮助信息中打印的 -p 参数说明 ,这里破解的为 jira
-m: 邮箱号,随便写一个
-n: 名称,随便写
-o: 网站地址
-s: 服务器ID,在浏览器注册页面查看

破解命令:

bash-4.4$ java -jar atlassian-agent.jar -p jira -m [email protected] -n kevin -o https://zhile.io -s BPST-Q7BN-WG5A-9BZ9

====================================================
=======        Atlassian Crack Agent         =======
=======           https://zhile.io           =======
=======          QQ Group: 30347511          =======
====================================================

Your license code(Don't copy this line!!!): 

AAABgA0ODAoPeJx9kl9vgjAUxd/5FCR7LoJ/5jBpMgWysAC6oTPZW8WrdsNCbgvTffqhYKLTmPSlT
c+5v3vufZjDUn8thG529LY16NiDrqk78VRvm21TWyOA2GR5DmgEPAEhYbrPIWJboM44DL13xx8Gm
oPAFM+EyxTQg5CYj8TsaHckLsgEeX5Q0ZlI+ZarCiStBfpir2+UyuWg1frd8BQMnmkh40KBYCIBb
5dz3DfVnmxi9qujfXFkJ0pvyWvrKPBDf+q5WlRsF4Dj1UwCSkqsE9wdrxyzZZEo43AhMlupH4ZgX
Bnd+csSxUugCgu4yPL8ven5o3I7ELc1r2RpccyTrlgqQRvjmgku66erXJxMqMrPq/JJKWPsebczk
mxbY92GPS9/hz5WDBVgQ9Hk5bs08N3Yi0hg9WzLsq3ek2l3Oxfx35p4DFgCVvLRJJ6St/4oIvOX3
pDYo0/71qJdj3BSYLJhEv6v2bkYqh3BHLls2qtA6Q3YJrQj4zeUXPwBk5YISDAsAhR1loAFS4Olz
xWph1Pg27/qY+J6vgIUBlA/pjPdqYsR6wcVpnfVLOoEtaw=X02im

bash-4.4$ 

以上命令执行完后,会输出破解后的 许可证,将其复制到浏览器许可证中即可破解,完成后按步骤安装完成即可。

你可能感兴趣的:(atlassian,jira,docker,java)