git init
This commit is contained in:
9
Dockerfile.confluence
Normal file
9
Dockerfile.confluence
Normal file
@@ -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
|
||||||
|
|
||||||
9
Dockerfile.jira
Normal file
9
Dockerfile.jira
Normal file
@@ -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
|
||||||
|
|
||||||
45
README.md
Normal file
45
README.md
Normal file
@@ -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 <br><br>
|
||||||
|
|
||||||
|
### 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 <br>
|
||||||
|
|
||||||
|
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]
|
||||||
|
```
|
||||||
BIN
atlassian-agent.jar
Normal file
BIN
atlassian-agent.jar
Normal file
Binary file not shown.
108
docker-compose.yml
Normal file
108
docker-compose.yml
Normal file
@@ -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:
|
||||||
Reference in New Issue
Block a user