commit e8a86644177d93334de7141b000d5603837191d9 Author: MaKarin Date: Sun Mar 22 22:39:13 2026 +0300 git init diff --git a/Dockerfile.confluence b/Dockerfile.confluence new file mode 100644 index 0000000..63be5e9 --- /dev/null +++ b/Dockerfile.confluence @@ -0,0 +1,9 @@ +FROM atlassian/confluence:latest +USER root + +# Add agent file +COPY atlassian-agent.jar /opt/atlassian/confluence/atlassian-agent.jar + +# Set Startup Loading Agent Package +RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/confluence/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/confluence/bin/setenv.sh + diff --git a/Dockerfile.jira b/Dockerfile.jira new file mode 100644 index 0000000..9f41612 --- /dev/null +++ b/Dockerfile.jira @@ -0,0 +1,9 @@ +FROM atlassian/jira-software:latest +USER root + +# Add agent file +COPY atlassian-agent.jar /opt/atlassian/jira/atlassian-agent.jar + +# Add agent to env +RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/jira/bin/setenv.sh + diff --git a/README.md b/README.md new file mode 100644 index 0000000..e82890b --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +# Jira-License Confluence-License attlassian-License + +## tested on all attlassian Products + Plugins + everything + +basically you just need the agent file to genereate a license code

+ +### sample Docker file + +``` +FROM atlassian/jira-software:latest +USER root + +# Add agent file +COPY atlassian-agent.jar /opt/atlassian/jira/ + +# Add agent to env +RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/jira/bin/setenv.sh +``` + +same thing works for confluence + +``` +FROM atlassian/confluence +USER root + +# Add agent to env +COPY atlassian-agent.jar /opt/atlassian/confluence/ + +# Set Startup Loading Agent Package +RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/confluence/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/confluence/bin/setenv.sh +``` + +then just build and use
+ +you can use the same file to generate license code like below for any product or plugin you want + +``` +java -jar atlassian-agent.jar --help + +# products +java -jar atlassian-agent.jar -d -m [Email] -n BAT -p [conf or jira] -o http://[serverip-or-domain] -s [serverId] + +# plugins +java -jar atlassian-agent.jar -d -m [Email] -n BAT -p [plugin code] -o http://[serverip-or-domain] -s [serverId] +``` diff --git a/atlassian-agent.jar b/atlassian-agent.jar new file mode 100644 index 0000000..0f90eec Binary files /dev/null and b/atlassian-agent.jar differ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3ad7ac7 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,108 @@ +version: "3.8" + +services: + postgres-jira: + image: postgres:14-alpine + container_name: postgres-jira + restart: unless-stopped + volumes: + - postgres-jira-data:/var/lib/postgresql/data + environment: + - POSTGRES_USER=jiradb + - POSTGRES_PASSWORD=jiradbpass + - POSTGRES_DB=jiradb + healthcheck: + test: ["CMD-SHELL", "pg_isready -U jiradb -d jiradb"] + interval: 10s + timeout: 5s + retries: 5 + networks: + - atlassian + + postgres-confluence: + image: postgres:14-alpine + container_name: postgres-confluence + restart: unless-stopped + volumes: + - postgres-confluence-data:/var/lib/postgresql/data + environment: + - POSTGRES_USER=confluencedb + - POSTGRES_PASSWORD=confluencepass + - POSTGRES_DB=confluencedb + healthcheck: + test: ["CMD-SHELL", "pg_isready -U confluencedb -d confluencedb"] + interval: 10s + timeout: 5s + retries: 5 + networks: + - atlassian + + jira: + restart: unless-stopped + container_name: jira + build: + context: . + dockerfile: Dockerfile.jira + expose: + - "8080" + environment: + - ATL_JDBC_URL=jdbc:postgresql://postgres-jira:5432/jiradb + - ATL_JDBC_USER=jiradb + - ATL_JDBC_PASSWORD=jiradbpass + - ATL_DB_TYPE=postgresql + - JVM_MINIMUM_MEMORY=1024m + - JVM_MAXIMUM_MEMORY=2048m + - ATL_PROXY_NAME=jira.greact.ru + - ATL_PROXY_PORT=443 + - ATL_TOMCAT_SCHEME=https + - ATL_TOMCAT_SECURE=true + depends_on: + postgres-jira: + condition: service_healthy + volumes: + - jira-home:/var/atlassian/application-data/jira + networks: + - proxy + - atlassian + + confluence: + restart: unless-stopped + container_name: confluence + build: + context: . + dockerfile: Dockerfile.confluence + expose: + - "8090" + - "8091" + environment: + - ATL_JDBC_URL=jdbc:postgresql://postgres-confluence:5432/confluencedb + - ATL_JDBC_USER=confluencedb + - ATL_JDBC_PASSWORD=confluencepass + - ATL_DB_TYPE=postgresql + - JVM_MINIMUM_MEMORY=1024m + - JVM_MAXIMUM_MEMORY=3072m + - ATL_PROXY_NAME=confluence.greact.ru + - ATL_PROXY_PORT=443 + - ATL_TOMCAT_SCHEME=https + - ATL_TOMCAT_SECURE=true + depends_on: + postgres-confluence: + condition: service_healthy + volumes: + - confluence-home:/var/atlassian/application-data/confluence + networks: + - proxy + - atlassian + +networks: + proxy: + external: true + name: proxy + atlassian: + driver: bridge + +volumes: + postgres-jira-data: + postgres-confluence-data: + jira-home: + confluence-home: