dcdx 1.2.0-next.2 → 1.2.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{program as t,Option as e}from"commander";import{gracefulExit as s}from"exit-hook";import{DOMParser as o,XMLSerializer as a}from"@xmldom/xmldom";import{spawn as i}from"child_process";import{XMLParser as n}from"fast-xml-parser";import{existsSync as r,readFileSync as c,mkdirSync as l}from"fs";import{cwd as p}from"process";import d from"xpath";import{hideBin as m}from"yargs/helpers";import h from"yargs/yargs";import{dirname as u,join as g}from"path";import w from"axios";import{stop as A,downAll as f,ps as S,execCompose as b,upAll as v}from"docker-compose/dist/v2.js";import y from"events";import{dump as E}from"js-yaml";import{homedir as C}from"os";import P from"simple-git";import{upAll as D}from"docker-compose";import{Sequelize as x,ConnectionError as k,TimeoutError as T,ConnectionTimedOutError as R,ConnectionRefusedError as M,ConnectionAcquireTimeoutError as O}from"sequelize";var L;!function(t){t.JIRA="jira",t.CONFLUENCE="confluence",t.BITBUCKET="bitbucket",t.BAMBOO="bamboo"}(L||(L={}));const{P:q,activeProfiles:$}=h(m(process.argv)).parseSync(),I=q||$||void 0;class AMPS{static maven;static stop(){AMPS.maven&&AMPS.maven.kill(0)}static async build(t){return new Promise(((e,s)=>{if(AMPS.maven){AMPS.maven.kill(0)||s(new Error("Failed to terminate existing Maven process"))}AMPS.maven=i("mvn",["package",...t],{cwd:p(),stdio:"inherit"}),AMPS.maven.on("exit",(t=>{AMPS.maven=null,0===t||130===t?e():s(new Error(`Maven exited with code ${t}`))}))}))}static isAtlassianPlugin=()=>{try{return AMPS.getNodes("//*[local-name()='packaging']").some((t=>"atlassian-plugin"===t.textContent))}catch(t){return!1}};static getApplicationVersion(){const t=I?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${I}']/..//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']`,!0):AMPS.getNodes("//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']",!0);if(t){const e=t.parentNode;if(e){const{plugin:t}=AMPS.toObject(e),s=t?.configuration?.productVersion;return s?this.doPropertyReplacement(s):void 0}}}static getApplication(){const t=AMPS.getApplications();if(1===t.length)return t[0];if(I){const t=AMPS.getApplications(I);if(1===t.length)return t[0]}return null}static getApplications(t){const e=new Set;return(t?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${t}']/..//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']`):AMPS.getNodes("//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']")).forEach((t=>{const s=t.parentNode;if(s){const{plugin:t}=AMPS.toObject(s);t?.artifactId?.includes(L.JIRA)?e.add(L.JIRA):t?.artifactId?.includes(L.CONFLUENCE)?e.add(L.CONFLUENCE):t?.artifactId?.includes(L.BAMBOO)?e.add(L.BAMBOO):t?.artifactId?.includes(L.BITBUCKET)&&e.add(L.BITBUCKET)}})),Array.from(e)}static doPropertyReplacement(t){let e=t;const s=I?AMPS.getProperties(I):{};Object.entries(s).forEach((([t,s])=>{e=e.replaceAll(`\${${t}}`,s)}));const o=AMPS.getProperties();return Object.entries(o).forEach((([t,s])=>{e=e.replaceAll(`\${${t}}`,s)})),e}static getProperties(t){const e={};return(t?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${t}']/..//*[local-name()='properties']`):AMPS.getNodes("//*[local-name()='properties']")).forEach((t=>{const{properties:s}=AMPS.toObject(t);Object.entries(s).forEach((([t,s])=>e[t]=s))})),e}static getNodes(t,e){if(r("./pom.xml")){const s=c("./pom.xml","utf8"),a=(new o).parseFromString(s,"text/xml"),i=e?d.select(t,a,!0):d.select(t,a,!1);return Array.isArray(i)||e?i:[]}return[]}static toObject(t){try{return(new n).parse((new a).serializeToString(t))}catch(t){return null}}}const U="AAACzg0ODAoPeNp9VO9v2jAQ/Z6/wtK+IYWGsEKHFGmQmJau/GgIm9iYJhMOYprYke1A4a+fSchGKtqPPvvevXv3zp/6gqLHLEb2HbKsTvNzp9lC98MA2ZbdNKYgdiAGntPDQ2z688HcdH/aM7P5o2kZTzQEJiE4pDAiCTgBngaD0b0RCr5f1S9uHfcUWXSQBzuIeQrCCDlb10mo6A4cJTLQSVlIlzFUggpI8ickMbAVEbI+ypIliPG6R5Il5z4kXEF3A0xJp1Gywa8pFQePKHAmDdt6+A9cJVQEK5yWmhMV8HGZLRWkwrF8PZMgpGPfGh7IUNBUUc6cAKRCcVEYrblAaZxtKEOrsqj8V/US85zxXd+fUGwD70ickRwyf7ARACziqUYo+8Irmt/jUYD9iT+YYmNIKFPACAuvyHIaQEUSHYgz0G8rorgC8rp5qvaEZVp3pt0u8sve3TiTCsSIr0A6llGr1VwfdwPsmb25PjjbVwq2EcZcm6nS6DKX+I3iT1yP/Cy42TBe4FAK0WhZVtu6azYbZeZlB0U2wrpnkQoqq40Uyst67RqB9zU8k64olYeqKnGmNCzWiseOUoKwhLLoK1ExkZISVg95cr3ZN/YqdueSYW649/mdrfJAZOQM3b3b96DRuhVk3261kkFvexwe41UQtJN12u5Gz6GcPT7Pn71H70t69CPcbx/a9rcj3rDuwlk4xprKCA5VN+oJjsaB2R/75sQfezM3GIxH5myKT6PN/QErtDwgFQE6E9VDCLUZtN8F30Ko0K9IqXTRubnZ8HpFlZtzAyYUGb/ryOOIcYVWVCpBl5kCjUwlUhyF2mY80WaoXxdzEhOWe2YsNoRRWWxMt6xX/hH6P5uxF8b3rLJIlz1LpQW95pQPvqfLq0kmwohIeLs2l9PMzfQ48LvvWTbfMY1AXDg9KJDLCV2C9HUMH+CaJfOfudi/v0kIGVswLAIUEMQ9X77gqGBdfH0HIzBaV8NadPUCFBn+RiUA4D+IqVQpTTouLVY66aCGX02121",toAbsolutePath=t=>{const[,e]=process.argv,s=u(e),o=s.substring(0,s.indexOf("dcdx")+4);return g(o,t.replaceAll("../",""))},_={name:"shared",driver:"bridge"};let N=class Base extends y{options;sequelize=null;constructor(t){super(),this.options=t}async run(t,e){try{if(!this.sequelize)throw new Error("Database connection does not exist");await this.sequelize.query(t,{logging:e})}catch(e){console.error("An error occurred while trying to run the following SQL query:",t,e),s()}return null}async start(t=this.options.clean){console.log(`Starting instance of ${this.name} ⏳`),t&&await this.down(),await this.up(),this.emit(`${this.name}:up`);if(await this.waitUntilReady()){if(console.log(`Database is ready and accepting connections on localhost:${this.options.port} 🗄️`),await this.onDatabaseReady(),this.emit("db:ready"),this.options.logging){const t=await this.getServiceState();t&&await this.showDockerLogs(t.name)}}else console.log(`Failed to start database ${this.name} ⛔`),s(0)}async stop(t=this.options.prune){if(t)await this.down();else{const t=E(this.getDockerComposeConfig());await A({cwd:p(),configAsString:t,log:!0})}this.emit("db:stopped")}async onDatabaseReady(){}getDockerComposeConfig(){return{version:"3.8",services:{db:this.getService()},networks:{shared:_}}}async up(){const t=E(this.getDockerComposeConfig());return D({cwd:p(),configAsString:t,log:!0})}async down(){const t=E(this.getDockerComposeConfig());return f({cwd:p(),configAsString:t,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async waitUntilReady(){try{const t="mssql"===this.name?"master":this.options.database;return this.sequelize=new x(t,this.options.username,this.options.password,{host:"localhost",port:this.options.port,dialect:this.name.replace("postgresql","postgres"),retry:{max:30,match:[k,T,R,M,O],backoffBase:1e3,backoffExponent:1},logging:!1}),this.sequelize.authenticate().then((()=>!0)).catch((t=>(console.log(t),!1)))}catch(t){return!1}}async getServiceState(){const t=E(this.getDockerComposeConfig());return(await S({configAsString:t,log:!1,commandOptions:["--all"]})).data.services.find((t=>t.name.includes(this.name)))}async showDockerLogs(t){return new Promise(((e,s)=>{i("docker",["logs","-f","-n","5000",t],{cwd:p(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}};const B={port:1433,database:"dcdx",username:"sa",password:"DataCenterDX!",edition:"Developer",version:"2022"};class MSSQL extends N{name="mssql";driver="com.microsoft.sqlserver.jdbc.SQLServerDriver";options=B;version="2022";get url(){return`jdbc:sqlserver://db:${this.options.port};databaseName=${this.options.database};trustServerCertificate=true`}constructor(t=B){super({...B,...t})}async onDatabaseReady(){await this.run(`CREATE DATABASE ${this.options.database}`),await this.run(`ALTER DATABASE ${this.options.database} COLLATE SQL_Latin1_General_CP1_CS_AS`),await this.run(`ALTER DATABASE ${this.options.database} SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE;`)}getService=()=>({image:`mcr.microsoft.com/mssql/server:${this.version}-latest`,ports:[`${this.options.port||1433}:1433`],environment:{ACCEPT_EULA:"y",MSSQL_SA_PASSWORD:this.options.password||"dcdx",MSSQL_PID:this.options.edition},networks:{shared:{aliases:["db","database"]}}})}const j={port:3306,database:"dcdx",username:"dcdx",password:"dcdx",version:"8.0"};class MySQL extends N{name="mysql";driver="com.mysql.jdbc.Driver";options=j;version="8.0";get url(){return`jdbc:mysql://db:${this.options.port}/${this.options.database}?sessionVariables=transaction_isolation='READ-COMMITTED'`}constructor(t=j){super({...j,...t})}async onDatabaseReady(){await this.run(`ALTER DATABASE ${this.options.database} CHARACTER SET 'utf8mb4' COLLATE utf8mb4_bin`)}getService=()=>({image:`mysql:${this.version}`,ports:[`${this.options.port||3306}:3306`],environment:{MYSQL_ROOT_PASSWORD:this.options.password||"dcdx",MYSQL_USER:this.options.username||"dcdx",MYSQL_PASSWORD:this.options.password||"dcdx",MYSQL_DATABASE:this.options.database||"dcdx"},command:["--log_bin_trust_function_creators=1"],networks:{shared:{aliases:["db","database"]}}})}const Q={version:"15",database:"dcdx",port:5432,username:"dcdx",password:"dcdx"};class Postgres extends N{name="postgresql";driver="org.postgresql.Driver";options=Q;version="15";get url(){return`jdbc:postgresql://db:${this.options.port}/${this.options.database}`}constructor(t=Q){super({...Q,...t})}getService=()=>({image:`postgres:${this.version}`,ports:[`${this.options.port||5432}:5432`],environment:{POSTGRES_USER:this.options.username||"dcdx",POSTGRES_PASSWORD:this.options.password||"dcdx",POSTGRES_DB:this.options.database||"dcdx",POSTGRES_HOST_AUTH_METHOD:"md5",POSTGRES_INITDB_ARGS:"--encoding=UTF-8 --lc-collate=C --lc-ctype=C"},networks:{shared:{aliases:["db","database"]}}})}const V=g(C(),".dcdx");class Base extends y{options;constructor(t){super(),this.options=t}get baseUrl(){let t="http://localhost";return this.options.port&&(t+=`:${this.options.port}`),this.options.contextPath?`${t}/${this.options.contextPath}`:t}getDatabaseEngine(t){switch(t){case"postgresql":return new Postgres;case"mssql":return new MSSQL;case"mysql":return new MySQL}}async start(){this.options.clean&&await this.down(),await this.build(this.options.version),await this.database.start(this.options.clean),await this.up()}async stop(){if(await this.database.stop(this.options.prune),this.options.prune)await this.down();else{const t=E(this.getDockerComposeConfig());await A({cwd:p(),configAsString:t,log:!0})}this.emit(`${this.name}:stopped`)}async reset(){await this.database.stop(!0),await this.down()}async cp(t){const e=await this.getServiceState();if(e&&e.state.toLowerCase().startsWith("up")){const e=this.getDockerComposeConfig(),s=E(e);await b("cp",[t,`${this.name}:/opt/quickreload/`],{cwd:p(),configAsString:s,log:!1})}}async isApplicationReady(){try{const t=await w.get(`${this.baseUrl}/status`,{validateStatus:()=>!0}).catch((()=>null));if(t&&200===t.status){const{data:e}=t;if("FIRST_RUN"===e.state)return console.log(`The application ${this.name} is ready on ${this.baseUrl} 🎉`),!0}return!1}catch(t){return!1}}getDockerComposeConfig(){return{version:"3.8",services:{[this.name]:this.getService()},networks:{shared:_}}}async up(){const t=this.getDockerComposeConfig(),e=E(t);await v({cwd:p(),configAsString:e,log:!0}),this.emit(`${this.name}:up`);await this.waitUntilReady()?(this.emit(`${this.name}:ready`),await this.tailApplicationLogs()):console.log(`Failed to start ${this.name} ⛔`),s(0)}async down(){const t=E(this.getDockerComposeConfig());await f({cwd:p(),configAsString:t,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async getServiceState(){const t=E(this.getDockerComposeConfig());return(await S({configAsString:t,log:!1,commandOptions:["--all"]})).data.services.find((t=>t.name.includes(this.name)))}async waitUntilReady(t=0){console.log(`Waiting for ${this.name} to become available... ${t}s`);const e=await this.getServiceState();return!!(e&&e.state.toLowerCase().startsWith("up")&&await this.isApplicationReady())||(t>=300?(console.error(`A timeout occurred while waiting for ${this.name} to become available ⛔`),e&&await this.showDockerLogs(e.name),!1):(await new Promise((t=>setTimeout(t,1e3))),this.waitUntilReady(t+1)))}getDockerRepositoryUrl(){return`https://bitbucket.org/atlassian-docker/docker-${"jira"===this.name?"atlassian-jira":"bamboo"===this.name?`${this.name}-server`:`atlassian-${this.name}-server`}.git`}async build(t){const e=this.getDockerRepositoryUrl(),s=g(V,this.name,"source");r(s)?await P({baseDir:s}).pull({"--recurse-submodule":null}):(l(g(V,this.name),{recursive:!0}),await P().clone(e,s,{"--recurse-submodule":null})),await new Promise(((e,o)=>{i("docker",["build","-t",`dcdx/${this.name}:${t}`,"--build-arg",`${this.name.toUpperCase()}_VERSION=${t}`,"."],{cwd:s,stdio:"inherit"}).on("exit",(t=>0===t?e():o(new Error(`Docker exited with code ${t}`))))}))}async tailApplicationLogs(){const t=await this.getServiceState();t&&t.state.toLowerCase().startsWith("up")&&await this.showApplicationLogs(t.name).catch((()=>null))}async showDockerLogs(t){return new Promise(((e,s)=>{i("docker",["logs","-f","-n","5000",t],{cwd:p(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}async showApplicationLogs(t){return new Promise(((e,s)=>{i("docker",["exec","-i",t,"tail","-F","-n","5000",this.logFilePath],{cwd:p(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}}class Confluence extends Base{name=L.CONFLUENCE;database;logFilePath="/var/atlassian/application-data/confluence/logs/atlassian-confluence.log";constructor(t){super(t),this.database=this.getDatabaseEngine(t.database)}getService(){const t=this.getVolumes(),e=this.getEnvironmentVariables();return{build:{context:toAbsolutePath("../../assets"),dockerfile_inline:`\nFROM dcdx/${this.name}:${this.options.version}\nCOPY ./mysql-connector-j-8.3.0.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/mysql-connector-j-8.3.0.jar\nCOPY ./quickreload-5.0.2.jar /opt/atlassian/confluence/confluence/WEB-INF/atlassian-bundled-plugins/quickreload-5.0.2.jar\nRUN echo "/opt/quickreload" > /var/atlassian/application-data/confluence/quickreload.properties; mkdir -p /opt/quickreload; chown -R confluence:confluence /opt/quickreload;\n\nRUN chown -R confluence:confluence /opt/atlassian/confluence`},ports:[`${this.options.port||80}:8090`,...this.options.debug?["5005:5005"]:[]],environment:Object.keys(e).length>0?e:void 0,volumes:t.length>0?t:void 0,networks:["shared"]}}getEnvironmentVariables(){return{...this.options.contextPath?{ATL_TOMCAT_CONTEXTPATH:this.options.contextPath}:"",...this.options.debug?{JVM_SUPPORT_RECOMMENDED_ARGS:this.getJVMArgs()}:"",ATL_LICENSE_KEY:this.options.license||U,ATL_JDBC_URL:this.database.url,ATL_JDBC_USER:this.database.options.username,ATL_JDBC_PASSWORD:this.database.options.password,ATL_DB_TYPE:`${this.database.name}`}}getJVMArgs(){const t=[];return this.options.debug&&(t.push("-Dupm.plugin.upload.enabled=true"),t.push("-Xdebug"),t.push("-Xrunjdwp:transport=dt_socket,address=*:5005,server=y,suspend=n"),t.push("-Dcom.sun.management.jmxremote.port=9999"),t.push("-Dcom.sun.management.jmxremote.rmi.port=9998"),t.push("-Dcom.sun.management.jmxremote.authenticate=false"),t.push("-Dcom.sun.management.jmxremote.ssl=false")),this.options.quickReload&&t.push("-Dquickreload.dirs=/opt/quickreload"),t.join(" ")}getVolumes(){return[...this.options.quickReload?[`${this.options.quickReload}:/opt/quickreload`]:""]}}const F=AMPS.getApplicationVersion()||"8.9.0";(async()=>{const s=t.showHelpAfterError(!0).addOption(new e("-v, --version <version>","The version of the host application").choices(["8.9.0"]).default(F)).addOption(new e("-d, --database <name>","The database engine to remove data from").choices(["postgresql","mysql","mssql"]).default("postgresql")).parse(process.argv).opts(),o=new Confluence({version:s.version,database:s.database});await o.reset()})(),process.on("SIGINT",(()=>{console.log("Received term signal, trying to stop gracefully 💪"),s()}));
2
+ import{program as u,Option as t}from"commander";import{gracefulExit as d}from"exit-hook";import{DOMParser as n,XMLSerializer as o}from"@xmldom/xmldom";import{spawn as e}from"child_process";import{XMLParser as p}from"fast-xml-parser";import{existsSync as k,readFileSync as j,mkdirSync as a}from"fs";import{cwd as b}from"process";import i from"xpath";import{hideBin as s}from"yargs/helpers";import r from"yargs/yargs";import{dirname as m,join as l}from"path";import c from"axios";import{stop as h,downAll as g,ps as w,execCompose as A,upAll as f}from"docker-compose/dist/v2.js";import S from"events";import{dump as v}from"js-yaml";import{homedir as y}from"os";import E from"simple-git";import{upAll as C}from"docker-compose";import{Sequelize as P,ConnectionError as D,TimeoutError as x,ConnectionTimedOutError as T,ConnectionRefusedError as R,ConnectionAcquireTimeoutError as M}from"sequelize";var O,L=["8.7-ubuntu-jdk17","8.7-jdk17","8.7.2-ubuntu-jdk17","8.6.0-jdk17","8.7.2","8.6.0-ubuntu-jdk17","8.7.2-jdk17","8.6.0","8.7","8.5.5-ubuntu-jdk17","8.5.5-jdk17","8.8.0-ubuntu-jdk17","8.8.0-jdk17","8.5.5","8.7-jdk11","8.7-ubuntu-jdk11","8.8.0","8.7.2-ubuntu-jdk11","8.7.2-jdk11","8.1-jdk11","8.1-ubuntu-jdk11","8.1.4-ubuntu-jdk11","8.1.4-jdk11","8.1","8.1.4","7.19-ubuntu-jdk11","7.19-jdk11","7.19.21-ubuntu-jdk11","7.19.21","7.19.21-jdk11","8.8-ubuntu-jdk17","8.8.1-ubi9","8.8.1-ubi9-jdk17","8.8.0-ubuntu-jdk11","8.8.1-jdk17","8.8.0-jdk11","8.6.1","8.6.1-jdk17","8.6.1-ubuntu-jdk17","8.5.6-ubuntu-jdk17","8.5.6-jdk17","8.5.6","8.5.5-ubuntu-jdk11","8.5.1-ubuntu-jdk17","8.5.5-jdk11","8.5.1-jdk17","8.5.1","8.4.4-jdk17","8.4.4-ubuntu-jdk17","8.4.4","8.0.3-jdk11","8.0.3","8.0.3-ubuntu-jdk11","7.20.2-jdk11","7.20.2-ubuntu-jdk11","7.20.2","8.8-jdk17","8.8.1-ubuntu-jdk17","8.8.1","8.8","8.6.0-ubuntu-jdk11","8.0-jdk11","8.0.4-ubuntu-jdk11","8.3.3-ubuntu-jdk17","8.6.0-jdk11","8.0.4-jdk11","8.3.3","8.0","8.3.3-jdk17","7.19.7-ubuntu-jdk11","7.19.7-jdk11","8.8-ubuntu-jdk11","8.8-jdk11","8.8.1-ubuntu-jdk11","7.19.7","7.19.17-ubuntu-jdk11","8.8.1-jdk11","7.19.17-jdk11","7.19.17","8.7.2-ubi9-jdk17","8.6-ubuntu-jdk17","8.7.2-ubi9","8.6-jdk17","8.6.2-ubuntu-jdk17","8.6.2-ubi9-jdk17","8.6.2-ubi9","8.6","8.6.2-jdk17","8.6.2","8.5.7-ubuntu-jdk17","8.5.7","8.5.7-jdk17","8.5.6-ubuntu-jdk11","8.5.6-jdk11","8.5.2-ubuntu-jdk17","8.5.2-jdk17","8.4.5-ubuntu-jdk17","8.4-jdk17","8.5.2","8.4-ubuntu-jdk17","latest","8.4.5-jdk17","8.4.5","8.4.1-ubuntu-jdk17","8.4","8.4.1-jdk17","8.4.1","8.2.0-jdk11","8.2.0-ubuntu-jdk11","8.3.0","8.3.0-ubuntu-jdk17","8.3.0-jdk17","8.0.4","8.0-ubuntu-jdk11","7-jdk11","7-ubuntu-jdk11","7.20-ubuntu-jdk11","7.20-jdk11","7.20.3-jdk11","7.20.3-ubuntu-jdk11","7.20.3","7.20","8.6.1-ubuntu-jdk11","7","8.6.1-jdk11","8.5.1-jdk11","8.5.1-ubuntu-jdk11","8.4.4-ubuntu-jdk11","8.3-ubuntu-jdk17","8.4.4-jdk11","8.3-jdk17","8.3.4-ubuntu-jdk17","8.3.4","8.3.4-jdk17","8.3.3-ubuntu-jdk11","8.3.3-jdk11","8.3","7.19.3-ubuntu-jdk11","7.19.18-jdk11","7.19.3-jdk11","7.19.18-ubuntu-jdk11","7.19.3","7.19.18","7.19.12-ubuntu-jdk11","7.19.12-jdk11","7.19.12","ubuntu-jdk17","ubi9-jdk17","jdk17","ubi9","8-ubuntu-jdk17","8-jdk17","8.9-ubuntu-jdk17","8.9-jdk17","8.9.0-ubuntu-jdk17","8.9.0-ubi9","8.9.0-ubi9-jdk17","8.9.0","8.9.0-jdk17","8.9","8.5-ubuntu-jdk17","8.5-jdk17","8.5.8-ubuntu-jdk17","8","8.5","8.5.8","8.5.8-jdk17","7.19.8-jdk11","7.19.8-ubuntu-jdk11","7.19.8","7.19.0-ubuntu-jdk11","7.19.0-jdk11","7.19.0","8.5.8-ubi9-jdk17","8.5.7-ubuntu-jdk11","8.5.7-jdk11","8.5.8-ubi9","8.5.3-jdk17","8.5.3-ubuntu-jdk17","8.5.3","8.4.2-ubuntu-jdk17","8.4.2-jdk17","8.3.1-ubuntu-jdk17","8.4.2","8.3.1-jdk17","8.6-ubuntu-jdk11","8.3.1","8.6-jdk11","8.6.2-ubuntu-jdk11","8.2.1-jdk11","8.2.1-ubuntu-jdk11","8.6.2-jdk11","8.2.1","8.2.0-ubuntu-jdk17","8.5.2-ubuntu-jdk11","8.5.2-jdk11","8.2.0-jdk17","8.4-ubuntu-jdk11","8.4.5-ubuntu-jdk11","8.4-jdk11","8.4.5-jdk11","8.4.1-ubuntu-jdk11","8.3-ubuntu-jdk11","8.4.1-jdk11","8.3-jdk11","8.3.4-ubuntu-jdk11","8.3.4-jdk11","8.3.0-ubuntu-jdk11","8.3.0-jdk11","8.1.3-jdk17","8.1.3-ubuntu-jdk17","7.19.4-ubuntu-jdk11","7.19.4-jdk11","7.19.4","7.19.1-ubuntu-jdk11","7.19.19-ubuntu-jdk11","7.19.1-jdk11","7.19.19-jdk11","7.19.19","8.8.0-ubi9-jdk17","7.19.14-ubuntu-jdk11","7.19.14-jdk11","8.8.0-ubi9","8.7.1-ubuntu-jdk17","7.19.14","7.19","8.7.1-ubi9-jdk17","7.19.1","8.7.1-jdk17","8.7.1-ubi9","8.7.1","8.6.1-ubi9-jdk17","8.6.1-ubi9","8.6.0-ubi9-jdk17","8.6.0-ubi9","8.5.7-ubi9-jdk17","8.5.7-ubi9","8.5.6-ubi9-jdk17","8.5.6-ubi9","8.5.0-ubuntu-jdk17","8.5.0-jdk17","8.5.0","8.4.0-ubuntu-jdk17","8.4.0","8.4.0-jdk17","8.3.2-jdk17","8.3.2","8.3.2-ubuntu-jdk17","8.2.2-ubuntu-jdk17","8.2.2-ubuntu-jdk11","8.2.2-jdk17","8.2.2-jdk11","8.2.2","8.2.1-ubuntu-jdk17","8.2.1-jdk17","8.1.0-jdk11","8.1.0-ubuntu-jdk11","8.1.0","8.0.3-ubuntu-jdk17","8.0.3-jdk17","8.0.0-ubuntu-jdk11","8.0.0-jdk11","8.2.0","8.0.0","7.19.9-ubuntu-jdk11","7.19.9-jdk11","7.19.9","jdk11","ubuntu-jdk11","8-jdk11","8-ubuntu-jdk11","8.9-ubuntu-jdk11","8.9-jdk11","8.9.0-ubuntu-jdk11","8.9.0-jdk11","8.5-ubuntu-jdk11","8.5-jdk11","8.5.4-ubuntu-jdk17","8.5.8-jdk11","8.5.8-ubuntu-jdk11","8.5.4-jdk17","8.5.4","8.4.3-ubuntu-jdk17","8.4.3-jdk17","8.4.3","8.0.0-ubuntu-jdk17","8.0.0-jdk17","8.5.3-ubuntu-jdk11","8.5.3-jdk11","8.4.2-ubuntu-jdk11","8.4.2-jdk11","8.3.1-ubuntu-jdk11","8.3.1-jdk11","8.2-ubuntu-jdk17","8.2-jdk17","8.2.3-jdk17","8.2.3-ubuntu-jdk17","8.1-ubuntu-jdk17","8.1.4-ubuntu-jdk17","8.1.4-jdk17","8.1-jdk17","8.1.0-ubuntu-jdk17","8.1.0-jdk17","8.0-ubuntu-jdk17","8.0.4-ubuntu-jdk17","8.0-jdk17","8.0.4-jdk17","7.19.5-ubuntu-jdk11","7.19.5","7.19.2-ubuntu-jdk11","7.19.5-jdk11","7.19.2-jdk11","7.19.2","7.19.15-ubuntu-jdk11","7.19.15-jdk11","7.19.10-jdk11","7.19.15","7.19.10-ubuntu-jdk11","7.19.10","8.2-ubuntu-jdk11","8.2-jdk11","8.2.3-jdk11","8.2.3","8.2","8.1.1-ubuntu-jdk11","8.1.1-jdk11","8.1.1","8.0.1-ubuntu-jdk11","8.0.1-jdk11","7.20.0-ubuntu-jdk11","8.0.1","7.20.0-jdk11","7.20.0","8.5.4-jdk11","8.5.4-ubuntu-jdk11","8.5.0-ubuntu-jdk11","8.5.0-jdk11","8.7.1-jdk11","8.7.1-ubuntu-jdk11","8.4.3-jdk11","8.4.3-ubuntu-jdk11","8.4.0-ubuntu-jdk11","8.4.0-jdk11","8.1.1-ubuntu-jdk17","8.1.3-ubuntu-jdk11","8.3.2-ubuntu-jdk11","8.3.2-jdk11","8.0.2-ubuntu-jdk17","8.1.3","8.1.3-jdk11","8.0.2-ubuntu-jdk11","8.2.3-ubuntu-jdk11","8.0.2-jdk11","8.0.1-ubuntu-jdk17","8.0.2","7.20.1","7.20.1-jdk11","7.19.6-ubuntu-jdk11","8.1.1-jdk17","7.19.20","7.19.16-ubuntu-jdk11","7.19.6","8.0.2-jdk17","7.19.20-jdk11","7.19.16","8.0.1-jdk17","7.20.1-ubuntu-jdk11","7.19.6-jdk11","7.19.20-ubuntu-jdk11","7.19.16-jdk11","7.19.11","7.19.11-jdk11","7.19.11-ubuntu-jdk11","eap-ubuntu-jdk11","eap-jdk17","eap-jdk11","9.0.0-m41-jdk17","9.0.0-m41","9.0.0-m41-jdk11","9.0.0-m41-ubuntu-jdk17","9.0.0-m41-ubi9","9.0.0-m41-ubi9-jdk17","eap-ubuntu-jdk17","eap","9.0.0-m41-ubuntu-jdk11","9.0.0-m30-jdk17","9.0.0-m30-ubuntu-jdk17","9.0.0-m30-jdk11","9.0.0-m30","9.0.0-m30-ubuntu-jdk11","9.0.0-m26-ubuntu-jdk17","9.0.0-m26-jdk17","9.0.0-m26-ubuntu-jdk11","9.0.0-m26-ubi9","9.0.0-m26-jdk11","9.0.0-m26","9.0.0-m26-ubi9-jdk17","8.9.0-rc1-ubuntu-jdk11","8.9.0-rc1-jdk11","8.9.0-rc1-ubi9","8.9.0-rc1-jdk17","8.9.0-rc1-ubi9-jdk17","8.9.0-rc1-ubuntu-jdk17","8.9.0-rc1","9.0.0-m23-jdk11","9.0.0-m23-ubi9-jdk17","9.0.0-m23-ubi9","9.0.0-m23-ubuntu-jdk11","9.0.0-m23","9.0.0-m23-jdk17","9.0.0-m23-ubuntu-jdk17","8.9.0-beta2-ubi9-jdk17","8.9.0-beta2-ubi9","8.9.0-beta2-ubuntu-jdk17","8.9.0-beta2-jdk17","8.9.0-beta2-jdk11","8.9.0-beta2-ubuntu-jdk11","8.9.0-beta2","9.0.0-m16-ubuntu-jdk17","9.0.0-m16-jdk17","9.0.0-m16-ubi9-jdk17","9.0.0-m16-ubi9","9.0.0-m16-jdk11","9.0.0-m16-ubuntu-jdk11","9.0.0-m16","8.9.0-m58-ubuntu-jdk11","8.9.0-m58-jdk11","8.9.0-m58-jdk17","8.9.0-m58-ubuntu-jdk17","8.9.0-m58","9.0.0-m15-jdk17","9.0.0-m15-ubuntu-jdk17","9.0.0-m15","9.0.0-m15-jdk11","9.0.0-m15-ubuntu-jdk11","8.9.0-m50-jdk17","8.9.0-m50-ubuntu-jdk11","8.9.0-m50-ubuntu-jdk17","8.9.0-m50","8.9.0-m50-jdk11","9.0.0-m14-ubuntu-jdk11","9.0.0-m14-jdk17","9.0.0-m14-jdk11","9.0.0-m14","9.0.0-m14-ubuntu-jdk17","9.0.0-m13-jdk11","9.0.0-m13-jdk17","9.0.0-m13","9.0.0-m13-ubuntu-jdk17","9.0.0-m13-ubuntu-jdk11","8.9.0-m43-jdk17","8.9.0-m43","8.9.0-m43-jdk11","8.9.0-m43-ubuntu-jdk11","8.9.0-m43-ubuntu-jdk17","9.0.0-m11-jdk17","9.0.0-m11","9.0.0-m11-ubuntu-jdk17","9.0.0-m10-ubuntu-jdk11","9.0.0-m10-jdk11","9.0.0-m10-ubuntu-jdk17","9.0.0-m10-jdk17","9.0.0-m10","9.0.0-m09-ubuntu-jdk17","9.0.0-m09-jdk17","9.0.0-m09-ubuntu-jdk11","9.0.0-m09-jdk11","9.0.0-m09","8.8.0-rc1-jdk17","8.8.0-rc1-jdk11","8.8.0-rc1-ubuntu-jdk11","8.8.0-rc1","8.8.0-rc1-ubuntu-jdk17","9.0.0-m08-jdk17","9.0.0-m08-ubuntu-jdk17","9.0.0-m08","9.0.0-m08-ubuntu-jdk11","9.0.0-m08-jdk11","8.8.0-beta1-jdk17","8.8.0-beta1-ubuntu-jdk17","8.8.0-beta1-jdk11","8.8.0-beta1","8.8.0-beta1-ubuntu-jdk11","9.0.0-m07-ubuntu-jdk17","9.0.0-m07-jdk17","9.0.0-m07-jdk11","9.0.0-m07","9.0.0-m07-ubuntu-jdk11","7.16.2-ubuntu-jdk11","7.16.2","7.16.2-jdk11","7.13.7-ubuntu-jdk11","7.13.7-jdk11","7.13.7","7.11.0-ubuntu-jdk11","7.11.0-jdk11","7.11.0","7.13.12-ubuntu-jdk11","7.13.12-jdk11","7.13.12","7.16.3-ubuntu-jdk11","7.16.3-jdk11","7.16.3","7.13.8-ubuntu-jdk11","7.13.8-jdk11","7.13.8","7.11.1-ubuntu-jdk11","7.11.1-jdk11","7.11.1","7.13.13-ubuntu-jdk11","7.13.13-jdk11","7.13.13","7.16.4-ubuntu-jdk11","7.16.4-jdk11","7.16.4","7.11.2-ubuntu-jdk11","7.11.2-jdk11","7.11.2","7.13.9-ubuntu-jdk11","7.13.9-jdk11","7.13.9","7.16-ubuntu-jdk11","7.16-jdk11","7.16.5-ubuntu-jdk11","7.16.5-jdk11","7.16.5","7.16","7.13.14-ubuntu-jdk11","7.13.14-jdk11","7.13.14","7.14.0-ubuntu-jdk11","7.14.0-jdk11","7.14.0","7.11.3-ubuntu-jdk11","7.11.3-jdk11","7.11.3","7.13.15-ubuntu-jdk11","7.13.15-jdk11","7.11-ubuntu-jdk11","7.13.15","7.11.6-ubuntu-jdk11","7.11.6","7.11","7.17.0-ubuntu-jdk11","7.17.0-jdk11","7.17.0","7.14.1-ubuntu-jdk11","7.14.1-jdk11","7.14.1","7.11-jdk11","7.11.6-jdk11","7.13.16-ubuntu-jdk11","7.13.16-jdk11","7.13.16","7.17.1-ubuntu-jdk11","7.17.1-jdk11","7.17.1","7.14.2-ubuntu-jdk11","7.14.2-jdk11","7.14.2","7.13.17-ubuntu-jdk11","7.13.17-jdk11","7.13.17","7.12.0-ubuntu-jdk11","7.12.0-jdk11","7.12.0","7.17.2-ubuntu-jdk11","7.17.2-jdk11","7.17.2","7.14.3-ubuntu-jdk11","7.14.3-jdk11","7.14.3","7.13.18-ubuntu-jdk11","7.13.18-jdk11","7.13.18","7.17.3-ubuntu-jdk11","7.17.3-jdk11","7.17.3","7.14-ubuntu-jdk11","7.14-jdk11","7.14.4-ubuntu-jdk11","7.14.4-jdk11","7.14.4","7.14","7.12.1-ubuntu-jdk11","7.12.1-jdk11","7.12.1","7.17.4-ubuntu-jdk11","7.17.4-jdk11","7.17.4","7.13.19-ubuntu-jdk11","7.13.19-jdk11","7.13.19","7.12.2-ubuntu-jdk11","7.12.2-jdk11","7.12.2","7.15.0-ubuntu-jdk11","7.15.0-jdk11","7.15.0","7.13.2-ubuntu-jdk11","7.13.2-jdk11","7.13.2","7.12.3-ubuntu-jdk11","7.12.3-jdk11","7.12.3","7.17-ubuntu-jdk11","7.17-jdk11","7.17.5-ubuntu-jdk11","7.17.5-jdk11","7.17.5","7.17","7.15.1-ubuntu-jdk11","7.15.1-jdk11","7.15.1","7.13-ubuntu-jdk11","7.13-jdk11","7.13.20-ubuntu-jdk11","7.13.20-jdk11","7.13.20","7.13","7.12.4-ubuntu-jdk11","7.12.4-jdk11","7.12.4","7.18.0-ubuntu-jdk11","7.18.0-jdk11","7.18.0","7.15.2-ubuntu-jdk11","7.15.2-jdk11","7.15.2","7.12-ubuntu-jdk11","7.12.5","7.12-jdk11","7.12.5-ubuntu-jdk11","7.12.5-jdk11","7.12","7.15-ubuntu-jdk11","7.15-jdk11","7.15.3-ubuntu-jdk11","7.15.3-jdk11","7.15.3","7.15","7.13.3-ubuntu-jdk11","7.13.3-jdk11","7.13.3","7.18.1-ubuntu-jdk11","7.18.1-jdk11","7.18.1","7.18.2-ubuntu-jdk11","7.18.2-jdk11","7.18.2","7.13.4-ubuntu-jdk11","7.13.4-jdk11","7.13.4","7.13.0-ubuntu-jdk11","7.13.0-jdk11","7.13.0","7.16.0-ubuntu-jdk11","7.16.0-jdk11","7.16.0","7.18-ubuntu-jdk11","7.18-jdk11","7.18.3-ubuntu-jdk11","7.18.3-jdk11","7.18.3","7.18","7.13.5-ubuntu-jdk11","7.13.5-jdk11","7.13.5","7.13.1-ubuntu-jdk11","7.13.1-jdk11","7.13.1","7.16.1-ubuntu-jdk11","7.16.1-jdk11","7.16.1","7.13.6-ubuntu-jdk11","7.13.6-jdk11","7.13.6","7.13.11-ubuntu-jdk11","7.13.11-jdk11","7.13.11","8.8.0-m61-ubuntu-jdk11","8.8.0-m61-jdk11","8.8.0-m61","8.8.0-m61-ubuntu-jdk17","8.8.0-m61-jdk17","8.8.0-m46-ubuntu-jdk11","8.8.0-m46-ubuntu-jdk17","8.8.0-m46-jdk17","8.8.0-m46","8.8.0-m46-jdk11","8.7.0-rc1-ubuntu-jdk17","8.7.0-rc1-jdk17","8.7.0-rc1-jdk11","8.7.0-rc1","8.7.0-rc1-ubuntu-jdk11","8.7.0-beta1-ubuntu-jdk11","8.7.0-beta1","8.7.0-beta1-jdk11","8.7.0-beta1-jdk17","8.7.0-beta1-ubuntu-jdk17","8.7.0-m48-ubuntu-jdk17","8.7.0-m48-jdk17","8.7.0-m48-jdk11","8.7.0-m48-ubuntu-jdk11","8.7.0-m48","8.7.0-m41-ubuntu-jdk17","8.7.0-m41-ubuntu-jdk11","8.7.0-m41-jdk17","8.7.0-m41-jdk11","8.7.0-m41","8.6.0-rc1-ubuntu-jdk17","8.6.0-rc1-jdk17","8.6.0-rc1-ubuntu-jdk11","8.6.0-rc1-jdk11","8.6.0-rc1","8.6.0-beta2-jdk17","8.6.0-beta2","8.6.0-beta2-jdk11","8.6.0-beta2-ubuntu-jdk11","8.6.0-beta2-ubuntu-jdk17","8.6.0-beta1-jdk17","8.6.0-beta1-ubuntu-jdk17","8.6.0-beta1","8.6.0-beta1-ubuntu-jdk11","8.6.0-beta1-jdk11","8.6.0-m85-ubuntu-jdk17","8.6.0-m85-jdk17","8.6.0-m85","8.6.0-m85-ubuntu-jdk11","8.6.0-m85-jdk11","8.6.0-m79-jdk11","8.6.0-m79-ubuntu-jdk11","8.6.0-m79-ubuntu-jdk17","8.6.0-m79-jdk17","8.6.0-m79","8.5.0-rc1-jdk11","8.5.0-rc1","8.5.0-rc1-jdk17","8.5.0-rc1-ubuntu-jdk11","8.5.0-rc1-ubuntu-jdk17","8.5.0-beta1-ubuntu-jdk17","8.5.0-beta1-jdk17","8.5.0-beta1","8.5.0-beta1-ubuntu-jdk11","8.5.0-beta1-jdk11","8.5.0-m06-jdk17","8.5.0-m06-ubuntu-jdk17","8.5.0-m06-jdk11","8.5.0-m06","8.5.0-m06-ubuntu-jdk11","8.5.0-m05-jdk17","8.5.0-m05-jdk11","8.5.0-m05-ubuntu-jdk17","8.5.0-m05-ubuntu-jdk11","8.5.0-m05","8.5.0-m04-jdk17","8.5.0-m04-ubuntu-jdk11","8.5.0-m04-ubuntu-jdk17","8.5.0-m04","8.5.0-m04-jdk11","8.4.0-rc2-ubuntu-jdk17","8.4.0-rc2-jdk17","8.4.0-rc2-ubuntu-jdk11","8.4.0-rc2","8.4.0-rc2-jdk11","8.4.0-rc1-jdk17","8.4.0-rc1-ubuntu-jdk17","8.4.0-rc1-jdk11","8.4.0-rc1","8.4.0-rc1-ubuntu-jdk11","8.4.0-beta1-jdk17","8.4.0-beta1-ubuntu-jdk17","8.4.0-beta1","8.4.0-beta1-jdk11","8.4.0-beta1-ubuntu-jdk11","8.4.0-m48-jdk17","8.4.0-m48-ubuntu-jdk11","8.4.0-m48-jdk11","8.4.0-m48-ubuntu-jdk17","8.4.0-m48","8.4.0-m22","8.4.0-m22-jdk17","8.4.0-m22-ubuntu-jdk11","8.4.0-m22-jdk11","8.4.0-m22-ubuntu-jdk17","8.4.0-m21-ubuntu-jdk17","8.4.0-m21-jdk17","8.4.0-m21","8.4.0-m21-ubuntu-jdk11","8.4.0-m21-jdk11","8.3.0-rc2-ubuntu-jdk11","8.3.0-rc2-jdk11","8.3.0-rc2-ubuntu-jdk17","8.3.0-rc2-jdk17","8.3.0-rc2","8.3.0-rc1-ubuntu-jdk11","8.3.0-rc1-ubuntu-jdk17","8.3.0-rc1-jdk11","8.3.0-rc1-jdk17","8.3.0-rc1","8.3.0-beta1-jdk11","8.3.0-beta1-jdk17","8.3.0-beta1-ubuntu-jdk11","8.3.0-beta1","8.3.0-beta1-ubuntu-jdk17","8.3.0-tinymce6-m01-ubuntu-jdk11","8.3.0-tinymce6-m01","8.3.0-tinymce6-m01-ubuntu-jdk17","8.3.0-tinymce6-m01-jdk11","8.3.0-tinymce6-m01-jdk17","8.3.0-m48","8.3.0-m48-ubuntu-jdk17","8.3.0-m48-jdk11","8.3.0-m48-ubuntu-jdk11","8.3.0-m48-jdk17","8.3.0-m42-ubuntu-jdk17","8.3.0-m42-jdk17","8.3.0-m42-jdk11","8.3.0-m42-ubuntu-jdk11","8.3.0-m42","8.3.0-m37-jdk11","8.3.0-m37-ubuntu-jdk11","8.3.0-m37-jdk17","8.3.0-m37","8.3.0-m37-ubuntu-jdk17","8.3.0-m31-ubuntu-jdk17","8.3.0-m31","8.3.0-m31-ubuntu-jdk11","8.3.0-m31-jdk11","8.3.0-m31-jdk17","8.2.0-rc1-jdk11","8.2.0-rc1-jdk17","8.2.0-rc1-ubuntu-jdk11","8.2.0-rc1-ubuntu-jdk17","8.2.0-rc1","8.2.0-beta2","8.2.0-beta2-ubuntu-jdk11","8.2.0-beta2-jdk17","8.2.0-beta2-ubuntu-jdk17","8.2.0-beta2-jdk11","8.2.0-beta1-ubuntu-jdk11","8.2.0-beta1-ubuntu-jdk17","8.2.0-beta1-jdk17","8.2.0-beta1-jdk11","8.2.0-beta1","8.2.0-m36-jdk11","8.2.0-m36-jdk17","8.2.0-m36","8.2.0-m36-ubuntu-jdk17","8.2.0-m36-ubuntu-jdk11","8.2.0-m27-ubuntu-jdk11","8.2.0-m27-jdk17","8.2.0-m27-jdk11","8.2.0-m27","8.2.0-m27-ubuntu-jdk17","8.2.0-m20","8.2.0-m20-jdk11","8.2.0-m20-ubuntu-jdk11","8.2.0-m20-ubuntu-jdk17","8.2.0-m20-jdk17","8.1.0-rc1-jdk11","8.1.0-rc1","8.1.0-rc1-ubuntu-jdk11","8.1.0-rc1-ubuntu-jdk17","8.1.0-rc1-jdk17","8.1.0-beta2","8.1.0-beta2-jdk11","8.1.0-beta2-ubuntu-jdk11","8.1.0-beta2-ubuntu-jdk17","8.1.0-beta2-jdk17","8.1.0-beta1-jdk11","8.1.0-beta1","8.1.0-beta1-ubuntu-jdk11","8.1.0-beta1-jdk17","8.1.0-beta1-ubuntu-jdk17","8.1.0-m78-jdk11","8.1.0-m78-ubuntu-jdk17","8.1.0-m78-ubuntu-jdk11","8.1.0-m78","8.1.0-m78-jdk17","7.6.2-ubuntu-jdk11","7.6.2-jdk11","7.6.2","7.6.1-ubuntu-jdk11","7.6.1-jdk11","7.6.1","7.9-ubuntu-jdk11","7.9-jdk11","7.9.3-ubuntu-jdk11","7.9.3-jdk11","7.9.3","7.9.1-ubuntu-jdk11","7.9.1-jdk11","7.9.1","7.9.0-ubuntu-jdk11","7.9.0-jdk11","7.9.0","7.9","7.8-ubuntu-jdk11","7.8-jdk11","7.8.3-ubuntu-jdk11","7.8.3-jdk11","7.8.3","7.8","7.6.0-ubuntu-jdk11","7.6.0-jdk11","7.6.0","7.5-ubuntu-jdk11","7.5-jdk11","7.5.2-ubuntu-jdk11","7.5.2-jdk11","7.8.1-ubuntu-jdk11","7.8.1-jdk11","7.5.2","7.8.1","7.8.0-ubuntu-jdk11","7.8.0-jdk11","7.5.1-ubuntu-jdk11","7.8.0","7.7-ubuntu-jdk11","7.5.1-jdk11","7.7-jdk11","7.7.4-ubuntu-jdk11","7.5.1","7.7.4-jdk11","7.7.4","7.5.0-ubuntu-jdk11","7.7.3-ubuntu-jdk11","7.7.3-jdk11","7.7.3","7.5.0-jdk11","7.7.2-ubuntu-jdk11","7.7.2-jdk11","7.5.0","7.7.2","7.7","7.6-ubuntu-jdk11","7.5","7.6-jdk11","7.6.3-ubuntu-jdk11","7.4.9-ubuntu-jdk11","7.6.3-jdk11","7.6.3","7.6","7.4.9-jdk11","7.4.9","7.4.17-ubuntu-jdk11","7.4.17-jdk11","7.4-ubuntu-jdk11","7.4.17","7.4-jdk11","7.4.16-ubuntu-jdk11","7.4.8-ubuntu-jdk11","7.4.16-jdk11","7.4.8-jdk11","7.4.8","7.4.16","7.4.7-ubuntu-jdk11","7.4.7-jdk11","7.4.7","7.4.15-ubuntu-jdk11","7.4.6-ubuntu-jdk11","7.4.6-jdk11","7.4.6","7.4.15-jdk11","7.4.5-ubuntu-jdk11","7.4.5-jdk11","7.4.5","7.4.4-ubuntu-jdk11","7.4.15","7.4.4-jdk11","7.4.4","7.4.3-ubuntu-jdk11","7.4.3-jdk11","7.4.14-ubuntu-jdk11","7.4.3","7.4.1-ubuntu-jdk11","7.4.1-jdk11","7.4.14-jdk11","7.4.18-ubuntu-jdk11","7.4.18-jdk11","7.4.18","7.4.14","7.4.13-ubuntu-jdk11","7.4.13-jdk11","7.4.13","7.4.12-ubuntu-jdk11","7.4.12-jdk11","7.4.12","7.4.11-ubuntu-jdk11","7.4.11-jdk11","7.4.11","7.4.10-ubuntu-jdk11","7.4.10-jdk11","7.4.10","7.4.1","7.4.0-ubuntu-jdk11","7.4.0-jdk11","7.4.0","7.4","7.10-ubuntu-jdk11","7.10-jdk11","7.10.2-ubuntu-jdk11","7.10.2-jdk11","7.10.2","7.10.1-ubuntu-jdk11","7.10.1-jdk11","7.10.1","7.10.0-ubuntu-jdk11","7.10.0-jdk11","7.10.0","7.10","8.0.0-rc1-ubuntu-jdk11","8.0.0-rc1-jdk17","8.0.0-rc1-jdk11","8.0.0-rc1","8.0.0-rc1-ubuntu-jdk17","8.0.0-beta1-ubuntu-jdk17","8.0.0-beta1","8.0.0-beta1-ubuntu-jdk11","8.0.0-beta1-jdk17","8.0.0-beta1-jdk11","8.0.0-m90-ubuntu-jdk17","8.0.0-m90-ubuntu-jdk11","8.0.0-m90-jdk11","8.0.0-m90-jdk17","8.0.0-m90","8.0.0-m89-ubuntu-jdk17","8.0.0-m89-jdk17","8.0.0-m89-jdk11","8.0.0-m89","8.0.0-m89-ubuntu-jdk11","8.0.0-m86","8.0.0-m86-ubuntu-jdk17","8.0.0-m86-jdk11","8.0.0-m86-ubuntu-jdk11","8.0.0-m86-jdk17","8.0.0-m82-ubuntu-jdk11","8.0.0-m82-jdk11","8.0.0-m82","8.0.0-m82-ubuntu-jdk17","8.0.0-m82-jdk17","8.0.0-m76-ubuntu-jdk17","8.0.0-m76-ubuntu-jdk11","8.0.0-m76-jdk17","8.0.0-m76","8.0.0-m76-jdk11","8.0.0-m69","8.0.0-m69-ubuntu-jdk11","8.0.0-m69-jdk17","8.0.0-m69-ubuntu-jdk17","8.0.0-m69-jdk11","8.0.0-m60","8.0.0-m60-jdk17","8.0.0-m60-jdk11","8.0.0-m60-ubuntu-jdk17","8.0.0-m60-ubuntu-jdk11","7.20.0-rc1-ubuntu-jdk11","7.20.0-rc1-jdk11","7.20.0-rc1","8.0.0-struts-m48-ubuntu-jdk17","8.0.0-struts-m48-ubuntu-jdk11","8.0.0-struts-m48-jdk11","8.0.0-struts-m48","8.0.0-struts-m48-jdk17","7.20.0-beta4-jdk11","7.20.0-beta4-ubuntu-jdk11","7.20.0-beta4","8.0.0-m45-ubuntu-jdk11","8.0.0-m45-jdk17","8.0.0-m45-jdk11","8.0.0-m45-ubuntu-jdk17","8.0.0-m45","8.0.0-struts-m39-ubuntu-jdk11","8.0.0-struts-m39-ubuntu-jdk17","8.0.0-struts-m39-jdk11","8.0.0-struts-m39-jdk17","8.0.0-struts-m39","8.0.0-struts-m027-ubuntu-jdk11","8.0.0-struts-m027-ubuntu-jdk17","8.0.0-struts-m027","8.0.0-struts-m027-jdk17","8.0.0-struts-m027-jdk11","7.20.0-beta2-ubuntu-jdk11","7.20.0-beta2-jdk11","7.20.0-beta2-jdk17","7.20.0-beta2","7.20.0-beta2-ubuntu-jdk17","8.0.0-m026-ubuntu-jdk11","8.0.0-m026-ubuntu-jdk17","8.0.0-m026","8.0.0-m026-jdk17","8.0.0-m026-jdk11","8.0.0-struts-m020-ubuntu-jdk17","8.0.0-m023-jdk17","8.0.0-m023-ubuntu-jdk17","8.0.0-struts-m020-jdk17","7.20.0-m104-jdk17","7.20.0-m104-ubuntu-jdk17","8.0.0-m023-jdk11","7.20.0-m104","8.0.0-m023-ubuntu-jdk11","7.20.0-m104-ubuntu-jdk11","8.0.0-m023","7.20.0-m104-jdk11","8.0.0-m021-ubuntu-jdk11","8.0.0-m021","8.0.0-m021-jdk11","7.20.0-m99","7.20.0-m99-ubuntu-jdk11","7.20.0-m99-jdk11","8.0.0-struts-m020-jdk11","8.0.0-struts-m020-ubuntu-jdk11","8.0.0-struts-m020","8.0.0-m020-jdk11","8.0.0-m020","8.0.0-m020-ubuntu-jdk11","7.20.0-m78-ubuntu-jdk11","7.20.0-m78","7.20.0-m78-jdk11","7.19.0-rc3-jdk11","7.19.0-rc3-ubuntu-jdk11","7.19.0-rc3","8.0.0-m018-ubuntu-jdk11","8.0.0-m018-jdk11","8.0.0-m018","8.0.0-m017-ubuntu-jdk11","8.0.0-m017-jdk11","8.0.0-m017","7.19.0-rc2-ubuntu-jdk11","7.19.0-rc2-jdk11","7.19.0-rc2","8.0.0-m015-ubuntu-jdk11","8.0.0-m015","8.0.0-m015-jdk11","7.19.0-rc1-jdk11","7.19.0-rc1","7.19.0-rc1-ubuntu-jdk11","7.19.0-beta1-jdk11","7.19.0-beta1-ubuntu-jdk11","7.19.0-beta1","8.0.0-m014","8.0.0-m014-ubuntu-jdk11","8.0.0-m014-jdk11","7.17-ubuntu-18.04-adoptopenjdk11","7.17-ubuntu","7.17-adoptopenjdk11","7.17.5-ubuntu-18.04-adoptopenjdk11","7.17.5-ubuntu","7.17.5-adoptopenjdk11","eap-ubuntu-18.04-adoptopenjdk11","eap-ubuntu","8.0.0-m012-ubuntu-18.04-adoptopenjdk11","eap-adoptopenjdk11","8.0.0-m012-ubuntu","8.0.0-m012-adoptopenjdk11","8.0.0-m012","8.0.0-m012-jdk11","7.19.0-m02-jdk11","7.19.0-m02-ubuntu-18.04-adoptopenjdk11","7.19.0-m02-adoptopenjdk11","7.19.0-m02-ubuntu","7.19.0-m02","ubuntu-18.04-adoptopenjdk11","ubuntu","adoptopenjdk11","7-ubuntu-18.04-adoptopenjdk11","7-ubuntu","7-adoptopenjdk11","7.9.1-ubuntu-18.04-adoptopenjdk11","7.9.1-ubuntu","7.9.1-adoptopenjdk11","7.9.0-ubuntu-18.04-adoptopenjdk11","7.9.0-ubuntu","7.9.0-adoptopenjdk11","7.8-ubuntu-18.04-adoptopenjdk11","7.8-ubuntu","7.8-adoptopenjdk11","7.8.3-ubuntu-18.04-adoptopenjdk11","7.8.3-ubuntu","7.8.3-adoptopenjdk11","7.8.1-ubuntu-18.04-adoptopenjdk11","7.8.1-ubuntu","7.8.1-adoptopenjdk11","7.8.0-ubuntu-18.04-adoptopenjdk11","7.8.0-ubuntu","7.8.0-adoptopenjdk11","7.7-ubuntu-18.04-adoptopenjdk11","7.7-ubuntu","7.7-adoptopenjdk11","7.7.4-ubuntu-18.04-adoptopenjdk11","7.7.4-ubuntu","7.7.4-adoptopenjdk11","7.7.3-ubuntu-18.04-adoptopenjdk11","7.7.3-ubuntu","7.7.3-adoptopenjdk11","7.7.2-ubuntu-18.04-adoptopenjdk11","7.7.2-ubuntu","7.7.2-adoptopenjdk11","7.6-ubuntu-18.04-adoptopenjdk11","7.6-ubuntu","7.6-adoptopenjdk11","7.6.3-ubuntu-18.04-adoptopenjdk11","7.6.3-ubuntu","7.6.3-adoptopenjdk11","7.6.0-ubuntu-18.04-adoptopenjdk11","7.6.0-ubuntu","7.6.0-adoptopenjdk11","7.5-ubuntu-18.04-adoptopenjdk11","7.5-ubuntu","7.5-adoptopenjdk11","7.5.2-ubuntu-18.04-adoptopenjdk11","7.5.2-ubuntu","7.5.2-adoptopenjdk11","7.5.1-ubuntu-18.04-adoptopenjdk11","7.5.1-ubuntu","7.5.1-adoptopenjdk11","7.5.0-ubuntu-18.04-adoptopenjdk11","7.5.0-ubuntu","7.5.0-adoptopenjdk11","7.4-ubuntu-18.04-adoptopenjdk11","7.4-ubuntu","7.4-adoptopenjdk11","7.4.9-ubuntu-18.04-adoptopenjdk11","7.4.9-ubuntu","7.4.9-adoptopenjdk11","7.4.8-ubuntu-18.04-adoptopenjdk11","7.4.8-ubuntu","7.4.8-adoptopenjdk11","7.4.7-ubuntu-18.04-adoptopenjdk11","7.4.7-ubuntu","7.4.7-adoptopenjdk11","7.4.6-ubuntu-18.04-adoptopenjdk11","7.4.6-ubuntu","7.4.6-adoptopenjdk11","7.4.3-ubuntu-18.04-adoptopenjdk11","7.4.3-ubuntu","7.4.3-adoptopenjdk11","7.4.1-ubuntu","7.4.1-adoptopenjdk11","7.4.17-ubuntu-18.04-adoptopenjdk11","7.4.17-ubuntu","7.4.17-adoptopenjdk11","7.4.16-ubuntu-18.04-adoptopenjdk11","7.4.16-ubuntu","7.4.16-adoptopenjdk11","7.4.15-ubuntu-18.04-adoptopenjdk11","7.4.15-ubuntu","7.4.15-adoptopenjdk11","7.4.14-ubuntu-18.04-adoptopenjdk11","7.4.14-ubuntu","7.4.14-adoptopenjdk11","7.4.13-ubuntu-18.04-adoptopenjdk11","7.4.13-ubuntu","7.4.13-adoptopenjdk11","7.4.12-ubuntu-18.04-adoptopenjdk11","7.4.12-ubuntu","7.4.12-adoptopenjdk11","7.4.0-ubuntu-18.04-adoptopenjdk11","7.4.0-ubuntu","7.4.0-adoptopenjdk11","7.18-ubuntu-18.04-adoptopenjdk11","7.18-ubuntu","7.18-adoptopenjdk11","7.18.1-ubuntu-18.04-adoptopenjdk11","7.18.1-ubuntu","7.18.1-adoptopenjdk11","7.18.0-ubuntu-18.04-adoptopenjdk11","7.18.0-ubuntu","7.18.0-adoptopenjdk11","7.17.4-ubuntu-18.04-adoptopenjdk11","7.17.4-ubuntu","7.17.4-adoptopenjdk11","7.17.3-ubuntu-18.04-adoptopenjdk11","7.17.3-ubuntu","7.17.3-adoptopenjdk11","7.17.2-ubuntu-18.04-adoptopenjdk11","7.17.2-ubuntu","7.17.2-adoptopenjdk11","7.16-ubuntu-18.04-adoptopenjdk11","7.16-ubuntu","7.16-adoptopenjdk11","7.16.4-ubuntu-18.04-adoptopenjdk11","7.16.4-ubuntu","7.16.4-adoptopenjdk11","7.16.3-ubuntu-18.04-adoptopenjdk11","7.16.3-ubuntu","7.16.3-adoptopenjdk11","7.16.2-ubuntu-18.04-adoptopenjdk11","7.16.2-ubuntu","7.16.2-adoptopenjdk11","7.16.1-ubuntu-18.04-adoptopenjdk11","7.16.1-ubuntu","7.16.1-adoptopenjdk11","7.16.0-ubuntu-18.04-adoptopenjdk11","7.16.0-ubuntu","7.16.0-adoptopenjdk11","7.15-ubuntu-18.04-adoptopenjdk11","7.15-ubuntu","7.15-adoptopenjdk11","7.15.2-ubuntu-18.04-adoptopenjdk11","7.15.2-ubuntu","7.15.2-adoptopenjdk11","7.15.1-ubuntu-18.04-adoptopenjdk11","7.15.1-ubuntu","7.15.1-adoptopenjdk11","7.14-ubuntu-18.04-adoptopenjdk11","7.14.3-ubuntu-18.04-adoptopenjdk11","7.14.3-ubuntu","7.14.0-ubuntu","7.14.0-adoptopenjdk11","7.13-ubuntu-18.04-adoptopenjdk11","7.13-ubuntu","7.13-adoptopenjdk11","7.13.7-ubuntu-18.04-adoptopenjdk11","7.13.7-ubuntu","7.13.7-adoptopenjdk11","7.13.6-ubuntu-18.04-adoptopenjdk11","7.13.6-ubuntu","7.13.6-adoptopenjdk11","7.13.5-ubuntu-18.04-adoptopenjdk11","7.13.5-ubuntu","7.13.5-adoptopenjdk11","7.13.4-ubuntu-18.04-adoptopenjdk11","7.13.4-ubuntu","7.13.4-adoptopenjdk11","7.12.5-ubuntu-18.04-adoptopenjdk11","7.12.5-ubuntu","7.12.4-ubuntu-18.04-adoptopenjdk11","7.12.4-ubuntu","7.12.4-adoptopenjdk11","7.12.3-ubuntu-18.04-adoptopenjdk11","7.12.3-ubuntu","7.12.3-adoptopenjdk11","7.12.2-ubuntu-18.04-adoptopenjdk11","7.12.2-ubuntu","7.12.2-adoptopenjdk11","7.12.1-ubuntu-18.04-adoptopenjdk11","7.12.1-ubuntu","7.12.1-adoptopenjdk11","7.11.1-ubuntu-18.04-adoptopenjdk11","7.11.1-ubuntu","7.11.1-adoptopenjdk11","7.11.0-ubuntu-18.04-adoptopenjdk11","7.11.0-ubuntu","7.11.0-adoptopenjdk11","7.10-ubuntu-18.04-adoptopenjdk11","7.10-ubuntu","7.10-adoptopenjdk11","7.10.2-ubuntu-18.04-adoptopenjdk11","7.10.2-ubuntu","7.10.2-adoptopenjdk11","7.10.1-ubuntu-18.04-adoptopenjdk11","7.10.1-ubuntu","7.10.1-adoptopenjdk11","7.10.0-ubuntu-18.04-adoptopenjdk11","7.10.0-ubuntu","7.10.0-adoptopenjdk11","7.14-adoptopenjdk11","7.9-ubuntu-18.04-adoptopenjdk11","7.9-ubuntu","7.9-adoptopenjdk11","7.14.3-adoptopenjdk11","7.9.3-ubuntu-18.04-adoptopenjdk11","7.9.3-ubuntu","7.9.3-adoptopenjdk11","7.14.2-ubuntu-18.04-adoptopenjdk11","7.6.2-ubuntu-18.04-adoptopenjdk11","7.6.2-ubuntu","7.14.2-ubuntu","7.6.2-adoptopenjdk11","7.6.1-ubuntu-18.04-adoptopenjdk11","7.6.1-ubuntu","7.14.2-adoptopenjdk11","7.6.1-adoptopenjdk11","7.14.1-ubuntu-18.04-adoptopenjdk11","7.4.5-ubuntu-18.04-adoptopenjdk11","7.4.5-ubuntu","7.14.1-ubuntu","7.4.5-adoptopenjdk11","7.4.4-ubuntu-18.04-adoptopenjdk11","7.14.1-adoptopenjdk11","7.4.4-ubuntu","7.4.4-adoptopenjdk11","7.14.0-ubuntu-18.04-adoptopenjdk11","7.4.1-ubuntu-18.04-adoptopenjdk11","7.13.3-ubuntu-18.04-adoptopenjdk11","7.4.11-ubuntu-18.04-adoptopenjdk11","7.13.3-ubuntu","7.4.11-ubuntu","7.13.3-adoptopenjdk11","7.4.11-adoptopenjdk11","7.13.2-ubuntu-18.04-adoptopenjdk11","7.4.10-ubuntu-18.04-adoptopenjdk11","7.13.2-ubuntu","7.4.10-ubuntu","7.13.2-adoptopenjdk11","7.4.10-adoptopenjdk11","7.13.1-ubuntu-18.04-adoptopenjdk11","7.17.1-ubuntu-18.04-adoptopenjdk11","7.13.1-ubuntu","7.17.1-ubuntu","7.13.1-adoptopenjdk11","7.17.1-adoptopenjdk11","7.13.0-ubuntu-18.04-adoptopenjdk11","7.13.0-ubuntu","7.17.0-ubuntu-18.04-adoptopenjdk11","7.17.0-ubuntu","7.13.0-adoptopenjdk11","7.17.0-adoptopenjdk11","7.12-ubuntu-18.04-adoptopenjdk11","7.12-ubuntu","7.12-adoptopenjdk11","7.15.0-ubuntu-18.04-adoptopenjdk11","7.12.5-adoptopenjdk11","7.15.0-ubuntu","7.12.0-ubuntu-18.04-adoptopenjdk11","7.15.0-adoptopenjdk11","7.12.0-ubuntu","7.11-ubuntu-18.04-adoptopenjdk11","7.14-ubuntu","7.11-ubuntu","7.11.6-ubuntu-18.04-adoptopenjdk11","7.11.6-ubuntu","7.11.6-adoptopenjdk11","7.11.3-ubuntu-18.04-adoptopenjdk11","7.11.3-ubuntu","7.11.3-adoptopenjdk11","7.11.2-ubuntu-18.04-adoptopenjdk11","7.11.2-ubuntu","7.11.2-adoptopenjdk11","7.12.0-adoptopenjdk11","7.11-adoptopenjdk11","8.0.0-m011-jdk11","8.0.0-m011","8.0.0-m011-ubuntu-18.04-adoptopenjdk11","8.0.0-m011-ubuntu","7.19.0-m01-ubuntu-18.04-adoptopenjdk11","7.19.0-m01-jdk11","7.19.0-m01-adoptopenjdk11","8.0.0-m011-adoptopenjdk11","7.19.0-m01","7.19.0-m01-ubuntu","7.18.0-rc1-ubuntu-18.04-adoptopenjdk11","7.18.0-rc1-ubuntu","7.18.0-rc1-jdk11","7.18.0-rc1-adoptopenjdk11","7.18.0-rc1","7.18.0-beta1-ubuntu-18.04-adoptopenjdk11","7.18.0-beta1-ubuntu","7.18.0-beta1-jdk11","7.18.0-beta1-adoptopenjdk11","7.18.0-beta1","7.18.0-m68-jdk11","7.18.0-m68","7.18.0-m68-ubuntu-18.04-adoptopenjdk11","7.18.0-m68-ubuntu","7.18.0-m68-adoptopenjdk11","7.18.0-m61-ubuntu","7.18.0-m61-adoptopenjdk11","7.18.0-m61","7.18.0-m61-ubuntu-18.04-adoptopenjdk11","7.18.0-m61-jdk11","7.18.0-m53-ubuntu-18.04-adoptopenjdk11","7.18.0-m53-ubuntu","7.18.0-m53","7.18.0-m53-jdk11","7.18.0-m53-adoptopenjdk11","7.18.0-m46-ubuntu","7.18.0-m46-adoptopenjdk11","7.18.0-m46","7.18.0-m46-ubuntu-18.04-adoptopenjdk11","7.18.0-m46-jdk11","7.18.0-m40-ubuntu-18.04-adoptopenjdk11","7.18.0-m40-ubuntu","7.18.0-m40-jdk11","7.18.0-m40-adoptopenjdk11","7.18.0-m40","temurin-7.17.0","7.17.0-rc1-ubuntu-18.04-adoptopenjdk11","7.17.0-rc1-ubuntu","7.17.0-rc1-jdk11","7.17.0-rc1-adoptopenjdk11","7.17.0-rc1","7.4.6-ubuntu-jdk-11","7.4.5-ubuntu-jdk-11","7.4.4-ubuntu-jdk-11","7.4.3-ubuntu-jdk-11","7.4.1-ubuntu-jdk-11","7.4.0-ubuntu-jdk-11","7.3.2","7.3.2-jdk11","7.3.2-adoptopenjdk11","7.3.2-ubuntu-18.04-adoptopenjdk11","7.3.2-ubuntu","7.3.3-ubuntu-18.04-adoptopenjdk11","7.3.3-adoptopenjdk11","7.3.3-jdk11","7.3.3","7.3.3-ubuntu","7.3.4-jdk11","7.3.4-ubuntu-18.04-adoptopenjdk11","7.3.4-adoptopenjdk11","7.3.4-ubuntu","7.3.4","7.3.5-ubuntu","7.3-adoptopenjdk11","7.3-jdk11","7.3.5-ubuntu-18.04-adoptopenjdk11","7.3.5","7.3","7.3.5-adoptopenjdk11","7.3-ubuntu-18.04-adoptopenjdk11","7.3.5-jdk11","7.3-ubuntu","7.3.1-jdk11","7.3.1-ubuntu-18.04-adoptopenjdk11","7.3.1-adoptopenjdk11","7.3.1","7.3.1-ubuntu","7.17.0-beta1-jdk11","7.17.0-beta1-adoptopenjdk11","7.17.0-beta1","7.17.0-beta1-ubuntu-18.04-adoptopenjdk11","7.17.0-beta1-ubuntu","7.17.0-m61-adoptopenjdk11","7.17.0-m61","7.17.0-m61-ubuntu","7.17.0-m61-jdk11","7.17.0-m61-ubuntu-18.04-adoptopenjdk11","7.17.0-m59-ubuntu","7.17.0-m59-adoptopenjdk11","7.17.0-m59","7.17.0-m59-jdk11","7.17.0-m59-ubuntu-18.04-adoptopenjdk11","7.17.0-m47-jdk11","7.17.0-m47","7.17.0-m47-ubuntu","7.17.0-m47-adoptopenjdk11","7.17.0-m47-ubuntu-18.04-adoptopenjdk11","7.16.0-rc1","7.16.0-rc1-ubuntu-18.04-adoptopenjdk11","7.16.0-rc1-ubuntu","7.16.0-rc1-adoptopenjdk11","7.16.0-rc1-jdk11","7.2.0-adoptopenjdk11","7.2.0-ubuntu-18.04-adoptopenjdk11","7.2.0","7.2.0-jdk11","7.2.0-ubuntu","7.2.1","7.2.1-jdk11","7.2.1-ubuntu","7.2.1-adoptopenjdk11","7.2.1-ubuntu-18.04-adoptopenjdk11","7.2.2","7.2.2-adoptopenjdk11","7.2-jdk11","7.2-adoptopenjdk11","7.2-ubuntu","7.2","7.2.2-jdk11","7.2.2-ubuntu","7.2.2-ubuntu-18.04-adoptopenjdk11","7.2-ubuntu-18.04-adoptopenjdk11","7.16.0-beta2","7.16.0-beta2-adoptopenjdk11","7.16.0-beta2-ubuntu-18.04-adoptopenjdk11","7.16.0-beta2-ubuntu","7.16.0-beta2-jdk11","7.16.0-m49-ubuntu-18.04-adoptopenjdk11","7.16.0-m49-jdk11","7.16.0-m49-adoptopenjdk11","7.16.0-m49","7.16.0-m49-ubuntu","7.16.0-m39","7.16.0-m39-adoptopenjdk11","7.16.0-m39-ubuntu-18.04-adoptopenjdk11","7.16.0-m39-ubuntu","7.16.0-m39-jdk11","7.16.0-m30-ubuntu","7.16.0-m30","7.16.0-m30-adoptopenjdk11","7.16.0-m30-jdk11","7.16.0-m30-ubuntu-18.04-adoptopenjdk11","7.15.0-rc1-adoptopenjdk11","7.15.0-rc1-ubuntu-18.04-adoptopenjdk11","7.15.0-rc1-ubuntu","7.15.0-rc1","7.15.0-rc1-jdk11","7.15.0-beta3-jdk11","7.15.0-beta3-adoptopenjdk11","7.15.0-beta3","7.15.0-beta3-ubuntu-18.04-adoptopenjdk11","7.15.0-beta3-ubuntu","7.15.0-beta2-adoptopenjdk11","7.15.0-beta2-jdk11","7.15.0-beta2-ubuntu","7.15.0-beta2-ubuntu-18.04-adoptopenjdk11","7.15.0-beta2","7.15.0-beta1-ubuntu-18.04-adoptopenjdk11","7.15.0-beta1","7.15.0-beta1-jdk11","7.15.0-beta1-ubuntu","7.15.0-beta1-adoptopenjdk11","7.15.0-m35-jdk11","7.15.0-m35-adoptopenjdk11","7.15.0-m35-ubuntu-18.04-adoptopenjdk11","7.15.0-m35-ubuntu","7.15.0-m35","7.15.0-m27","7.15.0-m27-ubuntu","7.15.0-m27-ubuntu-18.04-adoptopenjdk11","7.15.0-m27-jdk11","7.15.0-m27-adoptopenjdk11","7.15.0-m20-ubuntu","7.15.0-m20","7.15.0-m20-ubuntu-18.04-adoptopenjdk11","7.15.0-m20-jdk11","7.15.0-m20-adoptopenjdk11","7.14.0-rc1-jdk11","7.14.0-rc1","7.14.0-rc1-ubuntu","7.14.0-rc1-ubuntu-18.04-adoptopenjdk11","7.14.0-rc1-adoptopenjdk11","7.14.0-beta1-ubuntu","7.14.0-beta1-jdk11","7.14.0-beta1","7.14.0-beta1-ubuntu-18.04-adoptopenjdk11","7.14.0-beta1-adoptopenjdk11","7.14.0-m176-jdk11","7.14.0-m176-ubuntu-18.04-adoptopenjdk11","7.14.0-m176","7.14.0-m176-ubuntu","7.14.0-m176-adoptopenjdk11","7.13.0-rc1-jdk11","7.13.0-rc1","7.13.0-rc1-adoptopenjdk11","7.13.0-rc1-ubuntu","7.13.0-rc1-ubuntu-18.04-adoptopenjdk11","7.13.0-beta-jdk11","7.13.0-beta","7.13.0-beta-ubuntu","7.13.0-beta-ubuntu-18.04-adoptopenjdk11","7.13.0-beta-adoptopenjdk11","7.13.0-m17","7.13.0-m17-adoptopenjdk11","7.13.0-m17-jdk11","7.13.0-m17-ubuntu-18.04-adoptopenjdk11","7.13.0-m17-ubuntu","7.13.0-m16-adoptopenjdk11","7.13.0-m16","7.13.0-m16-ubuntu","7.13.0-m16-ubuntu-18.04-adoptopenjdk11","7.13.0-m16-jdk11","6.13.20-ubuntu","6.5.2-jdk8","6.14.0-jdk8","6.15.7-jdk8","6.3.2-jdk8","6.6.8-adoptopenjdk8","6.11.1","6.6.15-ubuntu","6.1.1","6.13.10","6.8.3-ubuntu-18.04-adoptopenjdk8","6.5.2-ubuntu-18.04-adoptopenjdk8","6.13.20-adoptopenjdk8","6.14.0-ubuntu","6.15.7-ubuntu","6.6.8-ubuntu-18.04-adoptopenjdk8","6.3.2-ubuntu-18.04-adoptopenjdk8","6.11.1-ubuntu","6.6.15-jdk8","6.1.1-jdk8","6.13.10-adoptopenjdk8","6.8.3-adoptopenjdk8","6.5.2-adoptopenjdk8","6.13.20-ubuntu-18.04-adoptopenjdk8","6.14.0-ubuntu-18.04-adoptopenjdk8","6.15.7-adoptopenjdk8","6.6.8-ubuntu","6.3.2-adoptopenjdk8","6.6.15-ubuntu-18.04-adoptopenjdk8","6.8.3","6.13.3-ubuntu-18.04-adoptopenjdk8","6.13.3-adoptopenjdk8","6.6.0","6.13.3-ubuntu","6.6.0-ubuntu-18.04-adoptopenjdk8","6.13.3-jdk8","6.6.0-adoptopenjdk8","6.13.3","6.6.0-jdk8","6.6.0-ubuntu","6.13.4-ubuntu","6.13.4-jdk8","6.6.2","6.6.1-jdk8","6.13.4","6.6.2-adoptopenjdk8","6.6.1-ubuntu-18.04-adoptopenjdk8","6.13.4-ubuntu-18.04-adoptopenjdk8","6.6.2-ubuntu-18.04-adoptopenjdk8","6.6.1-ubuntu","6.13.4-adoptopenjdk8","6.6.2-ubuntu","6.6.1","6.6.2-jdk8","6.6.1-adoptopenjdk8","6.13.5-ubuntu-18.04-adoptopenjdk8","6.13.5-jdk8","6.6.3-ubuntu-18.04-adoptopenjdk8","6.6.10-jdk8","6.13.5","6.6.3-jdk8","6.6.10","6.13.5-adoptopenjdk8","6.6.3-adoptopenjdk8","6.6.10-ubuntu-18.04-adoptopenjdk8","6.13.5-ubuntu","6.6.3-ubuntu","6.6.10-ubuntu","6.6.3","6.6.10-adoptopenjdk8","6.13.6-ubuntu-18.04-adoptopenjdk8","6.13.6-ubuntu","6.6.4-jdk8","6.6.11","6.13.6-jdk8","6.6.4-adoptopenjdk8","6.6.11-adoptopenjdk8","6.13.6-adoptopenjdk8","6.6.11-jdk8","6.6.4-ubuntu-18.04-adoptopenjdk8","6.13.6","6.6.11-ubuntu","6.6.4","6.6.11-ubuntu-18.04-adoptopenjdk8","6.6.4-ubuntu","6.13.7-ubuntu-18.04-adoptopenjdk8","6.15.2-ubuntu","6.8.0-ubuntu","6.13.7-adoptopenjdk8","6.15.2-adoptopenjdk8","6.6.5-ubuntu-18.04-adoptopenjdk8","6.8.0-adoptopenjdk8","6.6.12-ubuntu-18.04-adoptopenjdk8","6.13.7-ubuntu","6.15.2","6.6.5-ubuntu","6.8.0-ubuntu-18.04-adoptopenjdk8","6.6.12-jdk8","6.13.7","6.15.2-jdk8","6.6.5","6.8.0-jdk8","6.6.12","6.13.7-jdk8","6.15.2-ubuntu-18.04-adoptopenjdk8","6.6.5-jdk8","6.8.0","6.6.12-ubuntu","6.6.5-adoptopenjdk8","6.6.12-adoptopenjdk8","6.13.0-jdk8","6.13.8-ubuntu","6.8.1","6.15.4-ubuntu","6.5.0-ubuntu","6.13.0-adoptopenjdk8","6.13.8","6.8.1-ubuntu-18.04-adoptopenjdk8","6.15.4-adoptopenjdk8","6.6.6-ubuntu","6.6.13-adoptopenjdk8","6.5.0-jdk8","6.13.0-ubuntu","6.13.8-jdk8","6.15.4","6.6.6-ubuntu-18.04-adoptopenjdk8","6.8.1-ubuntu","6.6.13","6.5.0-adoptopenjdk8","6.13.0","6.13.8-adoptopenjdk8","6.6.13-jdk8","6.8.1-jdk8","6.15.4-jdk8","6.6.6-jdk8","6.5.0","6.13.0-ubuntu-18.04-adoptopenjdk8","6.13.8-ubuntu-18.04-adoptopenjdk8","6.6.13-ubuntu-18.04-adoptopenjdk8","6.6.6","6.15.4-ubuntu-18.04-adoptopenjdk8","6.8.1-adoptopenjdk8","6.5.0-ubuntu-18.04-adoptopenjdk8","6.6.13-ubuntu","6.6.6-adoptopenjdk8","6.13.1-ubuntu","6.15.6-ubuntu-18.04-adoptopenjdk8","6.11.0-adoptopenjdk8","6.13.9-jdk8","6.1.0-ubuntu-18.04-adoptopenjdk8","6.5.1-ubuntu-18.04-adoptopenjdk8","6.3.1-jdk8","6.8.2-jdk8","6.13.1-jdk8","6.6.7-ubuntu","6.15.6-ubuntu","6.11.0-ubuntu-18.04-adoptopenjdk8","6.6.14-adoptopenjdk8","6.1.0-adoptopenjdk8","6.13.9","6.5.1-adoptopenjdk8","6.3.1","6.8.2-adoptopenjdk8","6.13.1-adoptopenjdk8","6.6.7-ubuntu-18.04-adoptopenjdk8","6.15.6-jdk8","6.6.14-ubuntu","6.11.0-ubuntu","6.13.9-ubuntu","6.1.0-ubuntu","6.5.1-ubuntu","6.3.1-ubuntu","6.8.2-ubuntu-18.04-adoptopenjdk8","6.13.1-ubuntu-18.04-adoptopenjdk8","6.6.7-adoptopenjdk8","6.15.6-adoptopenjdk8","6.6.14-jdk8","6.13.9-adoptopenjdk8","6.11.0-jdk8","6.1.0-jdk8","6.3.1-ubuntu-18.04-adoptopenjdk8","6.5.1","6.8.2","6.13.1","6.6.7-jdk8","6.15.6","6.6.14-ubuntu-18.04-adoptopenjdk8","6.13.9-ubuntu-18.04-adoptopenjdk8","6.1.0","6.11.0","6.3.1-adoptopenjdk8","6.5.1-jdk8","6.8.2-ubuntu","6.6.7","6.6.14","6.11.1-adoptopenjdk8","6.1.1-adoptopenjdk8","6.5.2-ubuntu","6.8.3-jdk8","6.13.10-ubuntu","6.6.8-jdk8","6.15.7-ubuntu-18.04-adoptopenjdk8","6.14.0-adoptopenjdk8","6.1.1-ubuntu-18.04-adoptopenjdk8","6.11.1-jdk8","6.8.3-ubuntu","6.6.15","6.15.7","6.14.0","6.1.1-ubuntu","6.3.2","6.5.2","6.13.10-ubuntu-18.04-adoptopenjdk8","6.6.8","6.3.2-ubuntu","6.13.10-jdk8","6.11.1-ubuntu-18.04-adoptopenjdk8","6.6.15-adoptopenjdk8","6.13.11-ubuntu-18.04-adoptopenjdk8","6.13.11-ubuntu","6.13.11-jdk8","6.13.11","6.13.11-adoptopenjdk8","6.13.12","6.13.12-jdk8","6.13.12-ubuntu-18.04-adoptopenjdk8","6.13.12-ubuntu","6.13.12-adoptopenjdk8","6.13.13-jdk8","6.13.13-ubuntu","6.13.13","6.13.13-ubuntu-18.04-adoptopenjdk8","6.13.13-adoptopenjdk8","6.13.15-ubuntu","6.13.15-adoptopenjdk8","6.13.15","6.13.15-jdk8","6.13.15-ubuntu-18.04-adoptopenjdk8","6.13.17","6.13.17-adoptopenjdk8","6.13.17-jdk8","6.13.17-ubuntu-18.04-adoptopenjdk8","6.13.17-ubuntu","6.13.18","6.13.18-ubuntu","6.13.18-jdk8","6.13.18-ubuntu-18.04-adoptopenjdk8","6.13.18-adoptopenjdk8","6.13.19-jdk8","6.13.19-ubuntu-18.04-adoptopenjdk8","6.13.19","6.13.19-adoptopenjdk8","6.13.19-ubuntu","6.13.2-adoptopenjdk8","6.13.2-jdk8","6.13.2","6.13.2-ubuntu","6.13.2-ubuntu-18.04-adoptopenjdk8","6.13.20-jdk8","6.13.20","7.13.0-m15-adoptopenjdk11","7.13.0-m15-ubuntu","7.13.0-m15-jdk11","7.13.0-m15","7.13.0-m14-jdk11","7.13.0-m14-ubuntu-18.04-adoptopenjdk11","7.13.0-m14-adoptopenjdk11","7.13.0-m14-ubuntu","7.13.0-m14","7.1.0-ubuntu","7.1.0-jdk11","7.1.0-ubuntu-18.04-adoptopenjdk11","7.1.0","7.1.0-adoptopenjdk11","7.1.1-ubuntu","7.1.1-adoptopenjdk11","7.1.1-ubuntu-18.04-adoptopenjdk11","7.1.1-jdk11","7.1.1","7.13.0-m13-adoptopenjdk11","7.13.0-m13","7.13.0-m13-ubuntu-18.04-adoptopenjdk11","7.13.0-m13-ubuntu","7.13.0-m13-jdk11","7.1.2-ubuntu-18.04-adoptopenjdk11","6.4.2-jdk8","6.7.3-adoptopenjdk8","6.12.3-jdk8","6.15.10","6.10.1","6.0.6-jdk8","6.4.2-adoptopenjdk8","6.7-jdk8","6.15.10-adoptopenjdk8","6.2.3","6.0.6-ubuntu-18.04-adoptopenjdk8","6.7-adoptopenjdk8","7.0.2-ubuntu","6-jdk8","6.2.3-jdk8","6.0.6-adoptopenjdk8","7.0.2-jdk8","6.7","6.12.4-jdk8","6","6.2.3-ubuntu","6.10.2-ubuntu","6.0.6","6.4-adoptopenjdk8","7.0.2","6.7-ubuntu-18.04-adoptopenjdk8","6.12-ubuntu","6.15-ubuntu","6.2.3-ubuntu-18.04-adoptopenjdk8","6.10.2-adoptopenjdk8","6.0.6-ubuntu","6.4","7.0.2-ubuntu-18.04-adoptopenjdk8","6.12.4-ubuntu","6.7.3-ubuntu","6.2.3-adoptopenjdk8","6.10.2","6.4-ubuntu","7.0.2-adoptopenjdk8","6.12-adoptopenjdk8","6.10.2-ubuntu-18.04-adoptopenjdk8","6.4.3","6.12.4-adoptopenjdk8","6.0-jdk8","6.4.3-ubuntu-18.04-adoptopenjdk8","6.10.2-jdk8","6.12.4","6.2.4-jdk8","6.4.3-jdk8","6.0-ubuntu","6.12.4-ubuntu-18.04-adoptopenjdk8","7.0.3-adoptopenjdk8","6.2.4","6.0","6.4.3-adoptopenjdk8","6.12","7.0.3-jdk8","6.2.4-ubuntu","6.0.7-jdk8","6.10-adoptopenjdk8","6.4-ubuntu-18.04-adoptopenjdk8","6.12-jdk8","7.0.3-ubuntu-18.04-adoptopenjdk8","6.10.3","6.0.7-ubuntu-18.04-adoptopenjdk8","6.2-jdk8","6.4-jdk8","6.12-ubuntu-18.04-adoptopenjdk8","6.0-adoptopenjdk8","6.2","6.10.3-ubuntu","7.0.3","6.4.3-ubuntu","6.0-ubuntu-18.04-adoptopenjdk8","6.2-ubuntu-18.04-adoptopenjdk8","6.10.3-jdk8","7.0.3-ubuntu","6.0.7-adoptopenjdk8","6.2-adoptopenjdk8","6.10.3-ubuntu-18.04-adoptopenjdk8","6.0.7","6.10-ubuntu-18.04-adoptopenjdk8","6.2.4-ubuntu-18.04-adoptopenjdk8","6.0.7-ubuntu","6.10","6.2.4-adoptopenjdk8","7.0.4-jdk8","6.10.3-adoptopenjdk8","6.2-ubuntu","7.0.4","6.10-ubuntu","7.0.4-ubuntu-18.04-adoptopenjdk8","6.10-jdk8","7.0.4-adoptopenjdk8","7.0.4-ubuntu","7.0.5-adoptopenjdk8","7.0-adoptopenjdk8","7.0.5-ubuntu","7.0-ubuntu","7.0.5-jdk8","7.0.5-ubuntu-18.04-adoptopenjdk8","7.0","7.0-ubuntu-18.04-adoptopenjdk8","7.0-jdk8","7.0.5","7.13.0-m12-jdk11","7.13.0-m12-ubuntu-18.04-adoptopenjdk11","7.13.0-m12","7.13.0-m12-ubuntu","7.13.0-m12-adoptopenjdk11","6.14.1-adoptopenjdk8","6.14.1-ubuntu-18.04-adoptopenjdk8","6.14.1-ubuntu","6.8-ubuntu","6.14.1","6.8-adoptopenjdk8","6.14.1-jdk8","6.8.5-jdk8","6.8.5","6.8.5-ubuntu","6.8-ubuntu-18.04-adoptopenjdk8","6.1.2-adoptopenjdk8","6.14.2-ubuntu","6.8-jdk8","6.1.2-ubuntu","6.14.2-adoptopenjdk8","6.8","6.1.2","6.14.2","6.8.5-ubuntu-18.04-adoptopenjdk8","6.1.2-ubuntu-18.04-adoptopenjdk8","6.14.2-jdk8","6.8.5-adoptopenjdk8","6.1.2-jdk8","6.14.2-ubuntu-18.04-adoptopenjdk8","6.3.3-adoptopenjdk8","6.1.3-ubuntu","6.14-adoptopenjdk8","6.3.3-jdk8","6.1.3-ubuntu-18.04-adoptopenjdk8","6.3.3-ubuntu-18.04-adoptopenjdk8","6.14","6.1.3-jdk8","6.3.3-ubuntu","6.14-ubuntu-18.04-adoptopenjdk8","6.1.3","6.9.0-ubuntu-18.04-adoptopenjdk8","6.3.3","6.14.3-ubuntu-18.04-adoptopenjdk8","6.1.3-adoptopenjdk8","6.9.0-adoptopenjdk8","6.0.1-adoptopenjdk8","6.14-ubuntu","6.9.0-jdk8","6.0.1-ubuntu","6.14-jdk8","6.9.0","6.0.1","6.14.3-ubuntu","6.9.0-ubuntu","6.3.4-jdk8","6.0.1-ubuntu-18.04-adoptopenjdk8","6.1.4-ubuntu-18.04-adoptopenjdk8","6.14.3","6.3-adoptopenjdk8","6.6.16-ubuntu-18.04-adoptopenjdk8","6.6.9-jdk8","6.1-jdk8","6.0.1-jdk8","6.14.3-adoptopenjdk8","6.3.4","6.6.9-ubuntu-18.04-adoptopenjdk8","6.1.4","6.6.16-ubuntu","6.14.3-jdk8","6.3-ubuntu-18.04-adoptopenjdk8","6.6.9","6.1-adoptopenjdk8","6.6.16","6.9.1-adoptopenjdk8","6.6.9-adoptopenjdk8","6.1.4-ubuntu","6.3-jdk8","6.6.16-adoptopenjdk8","6.9.1-ubuntu","6.0.2-adoptopenjdk8","6.6.9-ubuntu","6.3.4-ubuntu","6.6.16-jdk8","6.1-ubuntu","6.0.2","6.9.1-ubuntu-18.04-adoptopenjdk8","6.3","6.0.2-ubuntu","6.1.4-jdk8","6.9.1-jdk8","6.3-ubuntu","6.0.2-jdk8","6.1-ubuntu-18.04-adoptopenjdk8","6.9.1","6.3.4-ubuntu-18.04-adoptopenjdk8","6.7.0-adoptopenjdk8","6.0.2-ubuntu-18.04-adoptopenjdk8","6.1.4-adoptopenjdk8","6.6","6.15.1-jdk8","6.3.4-adoptopenjdk8","6.7.0","6.1","6.6.17-ubuntu","6.15.1-adoptopenjdk8","6.7.0-ubuntu","6.6-jdk8","6.9.3-jdk8","6.15.1-ubuntu","6.7.0-jdk8","6.0.3-ubuntu-18.04-adoptopenjdk8","6.6.17","6.9.3","6.15.1-ubuntu-18.04-adoptopenjdk8","6.7.0-ubuntu-18.04-adoptopenjdk8","6.0.3","6.6.17-ubuntu-18.04-adoptopenjdk8","6.9-adoptopenjdk8","6.15.1","6.0.3-adoptopenjdk8","6.9-jdk8","6.6-ubuntu","6.0.3-jdk8","6.6.17-jdk8","6.9.3-adoptopenjdk8","6.0.3-ubuntu","6.4.0-adoptopenjdk8","6.7.1-jdk8","6.10.0-ubuntu-18.04-adoptopenjdk8","6.6-adoptopenjdk8","6.9-ubuntu-18.04-adoptopenjdk8","6.4.0","6.7.1-adoptopenjdk8","6.10.0-jdk8","6.6.17-adoptopenjdk8","6.9-ubuntu","6.4.0-ubuntu-18.04-adoptopenjdk8","6.7.1-ubuntu","6.15.10-ubuntu","6.10.0-adoptopenjdk8","6.9.3-ubuntu-18.04-adoptopenjdk8","6.6-ubuntu-18.04-adoptopenjdk8","6.4.0-ubuntu","6.7.1","6.15","6.10.0-ubuntu","6.9.3-ubuntu","6.0.4-jdk8","6.4.0-jdk8","6.7.1-ubuntu-18.04-adoptopenjdk8","6-adoptopenjdk8","6.10.0","6.9","6.0.4-adoptopenjdk8","6.0.4-ubuntu","6.15-jdk8","6.0.4-ubuntu-18.04-adoptopenjdk8","6.15.10-ubuntu-18.04-adoptopenjdk8","6.4.1-ubuntu","6.0.4","7.1-ubuntu-18.04-adoptopenjdk11","6.7.2-ubuntu-18.04-adoptopenjdk8","6.4.1-ubuntu-18.04-adoptopenjdk8","6-ubuntu-18.04-adoptopenjdk8","6.7.2-ubuntu","7.1.2","6.10.1-ubuntu-18.04-adoptopenjdk8","6.4.1-adoptopenjdk8","6.15.10-jdk8","6.7.2","6.10.1-ubuntu","7.1","6.4.1-jdk8","6.15-ubuntu-18.04-adoptopenjdk8","6.7.2-jdk8","6.10.1-adoptopenjdk8","6.0.5","7.1.2-ubuntu","7.0.1-jdk8","6.4.1","6.7.2-adoptopenjdk8","6.10.1-jdk8","6.0.5-adoptopenjdk8","7.1-ubuntu","7.0.1","6.0.5-ubuntu-18.04-adoptopenjdk8","7.1.2-jdk11","7.0.1-adoptopenjdk8","6-ubuntu","6.0.5-jdk8","7.0.1-ubuntu","6.15-adoptopenjdk8","6.4.2-ubuntu-18.04-adoptopenjdk8","6.0.5-ubuntu","7.1.2-adoptopenjdk11","7.0.1-ubuntu-18.04-adoptopenjdk8","6.7.3-ubuntu-18.04-adoptopenjdk8","7.1-adoptopenjdk11","7.1-jdk11","6.4.2","6.4.2-ubuntu","6.7.3","6.7.3-jdk8","6.7-ubuntu","6.13","6.13.21-adoptopenjdk8","6.13.21-ubuntu-18.04-adoptopenjdk8","6.13-ubuntu","6.13.21-jdk8","6.13-adoptopenjdk8","6.13-ubuntu-18.04-adoptopenjdk8","6.13.21-ubuntu","6.13-jdk8","6.13.21","6.12.2-jdk8","6.12.3-ubuntu-18.04-adoptopenjdk8","6.12.3-adoptopenjdk8","6.12.3","6.12.3-ubuntu","7.13.0-m09-jdk11","7.13.0-m09","7.13.0-m09-adoptopenjdk11","7.13.0-m09-ubuntu-18.04-adoptopenjdk11","7.13.0-m09-ubuntu","6.11.2-ubuntu","6.11-adoptopenjdk8","6.11.2-adoptopenjdk8","6.11.2-ubuntu-18.04-adoptopenjdk8","6.11.2","6.11-ubuntu-18.04-adoptopenjdk8","6.11.2-jdk8","6.11-jdk8","6.11","6.11-ubuntu","6.15.8-ubuntu-18.04-adoptopenjdk8","6.15.8-ubuntu","6.15.8-adoptopenjdk8","6.15.8","6.15.8-jdk8","6.12.0-jdk8","6.5.3-ubuntu","6.12.0","6.5.3-jdk8","6.5","6.15.9","6.5-ubuntu","6.15.9-ubuntu","6.5-jdk8","6.15.9-jdk8","6.5.3-adoptopenjdk8","6.15.9-adoptopenjdk8","6.5.3-ubuntu-18.04-adoptopenjdk8","6.15.9-ubuntu-18.04-adoptopenjdk8","6.5-ubuntu-18.04-adoptopenjdk8","6.5-adoptopenjdk8","6.12.0-ubuntu","6.5.3","6.12.0-ubuntu-18.04-adoptopenjdk8","6.2.0","6.12.0-adoptopenjdk8","6.2.0-jdk8","6.2.0-adoptopenjdk8","6.2.0-ubuntu-18.04-adoptopenjdk8","6.12.1-ubuntu-18.04-adoptopenjdk8","6.2.0-ubuntu","6.12.1","6.12.1-ubuntu","6.12.1-adoptopenjdk8","6.2.1-jdk8","6.12.1-jdk8","6.2.1-adoptopenjdk8","6.2.1-ubuntu","6.2.1","6.2.1-ubuntu-18.04-adoptopenjdk8","6.12.2-ubuntu","6.12.2","6.12.2-adoptopenjdk8","6.2.2-ubuntu","6.12.2-ubuntu-18.04-adoptopenjdk8","6.2.2-ubuntu-18.04-adoptopenjdk8","6.2.2-adoptopenjdk8","6.2.2","6.2.2-jdk8","7.13.0-m08","7.13.0-m08-adoptopenjdk11","7.13.0-m08-ubuntu-18.04-adoptopenjdk11","7.13.0-m08-jdk11","7.13.0-m08-ubuntu","6.15.2-alpine-adoptopenjdk8","6.15.2-alpine","6.13.0-alpine-adoptopenjdk8","6.13.0-alpine","6.15.4-alpine","6.15.4-alpine-adoptopenjdk8","6.13.1-alpine","6.13.1-alpine-adoptopenjdk8","6.15.6-alpine","6.15.6-alpine-adoptopenjdk8","6.13.10-alpine","6.13.10-alpine-adoptopenjdk8","6.15.7-alpine","6.15.7-alpine-adoptopenjdk8","6.13.11-alpine","6.0.1-alpine","6.15.8-alpine-adoptopenjdk8","6.13.11-alpine-adoptopenjdk8","6.0.1-alpine-adoptopenjdk8","6.15.8-alpine","6.6.9-alpine","6.13.12-alpine-adoptopenjdk8","6.13.3-alpine","6.0.2-alpine","6.12.0-alpine-adoptopenjdk8","6.15.9-alpine-adoptopenjdk8","6.13.12-alpine","6.7.0-alpine-adoptopenjdk8","6.6.0-alpine","6.13.3-alpine-adoptopenjdk8","6.0.2-alpine-adoptopenjdk8","6.12.0-alpine","6.15.9-alpine","6.6.0-alpine-adoptopenjdk8","6.7.0-alpine","6.13.13-alpine","6.0.3-alpine-adoptopenjdk8","6.13.4-alpine-adoptopenjdk8","6.2.0-alpine","6.12.1-alpine-adoptopenjdk8","6.6.2-alpine-adoptopenjdk8","6.6.1-alpine","6.7.1-alpine","6.13.13-alpine-adoptopenjdk8","6.0.3-alpine","6.2.0-alpine-adoptopenjdk8","6.12.1-alpine","6.13.4-alpine","6.6.2-alpine","6.6.1-alpine-adoptopenjdk8","6.7.1-alpine-adoptopenjdk8","6.10.0-alpine-adoptopenjdk8","6.13.15-alpine","6.0.4-alpine","6.13.5-alpine","6.2.1-alpine","6.6.3-alpine","6.12.2-alpine-adoptopenjdk8","6.15.1-alpine-adoptopenjdk8","6.7.2-alpine-adoptopenjdk8","6.6.10-alpine-adoptopenjdk8","6.10.0-alpine","6.13.15-alpine-adoptopenjdk8","6.0.4-alpine-adoptopenjdk8","6.13.5-alpine-adoptopenjdk8","6.2.1-alpine-adoptopenjdk8","6.6.3-alpine-adoptopenjdk8","6.12.2-alpine","6.15.1-alpine","6.7.2-alpine","6.6.10-alpine","7.13.0-m07-jdk11","7.13.0-m07-ubuntu-18.04-adoptopenjdk11","7.13.0-m07-ubuntu","7.13.0-m07-adoptopenjdk11","7.13.0-m07","6.6.4-alpine","6.6.4-alpine-adoptopenjdk8","6.6.5-alpine-adoptopenjdk8","6.6.5-alpine","6.6.6-alpine","6.6.6-alpine-adoptopenjdk8","6.6.7-alpine-adoptopenjdk8","6.6.7-alpine","6.6.8-alpine","6.6.8-alpine-adoptopenjdk8","6.6.9-alpine-adoptopenjdk8","6.4.0-alpine","6.4.0-alpine-adoptopenjdk8","6.4.1-alpine","6.4.1-alpine-adoptopenjdk8","7.13.0-m06-ubuntu-18.04-adoptopenjdk11","7.13.0-m06-adoptopenjdk11","7.13.0-m06","7.13.0-m06-ubuntu","7.13.0-m06-jdk11","6.7-alpine-adoptopenjdk8","6.7.3-alpine-adoptopenjdk8","6.7.3-alpine","6.10.1-alpine","6.7-alpine","6.2.2-alpine","6.10.1-alpine-adoptopenjdk8","6.2.2-alpine-adoptopenjdk8","6.4.2-alpine","6-alpine-adoptopenjdk8","6.4.2-alpine-adoptopenjdk8","6.10.2-alpine","6.15.10-alpine","6.13.17-alpine","6.2.3-alpine-adoptopenjdk8","6.13.6-alpine-adoptopenjdk8","6.12.3-alpine","6.10.2-alpine-adoptopenjdk8","6.15-alpine","6.13.17-alpine-adoptopenjdk8","6.8.0-alpine","6.13.6-alpine","6.2.3-alpine","6.4.3-alpine","6.12.3-alpine-adoptopenjdk8","6.8.0-alpine-adoptopenjdk8","6.15-alpine-adoptopenjdk8","6.6.11-alpine-adoptopenjdk8","6.4-alpine-adoptopenjdk8","6-alpine","6.6.11-alpine","6.10.3-alpine","6.4-alpine","6.13.18-alpine-adoptopenjdk8","6.15.10-alpine-adoptopenjdk8","6.12-alpine","6.2-alpine","6.13.7-alpine-adoptopenjdk8","6.10-alpine","6.4.3-alpine-adoptopenjdk8","6.8.1-alpine-adoptopenjdk8","6.13.18-alpine","6.12-alpine-adoptopenjdk8","6.13.7-alpine","6.10.3-alpine-adoptopenjdk8","6.2.4-alpine","6.8.1-alpine","6.6.12-alpine-adoptopenjdk8","6.12.4-alpine-adoptopenjdk8","6.10-alpine-adoptopenjdk8","6.2-alpine-adoptopenjdk8","6.6.12-alpine","6.12.4-alpine","6.13.19-alpine-adoptopenjdk8","6.2.4-alpine-adoptopenjdk8","6.13.8-alpine","6.8.2-alpine-adoptopenjdk8","6.13.19-alpine","6.13.8-alpine-adoptopenjdk8","6.5.0-alpine-adoptopenjdk8","6.8.2-alpine","6.6.13-alpine","6.5.0-alpine","6.6.13-alpine-adoptopenjdk8","6.13.2-alpine","6.11.0-alpine-adoptopenjdk8","6.13.9-alpine-adoptopenjdk8","6.8.3-alpine-adoptopenjdk8","6.13.2-alpine-adoptopenjdk8","6.11.0-alpine","6.3.1-alpine","6.13.9-alpine","6.5.1-alpine","6.8.3-alpine","6.6.14-alpine","6.3.1-alpine-adoptopenjdk8","6.6.14-alpine-adoptopenjdk8","6.5.1-alpine-adoptopenjdk8","6.13.20-alpine","6.11.1-alpine","6.14.0-alpine","6.8-alpine-adoptopenjdk8","6.11.1-alpine-adoptopenjdk8","6.13.20-alpine-adoptopenjdk8","6.3.2-alpine-adoptopenjdk8","6.14.0-alpine-adoptopenjdk8","6.6.15-alpine","6.5.2-alpine-adoptopenjdk8","6.8.5-alpine","6.3.2-alpine","6.6.15-alpine-adoptopenjdk8","6.8.5-alpine-adoptopenjdk8","6.5.2-alpine","6.13.21-alpine-adoptopenjdk8","6.11.2-alpine","6.8-alpine","6.14.1-alpine-adoptopenjdk8","6.13.21-alpine","6.3.3-alpine-adoptopenjdk8","6.11-alpine","6.6.16-alpine","6.14.1-alpine","6.5-alpine","6.13-alpine","6.3.3-alpine","6.11.2-alpine-adoptopenjdk8","6.6.16-alpine-adoptopenjdk8","6.5-alpine-adoptopenjdk8","6.13-alpine-adoptopenjdk8","6.11-alpine-adoptopenjdk8","6.5.3-alpine","6.14.2-alpine","6.3-alpine","6.5.3-alpine-adoptopenjdk8","6.6-alpine-adoptopenjdk8","6.9.0-alpine-adoptopenjdk8","6.14.2-alpine-adoptopenjdk8","6.3-alpine-adoptopenjdk8","6.6.17-alpine","6.9.0-alpine","6.3.4-alpine-adoptopenjdk8","6.6-alpine","6.6.17-alpine-adoptopenjdk8","6.3.4-alpine","6.14.3-alpine","6.9.1-alpine","6.14-alpine-adoptopenjdk8","6.9.1-alpine-adoptopenjdk8","6.1-alpine","6.14.3-alpine-adoptopenjdk8","6.14-alpine","6.9-alpine","6.9.3-alpine-adoptopenjdk8","6.9.3-alpine","6.9-alpine-adoptopenjdk8","6.1.3-alpine","6.1.4-alpine","6.1.4-alpine-adoptopenjdk8","6.1-alpine-adoptopenjdk8","6.1.3-alpine-adoptopenjdk8","6.1.2-alpine-adoptopenjdk8","6.1.2-alpine","6.0.5-alpine-adoptopenjdk8","6.0.5-alpine","6.0.6-alpine-adoptopenjdk8","6.0.6-alpine","7.13.0-m04-jdk11","7.13.0-m04","7.13.0-m04-ubuntu-18.04-adoptopenjdk11","7.13.0-m04-ubuntu","7.13.0-m04-adoptopenjdk11","7.13.0-m03-ubuntu-18.04-adoptopenjdk11","7.13.0-m03","7.13.0-m03-ubuntu","7.13.0-m03-jdk11","7.13.0-m03-adoptopenjdk11","7.13.0-m02-jdk11","7.13.0-m02-adoptopenjdk11","7.13.0-m02-ubuntu","7.13.0-m02","7.13.0-m02-ubuntu-18.04-adoptopenjdk11","6.0.7-alpine","6.0-alpine","6.0-alpine-adoptopenjdk8","6.0.7-alpine-adoptopenjdk8","6.1.0-alpine","6.1.0-alpine-adoptopenjdk8","6.1.1-alpine","6.1.1-alpine-adoptopenjdk8"];!function(u){u.JIRA="jira",u.CONFLUENCE="confluence",u.BITBUCKET="bitbucket",u.BAMBOO="bamboo"}(O||(O={}));const{P:q,activeProfiles:$}=r(s(process.argv)).parseSync(),I=q||$||void 0;class AMPS{static maven;static stop(){AMPS.maven&&AMPS.maven.kill(0)}static async build(u){return new Promise(((t,d)=>{if(AMPS.maven){AMPS.maven.kill(0)||d(new Error("Failed to terminate existing Maven process"))}AMPS.maven=e("mvn",["package",...u],{cwd:b(),stdio:"inherit"}),AMPS.maven.on("exit",(u=>{AMPS.maven=null,0===u||130===u?t():d(new Error(`Maven exited with code ${u}`))}))}))}static isAtlassianPlugin=()=>{try{return AMPS.getNodes("//*[local-name()='packaging']").some((u=>"atlassian-plugin"===u.textContent))}catch(u){return!1}};static getApplicationVersion(){const u=I?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${I}']/..//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']`,!0):AMPS.getNodes("//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']",!0);if(u){const t=u.parentNode;if(t){const{plugin:u}=AMPS.toObject(t),d=u?.configuration?.productVersion;return d?this.doPropertyReplacement(d):void 0}}}static getApplication(){const u=AMPS.getApplications();if(1===u.length)return u[0];if(I){const u=AMPS.getApplications(I);if(1===u.length)return u[0]}return null}static getApplications(u){const t=new Set;return(u?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${u}']/..//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']`):AMPS.getNodes("//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']")).forEach((u=>{const d=u.parentNode;if(d){const{plugin:u}=AMPS.toObject(d);u?.artifactId?.includes(O.JIRA)?t.add(O.JIRA):u?.artifactId?.includes(O.CONFLUENCE)?t.add(O.CONFLUENCE):u?.artifactId?.includes(O.BAMBOO)?t.add(O.BAMBOO):u?.artifactId?.includes(O.BITBUCKET)&&t.add(O.BITBUCKET)}})),Array.from(t)}static doPropertyReplacement(u){let t=u;const d=I?AMPS.getProperties(I):{};Object.entries(d).forEach((([u,d])=>{t=t.replaceAll(`\${${u}}`,d)}));const n=AMPS.getProperties();return Object.entries(n).forEach((([u,d])=>{t=t.replaceAll(`\${${u}}`,d)})),t}static getProperties(u){const t={};return(u?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${u}']/..//*[local-name()='properties']`):AMPS.getNodes("//*[local-name()='properties']")).forEach((u=>{const{properties:d}=AMPS.toObject(u);Object.entries(d).forEach((([u,d])=>t[u]=d))})),t}static getNodes(u,t){if(k("./pom.xml")){const d=j("./pom.xml","utf8"),o=(new n).parseFromString(d,"text/xml"),e=t?i.select(u,o,!0):i.select(u,o,!1);return Array.isArray(e)||t?e:[]}return[]}static toObject(u){try{return(new p).parse((new o).serializeToString(u))}catch(u){return null}}}const U="AAACzg0ODAoPeNp9VO9v2jAQ/Z6/wtK+IYWGsEKHFGmQmJau/GgIm9iYJhMOYprYke1A4a+fSchGKtqPPvvevXv3zp/6gqLHLEb2HbKsTvNzp9lC98MA2ZbdNKYgdiAGntPDQ2z688HcdH/aM7P5o2kZTzQEJiE4pDAiCTgBngaD0b0RCr5f1S9uHfcUWXSQBzuIeQrCCDlb10mo6A4cJTLQSVlIlzFUggpI8ickMbAVEbI+ypIliPG6R5Il5z4kXEF3A0xJp1Gywa8pFQePKHAmDdt6+A9cJVQEK5yWmhMV8HGZLRWkwrF8PZMgpGPfGh7IUNBUUc6cAKRCcVEYrblAaZxtKEOrsqj8V/US85zxXd+fUGwD70ickRwyf7ARACziqUYo+8Irmt/jUYD9iT+YYmNIKFPACAuvyHIaQEUSHYgz0G8rorgC8rp5qvaEZVp3pt0u8sve3TiTCsSIr0A6llGr1VwfdwPsmb25PjjbVwq2EcZcm6nS6DKX+I3iT1yP/Cy42TBe4FAK0WhZVtu6azYbZeZlB0U2wrpnkQoqq40Uyst67RqB9zU8k64olYeqKnGmNCzWiseOUoKwhLLoK1ExkZISVg95cr3ZN/YqdueSYW649/mdrfJAZOQM3b3b96DRuhVk3261kkFvexwe41UQtJN12u5Gz6GcPT7Pn71H70t69CPcbx/a9rcj3rDuwlk4xprKCA5VN+oJjsaB2R/75sQfezM3GIxH5myKT6PN/QErtDwgFQE6E9VDCLUZtN8F30Ko0K9IqXTRubnZ8HpFlZtzAyYUGb/ryOOIcYVWVCpBl5kCjUwlUhyF2mY80WaoXxdzEhOWe2YsNoRRWWxMt6xX/hH6P5uxF8b3rLJIlz1LpQW95pQPvqfLq0kmwohIeLs2l9PMzfQ48LvvWTbfMY1AXDg9KJDLCV2C9HUMH+CaJfOfudi/v0kIGVswLAIUEMQ9X77gqGBdfH0HIzBaV8NadPUCFBn+RiUA4D+IqVQpTTouLVY66aCGX02121",toAbsolutePath=u=>{const[,t]=process.argv,d=m(t),n=d.substring(0,d.indexOf("dcdx")+4);return l(n,u.replaceAll("../",""))},_={name:"shared",driver:"bridge"};let N=class Base extends S{options;sequelize=null;constructor(u){super(),this.options=u}async run(u,t){try{if(!this.sequelize)throw new Error("Database connection does not exist");await this.sequelize.query(u,{logging:t})}catch(t){console.error("An error occurred while trying to run the following SQL query:",u,t),d()}return null}async start(u=this.options.clean){console.log(`Starting instance of ${this.name} ⏳`),u&&await this.down(),await this.up(),this.emit(`${this.name}:up`);if(await this.waitUntilReady()){if(console.log(`Database is ready and accepting connections on localhost:${this.options.port} 🗄️`),await this.onDatabaseReady(),this.emit("db:ready"),this.options.logging){const u=await this.getServiceState();u&&await this.showDockerLogs(u.name)}}else console.log(`Failed to start database ${this.name} ⛔`),d(0)}async stop(u=this.options.prune){if(u)await this.down();else{const u=v(this.getDockerComposeConfig());await h({cwd:b(),configAsString:u,log:!0})}this.emit("db:stopped")}async onDatabaseReady(){}getDockerComposeConfig(){return{version:"3.8",services:{db:this.getService()},networks:{shared:_}}}async up(){const u=v(this.getDockerComposeConfig());return C({cwd:b(),configAsString:u,log:!0})}async down(){const u=v(this.getDockerComposeConfig());return g({cwd:b(),configAsString:u,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async waitUntilReady(){try{const u="mssql"===this.name?"master":this.options.database;return this.sequelize=new P(u,this.options.username,this.options.password,{host:"localhost",port:this.options.port,dialect:this.name.replace("postgresql","postgres"),retry:{max:30,match:[D,x,T,R,M],backoffBase:1e3,backoffExponent:1},logging:!1}),this.sequelize.authenticate().then((()=>!0)).catch((u=>(console.log(u),!1)))}catch(u){return!1}}async getServiceState(){const u=v(this.getDockerComposeConfig());return(await w({configAsString:u,log:!1,commandOptions:["--all"]})).data.services.find((u=>u.name.includes(this.name)))}async showDockerLogs(u){return new Promise(((t,d)=>{e("docker",["logs","-f","-n","5000",u],{cwd:b(),stdio:"inherit"}).on("exit",(u=>0===u?t():d(new Error(`Docker exited with code ${u}`))))}))}};const B={port:1433,database:"dcdx",username:"sa",password:"DataCenterDX!",edition:"Developer",version:"2022"};class MSSQL extends N{name="mssql";driver="com.microsoft.sqlserver.jdbc.SQLServerDriver";options=B;version="2022";get url(){return`jdbc:sqlserver://db:${this.options.port};databaseName=${this.options.database};trustServerCertificate=true`}constructor(u=B){super({...B,...u})}async onDatabaseReady(){await this.run(`CREATE DATABASE ${this.options.database}`),await this.run(`ALTER DATABASE ${this.options.database} COLLATE SQL_Latin1_General_CP1_CS_AS`),await this.run(`ALTER DATABASE ${this.options.database} SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE;`)}getService=()=>({image:`mcr.microsoft.com/mssql/server:${this.version}-latest`,ports:[`${this.options.port||1433}:1433`],environment:{ACCEPT_EULA:"y",MSSQL_SA_PASSWORD:this.options.password||"dcdx",MSSQL_PID:this.options.edition},networks:{shared:{aliases:["db","database"]}}})}const Q={port:3306,database:"dcdx",username:"dcdx",password:"dcdx",version:"8.0"};class MySQL extends N{name="mysql";driver="com.mysql.jdbc.Driver";options=Q;version="8.0";get url(){return`jdbc:mysql://db:${this.options.port}/${this.options.database}?sessionVariables=transaction_isolation='READ-COMMITTED'`}constructor(u=Q){super({...Q,...u})}async onDatabaseReady(){await this.run(`ALTER DATABASE ${this.options.database} CHARACTER SET 'utf8mb4' COLLATE utf8mb4_bin`)}getService=()=>({image:`mysql:${this.version}`,ports:[`${this.options.port||3306}:3306`],environment:{MYSQL_ROOT_PASSWORD:this.options.password||"dcdx",MYSQL_USER:this.options.username||"dcdx",MYSQL_PASSWORD:this.options.password||"dcdx",MYSQL_DATABASE:this.options.database||"dcdx"},command:["--log_bin_trust_function_creators=1"],networks:{shared:{aliases:["db","database"]}}})}const V={version:"15",database:"dcdx",port:5432,username:"dcdx",password:"dcdx"};class Postgres extends N{name="postgresql";driver="org.postgresql.Driver";options=V;version="15";get url(){return`jdbc:postgresql://db:${this.options.port}/${this.options.database}`}constructor(u=V){super({...V,...u})}getService=()=>({image:`postgres:${this.version}`,ports:[`${this.options.port||5432}:5432`],environment:{POSTGRES_USER:this.options.username||"dcdx",POSTGRES_PASSWORD:this.options.password||"dcdx",POSTGRES_DB:this.options.database||"dcdx",POSTGRES_HOST_AUTH_METHOD:"md5",POSTGRES_INITDB_ARGS:"--encoding=UTF-8 --lc-collate=C --lc-ctype=C"},networks:{shared:{aliases:["db","database"]}}})}const F=l(y(),".dcdx");class Base extends S{options;constructor(u){super(),this.options=u}get baseUrl(){let u="http://localhost";return this.options.port&&(u+=`:${this.options.port}`),this.options.contextPath?`${u}/${this.options.contextPath}`:u}getDatabaseEngine(u){switch(u){case"postgresql":return new Postgres;case"mssql":return new MSSQL;case"mysql":return new MySQL}}async start(){this.options.clean&&await this.down(),await this.build(this.options.version),await this.database.start(this.options.clean),await this.up()}async stop(){if(await this.database.stop(this.options.prune),this.options.prune)await this.down();else{const u=v(this.getDockerComposeConfig());await h({cwd:b(),configAsString:u,log:!0})}this.emit(`${this.name}:stopped`)}async reset(){await this.database.stop(!0),await this.down()}async cp(u){const t=await this.getServiceState();if(t&&t.state.toLowerCase().startsWith("up")){const t=this.getDockerComposeConfig(),d=v(t);await A("cp",[u,`${this.name}:/opt/quickreload/`],{cwd:b(),configAsString:d,log:!1})}}async isApplicationReady(){try{const u=await c.get(`${this.baseUrl}/status`,{validateStatus:()=>!0}).catch((()=>null));if(u&&200===u.status){const{data:t}=u;if("FIRST_RUN"===t.state)return console.log(`The application ${this.name} is ready on ${this.baseUrl} 🎉`),!0}return!1}catch(u){return!1}}getDockerComposeConfig(){return{version:"3.8",services:{[this.name]:this.getService()},networks:{shared:_}}}async up(){const u=this.getDockerComposeConfig(),t=v(u);await f({cwd:b(),configAsString:t,log:!0}),this.emit(`${this.name}:up`);await this.waitUntilReady()?(this.emit(`${this.name}:ready`),await this.tailApplicationLogs()):console.log(`Failed to start ${this.name} ⛔`),d(0)}async down(){const u=v(this.getDockerComposeConfig());await g({cwd:b(),configAsString:u,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async getServiceState(){const u=v(this.getDockerComposeConfig());return(await w({configAsString:u,log:!1,commandOptions:["--all"]})).data.services.find((u=>u.name.includes(this.name)))}async waitUntilReady(u=0){console.log(`Waiting for ${this.name} to become available... ${u}s`);const t=await this.getServiceState();return!!(t&&t.state.toLowerCase().startsWith("up")&&await this.isApplicationReady())||(u>=300?(console.error(`A timeout occurred while waiting for ${this.name} to become available ⛔`),t&&await this.showDockerLogs(t.name),!1):(await new Promise((u=>setTimeout(u,1e3))),this.waitUntilReady(u+1)))}getDockerRepositoryUrl(){return`https://bitbucket.org/atlassian-docker/docker-${"jira"===this.name?"atlassian-jira":"bamboo"===this.name?`${this.name}-server`:`atlassian-${this.name}-server`}.git`}async build(u){const t=this.getDockerRepositoryUrl(),d=l(F,this.name,"source");k(d)?await E({baseDir:d}).pull({"--recurse-submodule":null}):(a(l(F,this.name),{recursive:!0}),await E().clone(t,d,{"--recurse-submodule":null})),await new Promise(((t,n)=>{e("docker",["build","-t",`dcdx/${this.name}:${u}`,"--build-arg",`${this.name.toUpperCase()}_VERSION=${u}`,"."],{cwd:d,stdio:"inherit"}).on("exit",(u=>0===u?t():n(new Error(`Docker exited with code ${u}`))))}))}async tailApplicationLogs(){const u=await this.getServiceState();u&&u.state.toLowerCase().startsWith("up")&&await this.showApplicationLogs(u.name).catch((()=>null))}async showDockerLogs(u){return new Promise(((t,d)=>{e("docker",["logs","-f","-n","5000",u],{cwd:b(),stdio:"inherit"}).on("exit",(u=>0===u?t():d(new Error(`Docker exited with code ${u}`))))}))}async showApplicationLogs(u){return new Promise(((t,d)=>{e("docker",["exec","-i",u,"tail","-F","-n","5000",this.logFilePath],{cwd:b(),stdio:"inherit"}).on("exit",(u=>0===u?t():d(new Error(`Docker exited with code ${u}`))))}))}}class Confluence extends Base{name=O.CONFLUENCE;database;logFilePath="/var/atlassian/application-data/confluence/logs/atlassian-confluence.log";constructor(u){super(u),this.database=this.getDatabaseEngine(u.database)}getService(){const u=this.getVolumes(),t=this.getEnvironmentVariables();return{build:{context:toAbsolutePath("../../assets"),dockerfile_inline:`\nFROM dcdx/${this.name}:${this.options.version}\nCOPY ./mysql-connector-j-8.3.0.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/mysql-connector-j-8.3.0.jar\nCOPY ./quickreload-5.0.2.jar /opt/atlassian/confluence/confluence/WEB-INF/atlassian-bundled-plugins/quickreload-5.0.2.jar\nRUN echo "/opt/quickreload" > /var/atlassian/application-data/confluence/quickreload.properties; mkdir -p /opt/quickreload; chown -R confluence:confluence /opt/quickreload;\n\nRUN chown -R confluence:confluence /opt/atlassian/confluence`},ports:[`${this.options.port||80}:8090`,...this.options.debug?["5005:5005"]:[]],environment:Object.keys(t).length>0?t:void 0,volumes:u.length>0?u:void 0,networks:["shared"]}}getEnvironmentVariables(){return{...this.options.contextPath?{ATL_TOMCAT_CONTEXTPATH:this.options.contextPath}:"",...this.options.debug?{JVM_SUPPORT_RECOMMENDED_ARGS:this.getJVMArgs()}:"",ATL_LICENSE_KEY:this.options.license||U,ATL_JDBC_URL:this.database.url,ATL_JDBC_USER:this.database.options.username,ATL_JDBC_PASSWORD:this.database.options.password,ATL_DB_TYPE:`${this.database.name}`}}getJVMArgs(){const u=[];return this.options.debug&&(u.push("-Dupm.plugin.upload.enabled=true"),u.push("-Xdebug"),u.push("-Xrunjdwp:transport=dt_socket,address=*:5005,server=y,suspend=n"),u.push("-Dcom.sun.management.jmxremote.port=9999"),u.push("-Dcom.sun.management.jmxremote.rmi.port=9998"),u.push("-Dcom.sun.management.jmxremote.authenticate=false"),u.push("-Dcom.sun.management.jmxremote.ssl=false")),this.options.quickReload&&u.push("-Dquickreload.dirs=/opt/quickreload"),u.join(" ")}getVolumes(){return[...this.options.quickReload?[`${this.options.quickReload}:/opt/quickreload`]:""]}}const G=AMPS.getApplicationVersion()||"latest";(async()=>{const d=u.showHelpAfterError(!0).addOption(new t("-v, --version <version>","The version of the host application").choices(L).default(G)).addOption(new t("-d, --database <name>","The database engine to remove data from").choices(["postgresql","mysql","mssql"]).default("postgresql")).parse(process.argv).opts(),n=new Confluence({version:d.version,database:d.database});await n.reset()})(),process.on("SIGINT",(()=>{console.log("Received term signal, trying to stop gracefully 💪"),d()}));
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{program as t,Option as e}from"commander";import{gracefulExit as s}from"exit-hook";import{DOMParser as o,XMLSerializer as a}from"@xmldom/xmldom";import{spawn as i}from"child_process";import{XMLParser as r}from"fast-xml-parser";import{existsSync as n,readFileSync as c,mkdirSync as l}from"fs";import{cwd as p}from"process";import d from"xpath";import{hideBin as h}from"yargs/helpers";import m from"yargs/yargs";import{dirname as g,join as u}from"path";import A from"axios";import{stop as w,downAll as S,ps as b,execCompose as f,upAll as v}from"docker-compose/dist/v2.js";import P from"events";import{dump as E}from"js-yaml";import{homedir as y}from"os";import C from"simple-git";import{upAll as x}from"docker-compose";import{Sequelize as T,ConnectionError as D,TimeoutError as R,ConnectionTimedOutError as k,ConnectionRefusedError as M,ConnectionAcquireTimeoutError as O}from"sequelize";var L;!function(t){t.JIRA="jira",t.CONFLUENCE="confluence",t.BITBUCKET="bitbucket",t.BAMBOO="bamboo"}(L||(L={}));const{P:q,activeProfiles:I}=m(h(process.argv)).parseSync(),U=q||I||void 0;class AMPS{static maven;static stop(){AMPS.maven&&AMPS.maven.kill(0)}static async build(t){return new Promise(((e,s)=>{if(AMPS.maven){AMPS.maven.kill(0)||s(new Error("Failed to terminate existing Maven process"))}AMPS.maven=i("mvn",["package",...t],{cwd:p(),stdio:"inherit"}),AMPS.maven.on("exit",(t=>{AMPS.maven=null,0===t||130===t?e():s(new Error(`Maven exited with code ${t}`))}))}))}static isAtlassianPlugin=()=>{try{return AMPS.getNodes("//*[local-name()='packaging']").some((t=>"atlassian-plugin"===t.textContent))}catch(t){return!1}};static getApplicationVersion(){const t=U?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${U}']/..//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']`,!0):AMPS.getNodes("//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']",!0);if(t){const e=t.parentNode;if(e){const{plugin:t}=AMPS.toObject(e),s=t?.configuration?.productVersion;return s?this.doPropertyReplacement(s):void 0}}}static getApplication(){const t=AMPS.getApplications();if(1===t.length)return t[0];if(U){const t=AMPS.getApplications(U);if(1===t.length)return t[0]}return null}static getApplications(t){const e=new Set;return(t?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${t}']/..//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']`):AMPS.getNodes("//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']")).forEach((t=>{const s=t.parentNode;if(s){const{plugin:t}=AMPS.toObject(s);t?.artifactId?.includes(L.JIRA)?e.add(L.JIRA):t?.artifactId?.includes(L.CONFLUENCE)?e.add(L.CONFLUENCE):t?.artifactId?.includes(L.BAMBOO)?e.add(L.BAMBOO):t?.artifactId?.includes(L.BITBUCKET)&&e.add(L.BITBUCKET)}})),Array.from(e)}static doPropertyReplacement(t){let e=t;const s=U?AMPS.getProperties(U):{};Object.entries(s).forEach((([t,s])=>{e=e.replaceAll(`\${${t}}`,s)}));const o=AMPS.getProperties();return Object.entries(o).forEach((([t,s])=>{e=e.replaceAll(`\${${t}}`,s)})),e}static getProperties(t){const e={};return(t?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${t}']/..//*[local-name()='properties']`):AMPS.getNodes("//*[local-name()='properties']")).forEach((t=>{const{properties:s}=AMPS.toObject(t);Object.entries(s).forEach((([t,s])=>e[t]=s))})),e}static getNodes(t,e){if(n("./pom.xml")){const s=c("./pom.xml","utf8"),a=(new o).parseFromString(s,"text/xml"),i=e?d.select(t,a,!0):d.select(t,a,!1);return Array.isArray(i)||e?i:[]}return[]}static toObject(t){try{return(new r).parse((new a).serializeToString(t))}catch(t){return null}}}const j="AAACBA0ODAoPeNp9kl1v2jAUhu/zK460OyQHSLuVIkUaTbwNVBKUhEnbugsTDuA2sSPbgbFfPxOC1i+4yEXO5+vnPR+yGiGSW/CuoXc7vBoMvT4ENAOv5/WctUIUG1lVqNx7nqPQSJfccCl8GmU0mSXjlDpRXS5Qxau5RqV90ncCKQzLTcRK9Eu944Ip/cQ/M1MwrTkTbi5LZ1arfMM0hsyg7/X6A9LvE89z2j3ZvsJmQBBPpzQJxqP7U4r+qbjaN32zG+/baR2dMl6c35ei2qIah/4dvaHkOvzpkU/x5IZ8vbodOI9cMbdSclnnxj38EC1XZscUunYy36JvVI3OxGZmbZXdzwIU5lVJWi90rnjVQGoi70B873GNhPOQO51OFGfkS5yQWRKH8yAbxxGZp9Qm/EChpbGExR7MBqGdAlTkcokK7MMeMTfwa2NM9TDsdtfSfQGnWxw7CB47frsQShDSwJJro/iiNmgncw1GQl5rI0trtetY4sKgYCJ/Y4qVFSR0lNGQ3P04aDxrTKvWOjMXT0LuxCU33txaSiPffuRjr3fsO/mC6og/VmsmuGYN0Ij93TFYcVXunQaaDb4+wJbFd7vg0OI5If53NENtoK2AlVQwGScjSFt5lrjdWymu8WEIgSwtppyzAsLgxRk8P5hG9PMA3bKiPspdsULjJRwX7ukf5/NX7TAtAhUAhQSHz9DgycOX7wcwERMJb3TLGb4CFGkB/xUWSRK3BZLrPF9Rn6ZmrUqJX02oc",$="AAACzg0ODAoPeNp9VO9v2jAQ/Z6/wtK+IYWGsEKHFGmQmJau/GgIm9iYJhMOYprYke1A4a+fSchGKtqPPvvevXv3zp/6gqLHLEb2HbKsTvNzp9lC98MA2ZbdNKYgdiAGntPDQ2z688HcdH/aM7P5o2kZTzQEJiE4pDAiCTgBngaD0b0RCr5f1S9uHfcUWXSQBzuIeQrCCDlb10mo6A4cJTLQSVlIlzFUggpI8ickMbAVEbI+ypIliPG6R5Il5z4kXEF3A0xJp1Gywa8pFQePKHAmDdt6+A9cJVQEK5yWmhMV8HGZLRWkwrF8PZMgpGPfGh7IUNBUUc6cAKRCcVEYrblAaZxtKEOrsqj8V/US85zxXd+fUGwD70ickRwyf7ARACziqUYo+8Irmt/jUYD9iT+YYmNIKFPACAuvyHIaQEUSHYgz0G8rorgC8rp5qvaEZVp3pt0u8sve3TiTCsSIr0A6llGr1VwfdwPsmb25PjjbVwq2EcZcm6nS6DKX+I3iT1yP/Cy42TBe4FAK0WhZVtu6azYbZeZlB0U2wrpnkQoqq40Uyst67RqB9zU8k64olYeqKnGmNCzWiseOUoKwhLLoK1ExkZISVg95cr3ZN/YqdueSYW649/mdrfJAZOQM3b3b96DRuhVk3261kkFvexwe41UQtJN12u5Gz6GcPT7Pn71H70t69CPcbx/a9rcj3rDuwlk4xprKCA5VN+oJjsaB2R/75sQfezM3GIxH5myKT6PN/QErtDwgFQE6E9VDCLUZtN8F30Ko0K9IqXTRubnZ8HpFlZtzAyYUGb/ryOOIcYVWVCpBl5kCjUwlUhyF2mY80WaoXxdzEhOWe2YsNoRRWWxMt6xX/hH6P5uxF8b3rLJIlz1LpQW95pQPvqfLq0kmwohIeLs2l9PMzfQ48LvvWTbfMY1AXDg9KJDLCV2C9HUMH+CaJfOfudi/v0kIGVswLAIUEMQ9X77gqGBdfH0HIzBaV8NadPUCFBn+RiUA4D+IqVQpTTouLVY66aCGX02121",toAbsolutePath=t=>{const[,e]=process.argv,s=g(e),o=s.substring(0,s.indexOf("dcdx")+4);return u(o,t.replaceAll("../",""))},N={name:"shared",driver:"bridge"};let _=class Base extends P{options;sequelize=null;constructor(t){super(),this.options=t}async run(t,e){try{if(!this.sequelize)throw new Error("Database connection does not exist");await this.sequelize.query(t,{logging:e})}catch(e){console.error("An error occurred while trying to run the following SQL query:",t,e),s()}return null}async start(t=this.options.clean){console.log(`Starting instance of ${this.name} ⏳`),t&&await this.down(),await this.up(),this.emit(`${this.name}:up`);if(await this.waitUntilReady()){if(console.log(`Database is ready and accepting connections on localhost:${this.options.port} 🗄️`),await this.onDatabaseReady(),this.emit("db:ready"),this.options.logging){const t=await this.getServiceState();t&&await this.showDockerLogs(t.name)}}else console.log(`Failed to start database ${this.name} ⛔`),s(0)}async stop(t=this.options.prune){if(t)await this.down();else{const t=E(this.getDockerComposeConfig());await w({cwd:p(),configAsString:t,log:!0})}this.emit("db:stopped")}async onDatabaseReady(){}getDockerComposeConfig(){return{version:"3.8",services:{db:this.getService()},networks:{shared:N}}}async up(){const t=E(this.getDockerComposeConfig());return x({cwd:p(),configAsString:t,log:!0})}async down(){const t=E(this.getDockerComposeConfig());return S({cwd:p(),configAsString:t,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async waitUntilReady(){try{const t="mssql"===this.name?"master":this.options.database;return this.sequelize=new T(t,this.options.username,this.options.password,{host:"localhost",port:this.options.port,dialect:this.name.replace("postgresql","postgres"),retry:{max:30,match:[D,R,k,M,O],backoffBase:1e3,backoffExponent:1},logging:!1}),this.sequelize.authenticate().then((()=>!0)).catch((t=>(console.log(t),!1)))}catch(t){return!1}}async getServiceState(){const t=E(this.getDockerComposeConfig());return(await b({configAsString:t,log:!1,commandOptions:["--all"]})).data.services.find((t=>t.name.includes(this.name)))}async showDockerLogs(t){return new Promise(((e,s)=>{i("docker",["logs","-f","-n","5000",t],{cwd:p(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}};const Q={port:1433,database:"dcdx",username:"sa",password:"DataCenterDX!",edition:"Developer",version:"2022"};class MSSQL extends _{name="mssql";driver="com.microsoft.sqlserver.jdbc.SQLServerDriver";options=Q;version="2022";get url(){return`jdbc:sqlserver://db:${this.options.port};databaseName=${this.options.database};trustServerCertificate=true`}constructor(t=Q){super({...Q,...t})}async onDatabaseReady(){await this.run(`CREATE DATABASE ${this.options.database}`),await this.run(`ALTER DATABASE ${this.options.database} COLLATE SQL_Latin1_General_CP1_CS_AS`),await this.run(`ALTER DATABASE ${this.options.database} SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE;`)}getService=()=>({image:`mcr.microsoft.com/mssql/server:${this.version}-latest`,ports:[`${this.options.port||1433}:1433`],environment:{ACCEPT_EULA:"y",MSSQL_SA_PASSWORD:this.options.password||"dcdx",MSSQL_PID:this.options.edition},networks:{shared:{aliases:["db","database"]}}})}const B={port:3306,database:"dcdx",username:"dcdx",password:"dcdx",version:"8.0"};class MySQL extends _{name="mysql";driver="com.mysql.jdbc.Driver";options=B;version="8.0";get url(){return`jdbc:mysql://db:${this.options.port}/${this.options.database}?sessionVariables=transaction_isolation='READ-COMMITTED'`}constructor(t=B){super({...B,...t})}async onDatabaseReady(){await this.run(`ALTER DATABASE ${this.options.database} CHARACTER SET 'utf8mb4' COLLATE utf8mb4_bin`)}getService=()=>({image:`mysql:${this.version}`,ports:[`${this.options.port||3306}:3306`],environment:{MYSQL_ROOT_PASSWORD:this.options.password||"dcdx",MYSQL_USER:this.options.username||"dcdx",MYSQL_PASSWORD:this.options.password||"dcdx",MYSQL_DATABASE:this.options.database||"dcdx"},command:["--log_bin_trust_function_creators=1"],networks:{shared:{aliases:["db","database"]}}})}const G={version:"15",database:"dcdx",port:5432,username:"dcdx",password:"dcdx"};class Postgres extends _{name="postgresql";driver="org.postgresql.Driver";options=G;version="15";get url(){return`jdbc:postgresql://db:${this.options.port}/${this.options.database}`}constructor(t=G){super({...G,...t})}getService=()=>({image:`postgres:${this.version}`,ports:[`${this.options.port||5432}:5432`],environment:{POSTGRES_USER:this.options.username||"dcdx",POSTGRES_PASSWORD:this.options.password||"dcdx",POSTGRES_DB:this.options.database||"dcdx",POSTGRES_HOST_AUTH_METHOD:"md5",POSTGRES_INITDB_ARGS:"--encoding=UTF-8 --lc-collate=C --lc-ctype=C"},networks:{shared:{aliases:["db","database"]}}})}const V=u(y(),".dcdx");class Base extends P{options;constructor(t){super(),this.options=t}get baseUrl(){let t="http://localhost";return this.options.port&&(t+=`:${this.options.port}`),this.options.contextPath?`${t}/${this.options.contextPath}`:t}getDatabaseEngine(t){switch(t){case"postgresql":return new Postgres;case"mssql":return new MSSQL;case"mysql":return new MySQL}}async start(){this.options.clean&&await this.down(),await this.build(this.options.version),await this.database.start(this.options.clean),await this.up()}async stop(){if(await this.database.stop(this.options.prune),this.options.prune)await this.down();else{const t=E(this.getDockerComposeConfig());await w({cwd:p(),configAsString:t,log:!0})}this.emit(`${this.name}:stopped`)}async reset(){await this.database.stop(!0),await this.down()}async cp(t){const e=await this.getServiceState();if(e&&e.state.toLowerCase().startsWith("up")){const e=this.getDockerComposeConfig(),s=E(e);await f("cp",[t,`${this.name}:/opt/quickreload/`],{cwd:p(),configAsString:s,log:!1})}}async isApplicationReady(){try{const t=await A.get(`${this.baseUrl}/status`,{validateStatus:()=>!0}).catch((()=>null));if(t&&200===t.status){const{data:e}=t;if("FIRST_RUN"===e.state)return console.log(`The application ${this.name} is ready on ${this.baseUrl} 🎉`),!0}return!1}catch(t){return!1}}getDockerComposeConfig(){return{version:"3.8",services:{[this.name]:this.getService()},networks:{shared:N}}}async up(){const t=this.getDockerComposeConfig(),e=E(t);await v({cwd:p(),configAsString:e,log:!0}),this.emit(`${this.name}:up`);await this.waitUntilReady()?(this.emit(`${this.name}:ready`),await this.tailApplicationLogs()):console.log(`Failed to start ${this.name} ⛔`),s(0)}async down(){const t=E(this.getDockerComposeConfig());await S({cwd:p(),configAsString:t,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async getServiceState(){const t=E(this.getDockerComposeConfig());return(await b({configAsString:t,log:!1,commandOptions:["--all"]})).data.services.find((t=>t.name.includes(this.name)))}async waitUntilReady(t=0){console.log(`Waiting for ${this.name} to become available... ${t}s`);const e=await this.getServiceState();return!!(e&&e.state.toLowerCase().startsWith("up")&&await this.isApplicationReady())||(t>=300?(console.error(`A timeout occurred while waiting for ${this.name} to become available ⛔`),e&&await this.showDockerLogs(e.name),!1):(await new Promise((t=>setTimeout(t,1e3))),this.waitUntilReady(t+1)))}getDockerRepositoryUrl(){return`https://bitbucket.org/atlassian-docker/docker-${"jira"===this.name?"atlassian-jira":"bamboo"===this.name?`${this.name}-server`:`atlassian-${this.name}-server`}.git`}async build(t){const e=this.getDockerRepositoryUrl(),s=u(V,this.name,"source");n(s)?await C({baseDir:s}).pull({"--recurse-submodule":null}):(l(u(V,this.name),{recursive:!0}),await C().clone(e,s,{"--recurse-submodule":null})),await new Promise(((e,o)=>{i("docker",["build","-t",`dcdx/${this.name}:${t}`,"--build-arg",`${this.name.toUpperCase()}_VERSION=${t}`,"."],{cwd:s,stdio:"inherit"}).on("exit",(t=>0===t?e():o(new Error(`Docker exited with code ${t}`))))}))}async tailApplicationLogs(){const t=await this.getServiceState();t&&t.state.toLowerCase().startsWith("up")&&await this.showApplicationLogs(t.name).catch((()=>null))}async showDockerLogs(t){return new Promise(((e,s)=>{i("docker",["logs","-f","-n","5000",t],{cwd:p(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}async showApplicationLogs(t){return new Promise(((e,s)=>{i("docker",["exec","-i",t,"tail","-F","-n","5000",this.logFilePath],{cwd:p(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}}class Jira extends Base{name=L.JIRA;database;logFilePath="/var/atlassian/application-data/jira/log/atlassian-jira.log";constructor(t){super(t),this.database=this.getDatabaseEngine(t.database)}getService(){const t=this.getVolumes(),e=this.getEnvironmentVariables();return{build:{context:toAbsolutePath("../../assets"),dockerfile_inline:`\nFROM dcdx/${this.name}:${this.options.version}\nCOPY ./jira-data-generator-5.0.0.jar /var/atlassian/application-data/jira/plugins/installed-plugins/jira-data-generator-5.0.0.jar\nCOPY ./mysql-connector-j-8.3.0.jar /opt/atlassian/jira/lib/mysql-connector-j-8.3.0.jar\nCOPY ./quickreload-5.0.2.jar /var/atlassian/application-data/jira/plugins/installed-plugins/quickreload-5.0.2.jar\nRUN echo "/opt/quickreload" > /var/atlassian/application-data/jira/quickreload.properties; mkdir -p /opt/quickreload; chown -R jira:jira /opt/quickreload;\n\nRUN chown -R jira:jira /var/atlassian/application-data/jira`},ports:[`${this.options.port||80}:8080`,...this.options.debug?["5005:5005"]:[]],environment:Object.keys(e).length>0?e:void 0,volumes:t.length>0?t:void 0,networks:["shared"]}}getEnvironmentVariables(){const t="postgresql"===this.database.name?"postgres72":this.database.name;return{...this.options.contextPath?{ATL_TOMCAT_CONTEXTPATH:this.options.contextPath}:"",...this.options.debug?{JVM_SUPPORT_RECOMMENDED_ARGS:this.getJVMArgs()}:"",ATL_LICENSE_KEY:this.options.license||$,ATL_JDBC_URL:this.database.url,ATL_JDBC_USER:this.database.options.username,ATL_JDBC_PASSWORD:this.database.options.password,ATL_DB_DRIVER:this.database.driver,ATL_DB_TYPE:t,JIRA_SETUP_LICENSE:this.options.license||j}}getJVMArgs(){const t=[];return this.options.debug&&(t.push("-Dupm.plugin.upload.enabled=true"),t.push("-Xdebug"),t.push("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005")),this.options.quickReload&&t.push("-Dquickreload.dirs=/opt/quickreload"),t.join(" ")}getVolumes(){return[...this.options.quickReload?[`${this.options.quickReload}:/opt/quickreload`]:""]}}const z=AMPS.getApplicationVersion()||"9.15.0";(async()=>{const s=t.showHelpAfterError(!0).addOption(new e("-v, --version <version>","The version of the host application").choices(["9.15.0"]).default(z)).addOption(new e("-d, --database <name>","The database engine to remove data from").choices(["postgresql","mysql","mssql"]).default("postgresql")).parse(process.argv).opts(),o=new Jira({version:s.version,database:s.database});await o.reset()})(),process.on("SIGINT",(()=>{console.log("Received term signal, trying to stop gracefully 💪"),s()}));
2
+ import{program as u,Option as t}from"commander";import{gracefulExit as d}from"exit-hook";import{DOMParser as n,XMLSerializer as k}from"@xmldom/xmldom";import{spawn as j}from"child_process";import{XMLParser as b}from"fast-xml-parser";import{existsSync as e,readFileSync as s,mkdirSync as i}from"fs";import{cwd as a}from"process";import o from"xpath";import{hideBin as r}from"yargs/helpers";import c from"yargs/yargs";import{dirname as A,join as l}from"path";import P from"axios";import{stop as E,downAll as p,ps as C,execCompose as h,upAll as R}from"docker-compose/dist/v2.js";import m from"events";import{dump as g}from"js-yaml";import{homedir as w}from"os";import S from"simple-git";import{upAll as f}from"docker-compose";import{Sequelize as v,ConnectionError as y,TimeoutError as x,ConnectionTimedOutError as T,ConnectionRefusedError as D,ConnectionAcquireTimeoutError as M}from"sequelize";var O,L=["latest","9.8.0-ubuntu-jdk11","9.8.0-jdk11","9.8.0","9.5-ubuntu-jdk11","9.5-jdk11","9.5.1-ubuntu-jdk11","9.5.1-jdk11","9.5.1","9.5","9.14.0-ubuntu-jdk11","9.14.0-jdk11","9.14-ubuntu-jdk11","9.14.0","9.14-jdk11","9.14.1-ubuntu-jdk11","9.14","9.14.1","9.12.5-ubuntu-jdk11","9.12.5-jdk11","9.12.5","9.0-ubuntu-jdk11","9.0-jdk11","9.0.0-ubuntu-jdk11","9.0.0-jdk11","9.0.0","9.0","9.8.1-ubuntu-jdk11","9.8.1-jdk11","9.8.1","9.14.1-jdk11","9.10-ubuntu-jdk11","9.10-jdk11","9.10.2-ubuntu-jdk11","9.10.2-jdk11","9.10.2","9.8","9.10","9.12.6-jdk11","9.12.6-ubuntu-jdk11","9.12.6","9.8-ubuntu-jdk11","9.8-jdk11","9.8.2-ubuntu-jdk11","9.8.2-jdk11","9.8.2","9.6-ubuntu-jdk11","9.6-jdk11","9.6.0-ubuntu-jdk11","9.6.0-jdk11","9.6.0","9.6","9.4.2-ubuntu-jdk11","9.4.2-jdk11","9.4.2","9.3.0-ubuntu-jdk11","9.3.0-jdk11","9.3.0","9.14.0-ubi9-jdk17","9.14.0-ubi9","9.12.7-ubi9-jdk17","9.12.7-ubi9","9.5.0-ubi9-jdk17","9.5.0-ubi9","9.12-ubuntu-jdk11","9.12-jdk11","9.12.7-ubuntu-jdk11","9.12.7-jdk11","9.12.7","9.12","9.1.0-ubuntu-jdk11","9.1.0-jdk11","ubuntu-jdk11","9.1.0","jdk11","9-ubuntu-jdk11","9-jdk11","9.4-ubuntu-jdk11","9.4-jdk11","9.4.20-ubuntu-jdk11","9.4.20-jdk11","9.4.20","9.4","9.3.1-ubuntu-jdk11","9.3.1-jdk11","9.3.1","9.15-ubuntu-jdk11","9.15-jdk11","9.15.0-ubuntu-jdk11","9.15.0-jdk11","9.15.0","9.15","9.12.0-ubuntu-jdk11","9.12.0-jdk11","9.12.0","9.11.0-ubuntu-jdk11","9.11.0-jdk11","9.11.0","9","9.8.0-ubi9-jdk17","9.8.0-ubi9","9.7.0-ubi9-jdk17","9.7.0-ubi9","9.5.1-ubi9-jdk17","9.5.1-ubi9","9.1-ubuntu-jdk11","9.1-jdk11","9.14.1-ubi9-jdk17","9.14.1-ubi9","9.1.1-ubuntu-jdk11","9.1.1-jdk11","9.1.1","9.9.0-ubuntu-jdk11","9.1","9.9.0-ubi9-jdk17","9.9.0-ubi9","9.9.0-jdk11","9.9.0","9.7.0-ubuntu-jdk11","9.7.0-jdk11","9.7.0","9.4.6-ubuntu-jdk11","9.4.6-jdk11","9.4.6","9.4.1-ubuntu-jdk11","9.4.1-jdk11","9.4.15-ubuntu-jdk11","9.4.15-jdk11","9.4.15","9.4.1","9.3.2-ubuntu-jdk11","9.3.2-jdk11","9.3.2","9.12.1-ubuntu-jdk11","9.12.1-jdk11","9.12.1","9.11.1-ubuntu-jdk11","9.11.1-jdk11","9.11.1","9.8.1-ubi9-jdk17","9.8.1-ubi9","9.7.1-ubi9-jdk17","9.7.1-ubi9","9.4.10-ubuntu-jdk11","9.4.10-jdk11","9.4.10","9.13.0-ubuntu-jdk11","9.13.0-ubi9-jdk17","9.13.0-ubi9","9.13.0-jdk11","9.13.0","9.11.3-ubi9-jdk17","9.11.3-ubi9","9.10.2-ubi9-jdk17","9.10.2-ubi9","9.9.1-ubuntu-jdk11","9.9.1-ubi9-jdk17","9.9.1-ubi9","9.9.1-jdk11","9.9.1","9.7.1-ubuntu-jdk11","9.7.1-jdk11","9.7.1","9.4.7-ubuntu-jdk11","9.4.7-jdk11","9.4.7","9.4.16-ubuntu-jdk11","9.4.16-jdk11","9.4.16","9.3-ubuntu-jdk11","9.3-jdk11","9.3.3-ubuntu-jdk11","9.3.3-jdk11","9.3.3","9.3","9.2.0-ubuntu-jdk11","9.2.0-jdk11","9.2.0","9.12.4-ubi9-jdk17","9.12.4-ubi9","9.12.1-ubi9-jdk17","9.12.1-ubi9","9.11.2-ubuntu-jdk11","9.11.2-jdk11","9.11.2","ubi9-jdk17","ubi9","9.8.2-ubi9-jdk17","9.8.2-ubi9","9.7.2-ubi9-jdk17","9.7.2-ubi9","9.6.0-ubi9-jdk17","9.6.0-ubi9","9.4.8-ubuntu-jdk11","9.4.8-jdk11","9.4.8","9.4.3-ubuntu-jdk11","9.4.3-jdk11","9.4.3","9.4.11-ubuntu-jdk11","9.4.11-jdk11","9.4.11","9.15.0-ubi9-jdk17","9.15.0-ubi9","9.13-ubuntu-jdk11","9.13-jdk11","9.13.1-ubuntu-jdk11","9.13.1-ubi9-jdk17","9.13.1-ubi9","9.13.1-jdk11","9.13.1","9.13","9.12.2-ubuntu-jdk11","9.12.2-jdk11","9.12.2","9.9-ubuntu-jdk11","9.9-jdk11","9.9.2-ubuntu-jdk11","9.9.2-ubi9-jdk17","9.9.2-ubi9","9.9.2-jdk11","9.9.2","9.9","9.7-ubuntu-jdk11","9.7-jdk11","9.7.2-ubuntu-jdk11","9.7.2-jdk11","9.7.2","9.7","9.4.17-ubuntu-jdk11","9.4.17-jdk11","9.4.17","9.2-ubuntu-jdk11","9.2-jdk11","9.2.1-ubuntu-jdk11","9.2.1-jdk11","9.2.1","9.2","9.12.5-ubi9-jdk17","9.12.5-ubi9","9.11-ubuntu-jdk11","9.11-jdk11","9.11.3-ubuntu-jdk11","9.11.3-jdk11","9.11.3","9.11.1-ubi9-jdk17","9.11.1-ubi9","9.11","9.10.0-ubuntu-jdk11","9.10.0-ubi9-jdk17","9.10.0-ubi9","9.10.0-jdk11","9.10.0","9.4.9-ubuntu-jdk11","9.4.9-jdk11","9.4.9","9.4.4-ubuntu-jdk11","9.4.4-jdk11","9.4.4","9.4.12-ubuntu-jdk11","9.4.12-jdk11","9.4.12","9.12.3-ubuntu-jdk11","9.12.3-jdk11","9.12.3","9.12.2-ubi9-jdk17","9.12.2-ubi9","9.4.18-ubuntu-jdk11","9.4.18-jdk11","9.4.18","9.5.0-ubuntu-jdk11","9.5.0-jdk11","9.5.0","9.4.5-ubuntu-jdk11","9.4.5-jdk11","9.4.5","9.4.19-ubuntu-jdk11","9.4.19-jdk11","9.4.19","9.4.14-ubuntu-jdk11","9.4.14-jdk11","9.4.14","9.4.0-ubuntu-jdk11","9.4.0-jdk11","9.4.0","9.12.6-ubi9-jdk17","9.12.6-ubi9","9.12.4-ubuntu-jdk11","9.12.4-jdk11","9.12.4","9.12.3-ubi9-jdk17","9.12.3-ubi9","9.12.0-ubi9-jdk17","9.12.0-ubi9","9.11.2-ubi9-jdk17","9.11.2-ubi9","9.11.0-ubi9-jdk17","9.11.0-ubi9","9.10.1-ubuntu-jdk11","9.10.1-ubi9-jdk17","9.10.1-ubi9","9.10.1-jdk11","9.10.1","10.0.0-EAP02-ubi9-jdk17","10.0.0-EAP02","10.0.0-EAP02-ubi9","10.0.0-EAP02-ubuntu-jdk11","10.0.0-EAP02-jdk11","9.15.0-RC","9.15.0-RC-jdk11","9.15.0-RC-ubuntu-jdk11","9.15.0-RC-ubi9","9.15.0-RC-ubi9-jdk17","9.15.0-EAP02-ubi9-jdk17","9.15.0-EAP02-ubi9","9.15.0-EAP02-jdk11","9.15.0-EAP02-ubuntu-jdk11","9.15.0-EAP02","8.22.3-ubuntu-jdk11","8.22.3-jdk11","8.22.3","8.22.4-ubuntu-jdk11","8.22.4-jdk11","8.22.4","8.22.5-ubuntu-jdk11","8.22.5","8.22.5-jdk11","8.16-ubuntu-jdk11","8.16-jdk11","8.16.2-ubuntu-jdk11","8.16.2-jdk11","8.16.2","8.16","8-ubuntu-jdk11","8-jdk11","8.22-ubuntu-jdk11","8.22-jdk11","8.22.6-ubuntu-jdk11","8.22.6-jdk11","8.22.6","8.22","8","8.17.0-ubuntu-jdk11","8.17.0-jdk11","8.17.0","8.20.21-ubuntu-jdk11","8.20.21-jdk11","8.20.21","8.20.4-ubuntu-jdk11","8.20.4-jdk11","8.20.4","8.17-ubuntu-jdk11","8.17-jdk11","8.17.1-ubuntu-jdk11","8.17.1-jdk11","8.17.1","8.17","8.20.22-ubuntu-jdk11","8.20.22-jdk11","8.20.22","8.13.5-ubuntu-jdk11","8.13.5-jdk11","8.13.5","8.20.5-ubuntu-jdk11","8.20.5-jdk11","8.20.5","8.13.19-ubuntu-jdk11","8.13.19-jdk11","8.13.19","8.13.6-jdk11","8.20.23-ubuntu-jdk11","8.20.23-jdk11","8.20.23","8.20.11-ubuntu-jdk11","8.20.11-jdk11","8.20.11","8.13.6-ubuntu-jdk11","8.13.6","8.13.2-ubuntu-jdk11","8.13.2-jdk11","8.13.2","8.20.6-ubuntu-jdk11","8.20.6-jdk11","8.20.6","8.18.0-ubuntu-jdk11","8.18.0-jdk11","8.18.0","8.13.0-ubuntu-jdk11","8.13.0-jdk11","8.13.0","8.20.24-ubuntu-jdk11","8.20.24-jdk11","8.20.24","8.20.12-ubuntu-jdk11","8.20.12-jdk11","8.20.12","8.13.7-ubuntu-jdk11","8.13.7-jdk11","8.20.7-ubuntu-jdk11","8.13.7","8.20.7-jdk11","8.20.7","8.18.1-ubuntu-jdk11","8.18.1-jdk11","8.18.1","8.13.20-ubuntu-jdk11","8.13.20-jdk11","8.13.20","8.13.1-ubuntu-jdk11","8.13.1-jdk11","8.13.1","8.13.8-ubuntu-jdk11","8.13.8-jdk11","8.13.8","8.20.25-ubuntu-jdk11","8.20.25-jdk11","8.20.25","8.20.13-ubuntu-jdk11","8.20.13-jdk11","8.20.13","8.13.21-ubuntu-jdk11","8.13.21-jdk11","8.13.21","8.13.10-ubuntu-jdk11","8.13.10-jdk11","8.20.8-ubuntu-jdk11","8.13.10","8.20.8-jdk11","8.20.8","8.18-ubuntu-jdk11","8.18-jdk11","8.18.2-ubuntu-jdk11","8.18.2-jdk11","8.18.2","8.18","8.13.9-ubuntu-jdk11","8.13.9-jdk11","8.13.9","8.20.26-ubuntu-jdk11","8.20.26-jdk11","8.20.26","8.20.14-ubuntu-jdk11","8.20.14-jdk11","8.20.14","8.13.22-ubuntu-jdk11","8.13.22-jdk11","8.13.22","8.20.9-ubuntu-jdk11","8.20.9-jdk11","8.20.9","8.14.0-ubuntu-jdk11","8.14.0-jdk11","8.14.0","8.13.11-ubuntu-jdk11","8.13.11-jdk11","8.13.11","8.20.15-ubuntu-jdk11","8.20.15-jdk11","8.20.15","8.13.24-ubuntu-jdk11","8.13.24-jdk11","8.13.24","8.20.27-ubuntu-jdk11","8.20.27-jdk11","8.20.27","8.19.0-ubuntu-jdk11","8.19.0-jdk11","8.19.0","8.14-ubuntu-jdk11","8.14-jdk11","8.14.1-ubuntu-jdk11","8.14.1-jdk11","8.14.1","8.14","8.13.12-ubuntu-jdk11","8.13.12-jdk11","8.13.12","8.21.0-ubuntu-jdk11","8.21.0-jdk11","8.21.0","8.20.28-ubuntu-jdk11","8.20.28-jdk11","8.20.28","8.20.16-ubuntu-jdk11","8.20.16-jdk11","8.20.16","8.13.25-ubuntu-jdk11","8.13.25-jdk11","8.13.25","8.13.13-ubuntu-jdk11","8.13.13-jdk11","8.13.13","8.21-ubuntu-jdk11","8.21-jdk11","8.21.1-ubuntu-jdk11","8.21.1-jdk11","8.21.1","8.21","8.19-ubuntu-jdk11","8.19-jdk11","8.19.1-ubuntu-jdk11","8.19.1-jdk11","8.19.1","8.19","8.20.17-ubuntu-jdk11","8.20.17-jdk11","8.20.17","8.15.0-ubuntu-jdk11","8.15.0-jdk11","8.15.0","8.13.26-ubuntu-jdk11","8.13.26-jdk11","8.13.26","8.13.14-ubuntu-jdk11","8.13.14-jdk11","8.20.29-ubuntu-jdk11","8.20.29-jdk11","8.20.29","8.13.14","8.13-ubuntu-jdk11","8.13-jdk11","8.13.27-ubuntu-jdk11","8.13.27-jdk11","8.13.27","8.13","8.20.3-ubuntu-jdk11","8.20.3-jdk11","8.20.3","8.20.18-ubuntu-jdk11","8.20.18-jdk11","8.20.18","8.15-ubuntu-jdk11","8.15-jdk11","8.15.1-ubuntu-jdk11","8.15.1-jdk11","8.15.1","8.15","8.13.15-ubuntu-jdk11","8.13.15-jdk11","8.13.15","8.22.0-ubuntu-jdk11","8.22.0-jdk11","8.22.0","8.20.19-ubuntu-jdk11","8.20.19-jdk11","8.20.19","8.20.0-ubuntu-jdk11","8.20.0-jdk11","8.20.0","8.13.16-ubuntu-jdk11","8.13.16-jdk11","8.20-ubuntu-jdk11","8.13.16","8.20-jdk11","8.20.30-ubuntu-jdk11","8.20.30-jdk11","8.20.30","8.20","8.22.1-ubuntu-jdk11","8.22.1-jdk11","8.22.1","8.20.2-ubuntu-jdk11","8.20.2-jdk11","8.20.2","8.20.1-ubuntu-jdk11","8.20.1-jdk11","8.20.1","8.13.17-ubuntu-jdk11","8.13.17-jdk11","8.13.17","8.16.0-ubuntu-jdk11","8.16.0-jdk11","8.16.0","8.13.3-ubuntu-jdk11","8.13.3-jdk11","8.13.3","8.22.2-ubuntu-jdk11","8.22.2-jdk11","8.22.2","8.20.20-ubuntu-jdk11","8.20.20-jdk11","8.20.20","8.20.10-ubuntu-jdk11","8.20.10-jdk11","8.20.10","8.13.4-ubuntu-jdk11","8.13.4-jdk11","8.13.4","8.13.18-ubuntu-jdk11","8.13.18-jdk11","8.13.18","8.16.1-ubuntu-jdk11","8.16.1-jdk11","8.16.1","9.15.0-EAP01-ubuntu-jdk11","9.15.0-EAP01","9.15.0-EAP01-jdk11","10.0.0-EAP01-jdk11","10.0.0-EAP01-ubuntu-jdk11","10.0.0-EAP01","9.14.0-RC-ubuntu-jdk11","9.14.0-RC-jdk11","9.14.0-RC","9.14.0-EAP02","9.14.0-EAP02-ubuntu-jdk11","9.14.0-EAP02-jdk11","9.14.0-EAP01-ubuntu-jdk11","9.14.0-EAP01-jdk11","9.14.0-EAP01","9.13.0-EAP02","9.13.0-EAP02-ubuntu-jdk11","9.13.0-EAP02-jdk11","9.4.13-jdk11","9.4.13","9.4.13-ubuntu-jdk11","9.13.0-EAP01-ubuntu-jdk11","9.13.0-EAP01-jdk11","9.13.0-EAP01","8.11.0-ubuntu-jdk11","8.11.0-jdk11","8.11.0","8.11-ubuntu-jdk11","8.11-jdk11","8.11.1-ubuntu-jdk11","8.11.1-jdk11","8.11.1","8.11","8.12.0-ubuntu-jdk11","8.12.0-jdk11","8.12.0","8.12.1-ubuntu-jdk11","8.12.1-jdk11","8.12.1","8.12.2-ubuntu-jdk11","8.12.2-jdk11","8.12.2","8.12-ubuntu-jdk11","8.12-jdk11","8.12.3-ubuntu-jdk11","8.12.3-jdk11","8.12.3","8.12","9.12.0-EAP01-ubuntu-jdk11","9.12.0-EAP01-jdk11","9.12.0-EAP01","9.11.0-RC-jdk11","9.11.0-RC-ubuntu-jdk11","9.11.0-RC","9.11.0-EAP02-ubuntu-jdk11","9.11.0-EAP02-jdk11","9.11.0-EAP02","9.11.0-EAP01-ubuntu-jdk11","9.11.0-EAP01-jdk11","9.11.0-EAP01","9.10.0-RC-ubuntu-jdk11","9.10.0-RC-jdk11","9.10.0-RC","9.10.0-EAP02-ubuntu-jdk11","9.10.0-EAP02-jdk11","9.10.0-EAP02","9.10.0-EAP01-ubuntu-jdk11","9.10.0-EAP01","9.10.0-EAP01-jdk11","9.9.0-RC02-jdk11","9.9.0-RC02-ubuntu-jdk11","9.9.0-RC02","9.9.0-RC01-jdk11","9.9.0-RC01-ubuntu-jdk11","9.9.0-RC01","9.9.0-EAP02-ubuntu-jdk11","9.9.0-EAP02-jdk11","9.9.0-EAP02","9.9.0-EAP01-jdk11","9.9.0-EAP01-ubuntu-jdk11","9.9.0-EAP01","9.8.0-RC01-jdk11","9.8.0-RC01-ubuntu-jdk11","9.8.0-RC01","9.8.0-EAP02","eap-jdk11","eap","9.8.0-EAP02-ubuntu-jdk11","eap-ubuntu-jdk11","9.8.0-EAP02-jdk11","9.8.0-EAP01","9.8.0-EAP01-jdk11","9.8.0-EAP01-ubuntu-jdk11","9.7.0-RC01-jdk11","9.7.0-RC01","9.7.0-RC01-ubuntu-jdk11","9.7.0-EAP02","9.7.0-EAP02-ubuntu-jdk11","9.7.0-EAP02-jdk11","9.7.0-EAP01-ubuntu-jdk11","9.7.0-EAP01-jdk11","9.7.0-EAP01","9.6.0-RC01","9.6.0-RC01-ubuntu-jdk11","9.6.0-EAP02-ubuntu-jdk11","9.6.0-EAP02","9.6.0-EAP02-jdk11","9.6.0-EAP01","9.6.0-EAP01-jdk11","9.6.0-EAP01-ubuntu-jdk11","9.5.0-RC01","9.5.0-RC01-ubuntu-jdk11","9.5.0-RC01-jdk11","9.5.0-EAP03-ubuntu-jdk11","9.5.0-EAP03-jdk11","9.5.0-EAP03","9.5.0-EAP02-ubuntu-jdk11","9.5.0-EAP02","9.5.0-EAP02-jdk11","9.4.0-RC02-jdk11","9.4.0-RC02","9.4.0-RC02-ubuntu-jdk11","9.4.0-RC01-ubuntu-jdk11","9.4.0-RC01-jdk11","9.4.0-RC01","9.4.0-EAP01","9.4.0-EAP01-ubuntu-jdk11","9.4.0-EAP01-jdk11","9.5.0-EAP01-ubuntu-jdk11","9.5.0-EAP01","9.5.0-EAP01-jdk11","9.3.0-RC01","9.3.0-RC01-ubuntu-jdk11","9.3.0-RC01-jdk11","9.3.0-EAP02-jdk11","9.3.0-EAP02","9.3.0-EAP02-ubuntu-jdk11","9.3.0-EAP01-jdk11","9.3.0-EAP01-ubuntu-jdk11","9.3.0-EAP01","9.2.0-RC01-ubuntu-jdk11","9.2.0-RC01-jdk11","9.2.0-RC01","9.2.0-EAP03-jdk11","9.2.0-EAP03-ubuntu-jdk11","9.2.0-EAP03","9.2.0-EAP02-ubuntu-jdk11","9.2.0-EAP02-jdk11","9.2.0-EAP02","9.2.0-EAP01-jdk11","9.2.0-EAP01-ubuntu-jdk11","9.2.0-EAP01","9.1.0-RC01-ubuntu-jdk11","9.1.0-RC01-jdk11","9.1.0-RC01","9.1.0-EAP02-ubuntu-jdk11","9.1.0-EAP02-jdk11","9.1.0-EAP02","9.1.0-EAP01-jdk11","9.1.0-EAP01-ubuntu-jdk11","9.1.0-EAP01","8.8.0-ubuntu-jdk11","8.8.0-jdk11","8.8.0","8.9-ubuntu-jdk11","8.9-jdk11","8.9.1-ubuntu-jdk11","8.9.1-jdk11","8.9.1","8.9.0-ubuntu-jdk11","8.9.0-jdk11","8.9.0","8.9","8.8-ubuntu-jdk11","8.8-jdk11","8.8.1-ubuntu-jdk11","8.8.1-jdk11","8.8.1","8.8","8.10-ubuntu-jdk11","8.10-jdk11","8.10.1-ubuntu-jdk11","8.10.1-jdk11","8.10.1","8.10.0-ubuntu-jdk11","8.10.0-jdk11","8.10.0","8.10","9.0.0-RC02-jdk11","9.0.0-RC02-ubuntu-jdk11","9.0.0-RC02","9.0.0-RC01-jdk11","9.0.0-RC01-ubuntu-jdk11","9.0.0-RC01","9.0.0-EAP04-ubuntu-jdk11","9.0.0-EAP04-jdk11","9.0.0-EAP04","9.0.0-EAP03-ubuntu-jdk11","9.0.0-EAP03-jdk11","9.0.0-EAP03","9.0.0-EAP02-ubuntu-jdk11","9.0.0-EAP02-jdk11","9.0.0-EAP02","9.0.0-EAP01-ubuntu-jdk11","9.0.0-EAP01-jdk11","9.0.0-EAP01","8.22.0-RC01-ubuntu-jdk11","8.22.0-RC01-jdk11","8.22.0-RC01","8.22.0-EAP02-ubuntu-jdk11","8.22.0-EAP02-jdk11","8.22.0-EAP02","8.22.0-EAP01-ubuntu-jdk11","8.22.0-EAP01-jdk11","8.22.0-EAP01","8.21.0-RC01-ubuntu-jdk11","8.21.0-RC01-jdk11","8.21.0-RC01","8.21.0-EAP02-ubuntu-jdk11","8.21.0-EAP02-jdk11","8.21.0-EAP02","8.21.0-EAP01-ubuntu-jdk11","8.21.0-EAP01-jdk11","8.21.0-EAP01","8.20-ubuntu-jdk-11","8.20.7-ubuntu-jdk-11","8.20.0-RC01-ubuntu-jdk11","8.20.0-RC01-jdk11","8.20.0-RC01","8.20.0-EAP01-ubuntu-jdk11","8.20.0-EAP01-jdk11","8.20.0-EAP01","8.19.0-RC01-ubuntu-jdk11","8.19.0-RC01-jdk11","8.19.0-RC01","8.19.0-EAP02-ubuntu-jdk11","8.19.0-EAP02-jdk11","8.19.0-EAP02","8.19.0-EAP01-ubuntu-jdk-11","8.19.0-EAP01-jdk11","8.19.0-EAP01","8.18.0-RC01-ubuntu-jdk11","8.18.0-RC01-jdk11","8.18.0-RC01","8.18.0-EAP02-ubuntu-jdk-11","8.18.0-EAP02-jdk11","8.18.0-EAP02","8.18.0-EAP01-ubuntu-jdk11","8.18.0-EAP01-jdk11","8.18.0-EAP01","8.17.0-RC02-ubuntu-jdk11","8.17.0-RC02-jdk11","8.17.0-RC02","8.17.0-RC01-ubuntu-jdk11","8.17.0-RC01-jdk11","8.17.0-RC01","8.17.0-EAP02-ubuntu-jdk11","8.17.0-EAP02-jdk11","8.17.0-EAP02","8.17.0-EAP01-ubuntu-jdk11","8.17.0-EAP01-jdk11","8.17.0-EAP01","8.8.0-ubuntu-jdk-11","8.8.1-ubuntu-jdk-11","8.8-ubuntu-jdk-11","8.7-jdk11","8.7-ubuntu-jdk11","8.7","8.7.1-jdk11","8.7.1","8.7.1-ubuntu-jdk11","8.7.0-jdk11","8.7.0-ubuntu-jdk11","8.7.0","8.5.18","8.5.18-jdk11","8.5.18-ubuntu-jdk11","8.5.19-jdk11","8.5.19-ubuntu-jdk11","8.5-jdk11","8.5-ubuntu-jdk11","8.5","8.5.19","8.5.2-ubuntu-jdk11","8.5.2","8.5.2-jdk11","8.5.3","8.5.3-ubuntu-jdk11","8.5.3-jdk11","8.5.4-ubuntu-jdk11","8.5.4","8.5.4-jdk11","8.5.5-jdk11","8.5.5-ubuntu-jdk11","8.5.5","8.5.6-ubuntu-jdk11","8.5.6","8.5.6-jdk11","8.5.7-ubuntu-jdk11","8.5.7","8.5.12-ubuntu-jdk11","8.5.7-jdk11","8.5.12","8.5.12-jdk11","8.5.8","8.5.8-jdk11","8.5.8-ubuntu-jdk11","8.5.13-jdk11","8.5.13","8.5.13-ubuntu-jdk11","8.5.9-jdk11","8.5.9","8.5.9-ubuntu-jdk11","8.5.14-jdk11","8.5.0-ubuntu-jdk11","8.5.14","8.5.0","8.5.14-ubuntu-jdk11","8.5.0-jdk11","8.6.0-jdk11","8.6.0","8.6.0-ubuntu-jdk11","8.5.15-jdk11","8.5.1","8.5.15","8.5.1-ubuntu-jdk11","8.5.15-ubuntu-jdk11","8.5.1-jdk11","8.6","8.6-ubuntu-jdk11","8.6.1-ubuntu-jdk11","8.6.1","8.5.16","8.5.10-ubuntu-jdk11","8.6.1-jdk11","8.5.16-ubuntu-jdk11","8.5.10","8.6-jdk11","8.5.16-jdk11","8.5.10-jdk11","8.5.17","8.5.11","8.5.17-ubuntu-jdk11","8.5.11-jdk11","8.5.17-jdk11","8.5.11-ubuntu-jdk11","8.14.0-jdk8","8.14.0-ubuntu-jdk8","8.14.0-ubuntu","8.14.1-jdk8","8.14-jdk8","8.14.1-ubuntu","8.14.1-ubuntu-jdk8","8.14-ubuntu","8.14-ubuntu-jdk8","8.15.0-ubuntu","8.15.0-jdk8","8.15.0-ubuntu-jdk8","8.15-ubuntu","8.15.1-ubuntu","8.15-ubuntu-jdk8","8.15.1-ubuntu-jdk8","8.15.1-jdk8","8.15-jdk8","8.16.0-ubuntu","8.16.0-ubuntu-jdk8","8.16.0-jdk8","8.18.1-jdk8","8.18.1-ubuntu","8.7.1-ubuntu-jdk8","8.18.1-ubuntu-jdk8","8.7-jdk8","8.16.1-jdk8","8.16.1-ubuntu-jdk8","8.7.1-ubuntu","8.16.1-ubuntu","8.7.1-jdk8","8.7-ubuntu","8.18.2-ubuntu","8.7-ubuntu-jdk8","8.18-ubuntu","8.18-jdk8","8.16-ubuntu","8.18.2-jdk8","8.18-ubuntu-jdk8","8.16-ubuntu-jdk8","8.10.0-ubuntu-jdk8","8.18.2-ubuntu-jdk8","8.10.0-ubuntu","8.16.2-jdk8","8.13.1-ubuntu","8.10.0-jdk8","8.16-jdk8","8.13.1-ubuntu-jdk8","8.16.2-ubuntu","8.12.0-ubuntu-jdk8","8.12.0-ubuntu","8.16.2-ubuntu-jdk8","8.8.0-ubuntu","8.8.0-jdk8","8.5.8-jdk8","8.5.15-ubuntu","8.10.1-ubuntu","8.5.8-ubuntu-jdk8","8.5.15-ubuntu-jdk8","8.8.0-ubuntu-jdk8","8.12.0-jdk8","8.5.15-jdk8","8.13.1-jdk8","8.5.8-ubuntu","8.10.1-ubuntu-jdk8","8.19-ubuntu-jdk8","8.10-ubuntu-jdk8","8.5.16-jdk8","8.12.1-ubuntu-jdk8","8.8.1-ubuntu-jdk8","8.10.1-jdk8","8.13-jdk8","8.12.1-ubuntu","8.8-ubuntu","8.10-ubuntu","8.13.10-jdk8","8.5.16-ubuntu-jdk8","8.5.9-ubuntu-jdk8","8.12.1-jdk8","8.8.1-ubuntu","8.13.10-ubuntu-jdk8","8.19.0-ubuntu-jdk8","8.5.16-ubuntu","8.5.9-jdk8","8.17.0-ubuntu-jdk8","8.10-jdk8","8.13-ubuntu","8-ubuntu-jdk8","8.5.9-ubuntu","8.8-jdk8","jdk8","8.8.1-jdk8","8.19-ubuntu","8.17.0-ubuntu","8.8-ubuntu-jdk8","8.5.3-ubuntu-jdk8","8.13.5-ubuntu-jdk8","8.19-jdk8","8.5.10-jdk8","8.17.0-jdk8","8.5.17-jdk8","8.5.3-jdk8","8.13.5-ubuntu","8.12.2-ubuntu","8.5.10-ubuntu","8.19.0-ubuntu","8.13-ubuntu-jdk8","8.6.0-ubuntu-jdk8","8.5.17-ubuntu","8.13.5-jdk8","8.12.2-ubuntu-jdk8","8.5.10-ubuntu-jdk8","8.6.0-ubuntu","8.5.17-ubuntu-jdk8","8.5.3-ubuntu","ubuntu-jdk8","8.12.2-jdk8","8.19.0-jdk8","8.17-ubuntu","8.6.0-jdk8","8-jdk8","8.17.1-jdk8","8.13.6-jdk8","ubuntu","8.11.0-ubuntu","8.5.11-jdk8","8-ubuntu","8.5.4-jdk8","8.5.18-ubuntu-jdk8","8.17.1-ubuntu","8.12.3-ubuntu","8.11.0-jdk8","8.13.6-ubuntu-jdk8","8.5.11-ubuntu","8.5.4-ubuntu","8.17.1-ubuntu-jdk8","8.6.1-jdk8","8.5.18-jdk8","8.13.6-ubuntu","8.5.11-ubuntu-jdk8","8.9.0-ubuntu-jdk8","8.5.4-ubuntu-jdk8","8.12.3-jdk8","8.17-jdk8","8.5-ubuntu-jdk8","8.11.0-ubuntu-jdk8","8.9.0-jdk8","8.12-jdk8","8.5-jdk8","8.9.0-ubuntu","8.12-ubuntu-jdk8","8.6.1-ubuntu","8.17-ubuntu-jdk8","8.12.3-ubuntu-jdk8","8.6.1-ubuntu-jdk8","8.5-ubuntu","8.13.7-jdk8","8.13.2-ubuntu-jdk8","8.5.5-jdk8","8.6-ubuntu","8.13.7-ubuntu-jdk8","8.11-jdk8","8.13.2-ubuntu","8.5.5-ubuntu-jdk8","8.6-jdk8","8.12-ubuntu","8.5.12-ubuntu-jdk8","8.11-ubuntu-jdk8","8.5.18-ubuntu","8.13.7-ubuntu","8.5.5-ubuntu","8.6-ubuntu-jdk8","8.5.12-ubuntu","8.13.2-jdk8","8.5.12-jdk8","8.11.1-jdk8","8.9-ubuntu-jdk8","8.11-ubuntu","8.9.1-jdk8","8.11.1-ubuntu","8.9.1-ubuntu-jdk8","8.11.1-ubuntu-jdk8","8.9-jdk8","8.13.3-ubuntu","8.13.8-ubuntu-jdk8","8.5.6-jdk8","8.9-ubuntu","8.5.0-jdk8","8.5.13-jdk8","8.5.0-ubuntu-jdk8","8.13.3-jdk8","8.5.6-ubuntu-jdk8","8.13.8-ubuntu","8.5.13-ubuntu","8.9.1-ubuntu","8.5.0-ubuntu","8.13.3-ubuntu-jdk8","8.5.6-ubuntu","8.13.8-jdk8","8.5.13-ubuntu-jdk8","8.18.0-jdk8","8.13.0-jdk8","8.5.7-jdk8","8.5.2-jdk8","8.13.9-ubuntu-jdk8","8.7.0-ubuntu","8.5.14-ubuntu","8.18.0-ubuntu","8.5.1-ubuntu-jdk8","8.5.7-ubuntu","8.5.2-ubuntu-jdk8","8.13.4-ubuntu-jdk8","8.13.0-ubuntu-jdk8","8.7.0-jdk8","8.18.0-ubuntu-jdk8","8.5.2-ubuntu","8.13.4-jdk8","8.13.0-ubuntu","8.13.9-jdk8","8.5.1-ubuntu","8.5.14-jdk8","8.5.7-ubuntu-jdk8","8.13.4-ubuntu","8.13.9-ubuntu","8.5.1-jdk8","8.5.14-ubuntu-jdk8","8.7.0-ubuntu-jdk8","8.13.10-ubuntu","8.3.5-jdk8","8.3.5","8.3.5-ubuntu-jdk8","8.3-ubuntu","8.3-jdk8","8.3","8.3.5-ubuntu","7.13.13-ubuntu","8.3-ubuntu-jdk8","7.13.13-jdk8","7.13.4-ubuntu-jdk8","7.13.13-ubuntu-jdk8","7.13.4","7.13.13","7.13.4-ubuntu","7.13.4-jdk8","8.2.4","8.2.4-ubuntu-jdk8","8.2.4-ubuntu","8.1.3-jdk8","7.13.14-ubuntu-jdk8","8.2.4-jdk8","7.13.14","8.1.3-ubuntu","7.13.5-jdk8","7.13.14-jdk8","8.1-ubuntu","7.13.5-ubuntu-jdk8","7.13.14-ubuntu","8.4.0","7.13.5-ubuntu","8.4.0-jdk8","8.2.5-ubuntu","7.13.5","8.4.0-ubuntu-jdk8","8.2.5","8.4.0-ubuntu","8.2.5-ubuntu-jdk8","8.2.5-jdk8","7.13.15","7.13.15-jdk8","7.13.6-ubuntu","7.13.15-ubuntu","7.13.6-ubuntu-jdk8","7.13.15-ubuntu-jdk8","8.4.1-ubuntu-jdk8","7.13.6","8.4.1-ubuntu","8.2","7.13.6-jdk8","8.4.1-jdk8","8.2-jdk8","8.4.1","8.2-ubuntu-jdk8","8.2-ubuntu","7.13.16-ubuntu-jdk8","8.2.6-ubuntu","7.13.16-jdk8","8.2.6-jdk8","7.13.8-ubuntu","7.13.16","8.2.6-ubuntu-jdk8","7.13.16-ubuntu","8.4.2","7.13.8-jdk8","8.2.6","8.4.2-jdk8","7.13.8-ubuntu-jdk8","8.4.2-ubuntu","7.13.8","8.4.2-ubuntu-jdk8","7.13.17-ubuntu-jdk8","8.4.1-ubuntu-jdk11","8.2.2-ubuntu-jdk11","7.13.17-ubuntu","8.4.1-jdk11","8.3.1-ubuntu-jdk11","8.2.2-jdk11","7.13.17","7.13.9-ubuntu","8.3.1-jdk11","7.13.17-jdk8","8.4.3-ubuntu","7.13.9","8.4.3-jdk8","7.13.9-ubuntu-jdk8","8.4.3","7.13.9-jdk8","8.2.3-jdk11","8.4.2-ubuntu-jdk11","8.4-jdk8","8.2.3-ubuntu-jdk11","8.3.2-ubuntu-jdk11","7.13-jdk8","8.4.3-ubuntu-jdk8","8.4.2-jdk11","8.3.2-jdk11","7.13-ubuntu-jdk8","8.4-ubuntu-jdk8","8.3.0-ubuntu-jdk8","7-jdk8","8.4-ubuntu","8.0.0-jdk8","8.3.0","7.13.18","8.4","8.0.0-ubuntu","8.3.0-ubuntu","7.13","8.2.4-ubuntu-jdk11","8.0.0-ubuntu-jdk8","8.4-jdk11","8.3.0-jdk8","7.13-ubuntu","8.2.4-jdk11","8.3.3-ubuntu-jdk11","8.0.0","8.4.3-jdk11","7-ubuntu","8.3.3-jdk11","8.4-ubuntu-jdk11","7","7-ubuntu-jdk8","8.4.3-ubuntu-jdk11","7.13.18-jdk8","8.3.1-jdk8","8.0.2","8.2.5-jdk11","7.13.18-ubuntu-jdk8","8.3.1","8.2.0","8.0.2-ubuntu","8.3.4-ubuntu-jdk11","8.2.5-ubuntu-jdk11","8.3.1-ubuntu-jdk8","7.13.18-ubuntu","8.2.0-ubuntu-jdk8","8.0.2-jdk8","8.3.4-jdk11","8.3.1-ubuntu","8.2.0-ubuntu","8.0.2-ubuntu-jdk8","8.2.0-jdk8","8.2-ubuntu-jdk11","8.3-jdk11","8.2.6-jdk11","8.3.2-ubuntu-jdk8","8.0-jdk8","8.3.5-jdk11","8.2.1","8.3.2","8.2-jdk11","8.0.3-jdk8","8.3.5-ubuntu-jdk11","8.2.1-ubuntu-jdk8","8.3.2-jdk8","8.2.6-ubuntu-jdk11","8.0-ubuntu","8.3-ubuntu-jdk11","8.2.1-ubuntu","8.3.2-ubuntu","8.0","8.2.1-jdk8","8.0.3","8.0.3-ubuntu","8.0-ubuntu-jdk8","7.13.2-jdk8","8.0.3-ubuntu-jdk8","8.3.3-jdk8","7.13.2-ubuntu-jdk8","8.2.2-ubuntu","8.3.3-ubuntu","7.13.2","8.2.2-ubuntu-jdk8","8.3.3","7.13.2-ubuntu","8.2.2-jdk8","8.2.0-ubuntu-jdk11","8.3.3-ubuntu-jdk8","8.2.2","8.2.0-jdk11","7.13.3-ubuntu","8.3.0-ubuntu-jdk11","7.13.3-ubuntu-jdk8","8.3.4-ubuntu-jdk8","8.2.3-ubuntu-jdk8","8.4.0-ubuntu-jdk11","8.2.1-ubuntu-jdk11","7.13.3-jdk8","8.3.0-jdk11","8.3.4-jdk8","8.2.3","8.4.0-jdk11","8.2.1-jdk11","7.13.3","8.3.4-ubuntu","8.2.3-jdk8","8.3.4","8.2.3-ubuntu","8.19.0-RC01-ubuntu-jdk8","8.19.0-RC01-jdk8","8.19.0-RC01-ubuntu","7.13.0-ubuntu-jdk8","7.13.0","7.13.0-ubuntu","7.13.0-jdk8","7.13.1-ubuntu-jdk8","7.13.1-jdk8","7.13.1-ubuntu","7.13.1","7.13.11-ubuntu","7.13.11","8.1.0-jdk8","8.1.0","7.13.11-ubuntu-jdk8","8.1.0-ubuntu-jdk8","7.13.11-jdk8","8.1.0-ubuntu","7.13.12-ubuntu","8.1.1-ubuntu","7.13.12","8.1.1-jdk8","7.13.12-jdk8","8.1.1","7.13.12-ubuntu-jdk8","8.1.1-ubuntu-jdk8","8.1.2-ubuntu-jdk8","8.1.2-ubuntu","8.1.2","8.1.2-jdk8","8.1.3-ubuntu-jdk8","8.1","8.1.3","8.1-jdk8","8.1-ubuntu-jdk8","eap-ubuntu","8.19.0-EAP02-ubuntu","eap-ubuntu-jdk8","8.19.0-EAP02-ubuntu-jdk8","eap-jdk8","8.19.0-EAP02-jdk8","8.19.0-EAP01-ubuntu","8.19.0-EAP01-jdk8","8.19.0-EAP01-ubuntu-jdk8","8.19.0-EAP01-ubuntu-jdk11","8.18.0-ssmith-perm-build-1","8.18.0-RC01-ubuntu","8.18.0-RC01-ubuntu-jdk8","8.18.0-RC01-jdk8","8.18.0-EAP02-ubuntu-jdk8","8.18.0-EAP02-jdk8","8.18.0-EAP02-ubuntu","8.18.0-EAP02-ubuntu-jdk11","8.18.0-EAP01-ubuntu","8.18.0-EAP01-jdk8","8.18.0-EAP01-ubuntu-jdk8","8.17.0-RC02-jdk8","8.17.0-RC02-ubuntu","8.17.0-RC02-ubuntu-jdk8","8.17.0-RC01-jdk8","8.17.0-RC01-ubuntu-jdk8","8.17.0-RC01-ubuntu","8.17.0-EAP02-ubuntu","8.17.0-EAP02-jdk8","8.17.0-EAP02-ubuntu-jdk8","8.17.0-EAP01-ubuntu","8.17.0-EAP01-ubuntu-jdk8","8.17.0-EAP01-jdk8","8.16.0-EAP02-ubuntu-jdk8","8.16.0-EAP02-jdk8","8.16.0-EAP02-ubuntu","8.16.0-EAP02","8.16.0-EAP02-jdk11","8.16.0-EAP02-ubuntu-jdk11","8.16.0-RC01-ubuntu-jdk11","8.16.0-RC01-jdk11","8.16.0-EAP03","8.16.0-EAP03-ubuntu-jdk11","8.16.0-EAP03-ubuntu-jdk8","8.16.0-EAP03-jdk11","8.16.0-EAP03-jdk8","8.16.0-EAP03-ubuntu","8.16.0-RC01-ubuntu-jdk8","8.16.0-RC01-ubuntu","8.16.0-RC01","8.16.0-RC01-jdk8","8.16.0-RC02-ubuntu-jdk11","8.16.0-RC02-jdk11","8.16.0-RC02","8.16.0-RC02-ubuntu","8.16.0-RC02-ubuntu-jdk8","8.16.0-RC02-jdk8","8.16.0-EAP01","8.16.0-EAP01-jdk8","8.16.0-EAP01-ubuntu","8.16.0-EAP01-ubuntu-jdk11","8.16.0-EAP01-jdk11","8.15.0-RC01","8.15.0-RC01-jdk8","8.15.0-RC01-ubuntu-jdk11","8.15.0-RC01-ubuntu","8.15.0-RC01-jdk11","8.15.0-EAP03-jdk11","8.15.0-EAP03-ubuntu-jdk11","8.15.0-EAP03-jdk8","8.15.0-EAP03","8.15.0-EAP03-ubuntu","8.15.0-EAP02-ubuntu","8.15.0-EAP02","8.15.0-EAP02-jdk8","8.15.0-EAP02-ubuntu-jdk11","8.15.0-EAP02-jdk11","8.15.0-EAP01-ubuntu-jdk11","8.15.0-EAP01-jdk11","8.15.0-EAP01","8.15.0-EAP01-ubuntu","8.15.0-EAP01-jdk8","8.14.0-RC01-jdk11","8.14.0-RC01-ubuntu-jdk11","8.14.0-RC01","8.14.0-RC01-ubuntu","8.14.0-RC01-jdk8","8.14.0-EAP01-ubuntu","8.14.0-EAP01","8.14.0-EAP01-jdk8","8.14.0-EAP01-ubuntu-jdk11","8.14.0-EAP01-jdk11","8.13.0-RC01","8.13.0-RC01-jdk11","8.13.0-RC01-ubuntu","8.13.0-RC01-ubuntu-jdk11","8.13.0-RC01-jdk8","8.13.0-EAP03-jdk8","8.13.0-EAP03","8.13.0-EAP03-ubuntu","8.13.0-EAP03-ubuntu-jdk11","8.13.0-EAP03-jdk11","8.13.0-EAP02","8.13.0-EAP02-ubuntu","8.13.0-EAP02-jdk8","8.13.0-EAP02-jdk11","8.13.0-EAP02-ubuntu-jdk11","8.12.0-RC02-jdk11","8.12.0-RC02-ubuntu-jdk11","8.12.0-RC02-jdk8","8.12.0-RC02-ubuntu","8.12.0-RC02","8.13.0-EAP01-jdk11","8.13.0-EAP01-ubuntu-jdk11","8.12.0-RC01-jdk11","8.12.0-RC01-ubuntu-jdk11","8.13.0-EAP01-jdk8","8.13.0-EAP01-ubuntu","8.13.0-EAP01","8.12.0-RC01-jdk8","8.12.0-RC01-ubuntu","8.12.0-RC01","8.12.0-EAP02-ubuntu-jdk11","8.12.0-EAP02-jdk11","8.12.0-EAP02","8.12.0-EAP02-ubuntu","8.12.0-EAP02-jdk8","8.12.0-EAP01-jdk11","8.12.0-EAP01-ubuntu-jdk11","8.12.0-EAP01","8.12.0-EAP01-jdk8","8.12.0-EAP01-ubuntu","8.5.6-RC02-jdk8","8.5.6-RC02-ubuntu","8.5.6-RC02","8.5.6-RC02-ubuntu-jdk11","8.5.6-RC02-jdk11","8.11.0-RC01","8.11.0-RC01-jdk8","8.11.0-RC01-ubuntu","8.11.0-RC01-jdk11","8.11.0-RC01-ubuntu-jdk11","8.11.0-EAP01-ubuntu-jdk11","8.11.0-EAP01-jdk11","8.11.0-EAP01-jdk8","8.11.0-EAP01-ubuntu","8.11.0-EAP01","8.10.0-RC01-ubuntu","8.10.0-RC01","8.10.0-RC01-jdk8","8.10.0-RC01-jdk11","8.10.0-RC01-ubuntu-jdk11","7.13.14-RC01","7.13.14-RC01-ubuntu","7.13.14-RC01-jdk8","8.10.0-EAP02-jdk8","8.10.0-EAP02","8.10.0-EAP02-ubuntu","8.10.0-EAP01-jdk8","8.10.0-EAP01","8.10.0-EAP01-ubuntu","8.10.0-EAP01-ubuntu-jdk11","7.13.15-RC01-ubuntu","8.10.0-EAP01-jdk11","7.13.15-RC01","7.13.15-RC01-jdk8","8.10.0-EAP02-ubuntu-jdk11","8.10.0-EAP02-jdk11","8.5.6-RC01-jdk11","8.5.6-RC01-ubuntu-jdk11","8.5.6-RC01","8.5.6-RC01-ubuntu","8.5.6-RC01-jdk8","8.5.5-RC01-jdk11","8.5.5-RC01-ubuntu-jdk11","8.5.5-RC01","8.5.5-RC01-jdk8","8.5.5-RC01-ubuntu","8.9.0-RC01-ubuntu","8.9.0-RC01-jdk8","8.9.0-RC01","8.9.0-RC01-jdk11","8.9.0-RC01-ubuntu-jdk11","8.9.0-EAP02-jdk11","8.9.0-EAP02-ubuntu-jdk11","8.9.0-EAP02-jdk8","8.9.0-EAP02-ubuntu","8.9.0-EAP02","8.9.0-EAP01-ubuntu-jdk11","8.9.0-EAP01-jdk11","8.9.0-EAP01-ubuntu","8.9.0-EAP01","8.9.0-EAP01-jdk8","8.8.0-RC02-ubuntu-jdk11","8.8.0-RC02-jdk11","8.8.0-RC02-jdk8","8.8.0-RC02-ubuntu","8.8.0-RC02"];!function(u){u.JIRA="jira",u.CONFLUENCE="confluence",u.BITBUCKET="bitbucket",u.BAMBOO="bamboo"}(O||(O={}));const{P:q,activeProfiles:I}=c(r(process.argv)).parseSync(),U=q||I||void 0;class AMPS{static maven;static stop(){AMPS.maven&&AMPS.maven.kill(0)}static async build(u){return new Promise(((t,d)=>{if(AMPS.maven){AMPS.maven.kill(0)||d(new Error("Failed to terminate existing Maven process"))}AMPS.maven=j("mvn",["package",...u],{cwd:a(),stdio:"inherit"}),AMPS.maven.on("exit",(u=>{AMPS.maven=null,0===u||130===u?t():d(new Error(`Maven exited with code ${u}`))}))}))}static isAtlassianPlugin=()=>{try{return AMPS.getNodes("//*[local-name()='packaging']").some((u=>"atlassian-plugin"===u.textContent))}catch(u){return!1}};static getApplicationVersion(){const u=U?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${U}']/..//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']`,!0):AMPS.getNodes("//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']",!0);if(u){const t=u.parentNode;if(t){const{plugin:u}=AMPS.toObject(t),d=u?.configuration?.productVersion;return d?this.doPropertyReplacement(d):void 0}}}static getApplication(){const u=AMPS.getApplications();if(1===u.length)return u[0];if(U){const u=AMPS.getApplications(U);if(1===u.length)return u[0]}return null}static getApplications(u){const t=new Set;return(u?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${u}']/..//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']`):AMPS.getNodes("//*[local-name()='groupId' and text()='com.atlassian.maven.plugins']")).forEach((u=>{const d=u.parentNode;if(d){const{plugin:u}=AMPS.toObject(d);u?.artifactId?.includes(O.JIRA)?t.add(O.JIRA):u?.artifactId?.includes(O.CONFLUENCE)?t.add(O.CONFLUENCE):u?.artifactId?.includes(O.BAMBOO)?t.add(O.BAMBOO):u?.artifactId?.includes(O.BITBUCKET)&&t.add(O.BITBUCKET)}})),Array.from(t)}static doPropertyReplacement(u){let t=u;const d=U?AMPS.getProperties(U):{};Object.entries(d).forEach((([u,d])=>{t=t.replaceAll(`\${${u}}`,d)}));const n=AMPS.getProperties();return Object.entries(n).forEach((([u,d])=>{t=t.replaceAll(`\${${u}}`,d)})),t}static getProperties(u){const t={};return(u?AMPS.getNodes(`//*[local-name()='profile']/*[local-name()='id' and text()='${u}']/..//*[local-name()='properties']`):AMPS.getNodes("//*[local-name()='properties']")).forEach((u=>{const{properties:d}=AMPS.toObject(u);Object.entries(d).forEach((([u,d])=>t[u]=d))})),t}static getNodes(u,t){if(e("./pom.xml")){const d=s("./pom.xml","utf8"),k=(new n).parseFromString(d,"text/xml"),j=t?o.select(u,k,!0):o.select(u,k,!1);return Array.isArray(j)||t?j:[]}return[]}static toObject(u){try{return(new b).parse((new k).serializeToString(u))}catch(u){return null}}}const $="AAACBA0ODAoPeNp9kl1v2jAUhu/zK460OyQHSLuVIkUaTbwNVBKUhEnbugsTDuA2sSPbgbFfPxOC1i+4yEXO5+vnPR+yGiGSW/CuoXc7vBoMvT4ENAOv5/WctUIUG1lVqNx7nqPQSJfccCl8GmU0mSXjlDpRXS5Qxau5RqV90ncCKQzLTcRK9Eu944Ip/cQ/M1MwrTkTbi5LZ1arfMM0hsyg7/X6A9LvE89z2j3ZvsJmQBBPpzQJxqP7U4r+qbjaN32zG+/baR2dMl6c35ei2qIah/4dvaHkOvzpkU/x5IZ8vbodOI9cMbdSclnnxj38EC1XZscUunYy36JvVI3OxGZmbZXdzwIU5lVJWi90rnjVQGoi70B873GNhPOQO51OFGfkS5yQWRKH8yAbxxGZp9Qm/EChpbGExR7MBqGdAlTkcokK7MMeMTfwa2NM9TDsdtfSfQGnWxw7CB47frsQShDSwJJro/iiNmgncw1GQl5rI0trtetY4sKgYCJ/Y4qVFSR0lNGQ3P04aDxrTKvWOjMXT0LuxCU33txaSiPffuRjr3fsO/mC6og/VmsmuGYN0Ij93TFYcVXunQaaDb4+wJbFd7vg0OI5If53NENtoK2AlVQwGScjSFt5lrjdWymu8WEIgSwtppyzAsLgxRk8P5hG9PMA3bKiPspdsULjJRwX7ukf5/NX7TAtAhUAhQSHz9DgycOX7wcwERMJb3TLGb4CFGkB/xUWSRK3BZLrPF9Rn6ZmrUqJX02oc",N="AAACzg0ODAoPeNp9VO9v2jAQ/Z6/wtK+IYWGsEKHFGmQmJau/GgIm9iYJhMOYprYke1A4a+fSchGKtqPPvvevXv3zp/6gqLHLEb2HbKsTvNzp9lC98MA2ZbdNKYgdiAGntPDQ2z688HcdH/aM7P5o2kZTzQEJiE4pDAiCTgBngaD0b0RCr5f1S9uHfcUWXSQBzuIeQrCCDlb10mo6A4cJTLQSVlIlzFUggpI8ickMbAVEbI+ypIliPG6R5Il5z4kXEF3A0xJp1Gywa8pFQePKHAmDdt6+A9cJVQEK5yWmhMV8HGZLRWkwrF8PZMgpGPfGh7IUNBUUc6cAKRCcVEYrblAaZxtKEOrsqj8V/US85zxXd+fUGwD70ickRwyf7ARACziqUYo+8Irmt/jUYD9iT+YYmNIKFPACAuvyHIaQEUSHYgz0G8rorgC8rp5qvaEZVp3pt0u8sve3TiTCsSIr0A6llGr1VwfdwPsmb25PjjbVwq2EcZcm6nS6DKX+I3iT1yP/Cy42TBe4FAK0WhZVtu6azYbZeZlB0U2wrpnkQoqq40Uyst67RqB9zU8k64olYeqKnGmNCzWiseOUoKwhLLoK1ExkZISVg95cr3ZN/YqdueSYW649/mdrfJAZOQM3b3b96DRuhVk3261kkFvexwe41UQtJN12u5Gz6GcPT7Pn71H70t69CPcbx/a9rcj3rDuwlk4xprKCA5VN+oJjsaB2R/75sQfezM3GIxH5myKT6PN/QErtDwgFQE6E9VDCLUZtN8F30Ko0K9IqXTRubnZ8HpFlZtzAyYUGb/ryOOIcYVWVCpBl5kCjUwlUhyF2mY80WaoXxdzEhOWe2YsNoRRWWxMt6xX/hH6P5uxF8b3rLJIlz1LpQW95pQPvqfLq0kmwohIeLs2l9PMzfQ48LvvWTbfMY1AXDg9KJDLCV2C9HUMH+CaJfOfudi/v0kIGVswLAIUEMQ9X77gqGBdfH0HIzBaV8NadPUCFBn+RiUA4D+IqVQpTTouLVY66aCGX02121",toAbsolutePath=u=>{const[,t]=process.argv,d=A(t),n=d.substring(0,d.indexOf("dcdx")+4);return l(n,u.replaceAll("../",""))},_={name:"shared",driver:"bridge"};let Q=class Base extends m{options;sequelize=null;constructor(u){super(),this.options=u}async run(u,t){try{if(!this.sequelize)throw new Error("Database connection does not exist");await this.sequelize.query(u,{logging:t})}catch(t){console.error("An error occurred while trying to run the following SQL query:",u,t),d()}return null}async start(u=this.options.clean){console.log(`Starting instance of ${this.name} ⏳`),u&&await this.down(),await this.up(),this.emit(`${this.name}:up`);if(await this.waitUntilReady()){if(console.log(`Database is ready and accepting connections on localhost:${this.options.port} 🗄️`),await this.onDatabaseReady(),this.emit("db:ready"),this.options.logging){const u=await this.getServiceState();u&&await this.showDockerLogs(u.name)}}else console.log(`Failed to start database ${this.name} ⛔`),d(0)}async stop(u=this.options.prune){if(u)await this.down();else{const u=g(this.getDockerComposeConfig());await E({cwd:a(),configAsString:u,log:!0})}this.emit("db:stopped")}async onDatabaseReady(){}getDockerComposeConfig(){return{version:"3.8",services:{db:this.getService()},networks:{shared:_}}}async up(){const u=g(this.getDockerComposeConfig());return f({cwd:a(),configAsString:u,log:!0})}async down(){const u=g(this.getDockerComposeConfig());return p({cwd:a(),configAsString:u,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async waitUntilReady(){try{const u="mssql"===this.name?"master":this.options.database;return this.sequelize=new v(u,this.options.username,this.options.password,{host:"localhost",port:this.options.port,dialect:this.name.replace("postgresql","postgres"),retry:{max:30,match:[y,x,T,D,M],backoffBase:1e3,backoffExponent:1},logging:!1}),this.sequelize.authenticate().then((()=>!0)).catch((u=>(console.log(u),!1)))}catch(u){return!1}}async getServiceState(){const u=g(this.getDockerComposeConfig());return(await C({configAsString:u,log:!1,commandOptions:["--all"]})).data.services.find((u=>u.name.includes(this.name)))}async showDockerLogs(u){return new Promise(((t,d)=>{j("docker",["logs","-f","-n","5000",u],{cwd:a(),stdio:"inherit"}).on("exit",(u=>0===u?t():d(new Error(`Docker exited with code ${u}`))))}))}};const B={port:1433,database:"dcdx",username:"sa",password:"DataCenterDX!",edition:"Developer",version:"2022"};class MSSQL extends Q{name="mssql";driver="com.microsoft.sqlserver.jdbc.SQLServerDriver";options=B;version="2022";get url(){return`jdbc:sqlserver://db:${this.options.port};databaseName=${this.options.database};trustServerCertificate=true`}constructor(u=B){super({...B,...u})}async onDatabaseReady(){await this.run(`CREATE DATABASE ${this.options.database}`),await this.run(`ALTER DATABASE ${this.options.database} COLLATE SQL_Latin1_General_CP1_CS_AS`),await this.run(`ALTER DATABASE ${this.options.database} SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE;`)}getService=()=>({image:`mcr.microsoft.com/mssql/server:${this.version}-latest`,ports:[`${this.options.port||1433}:1433`],environment:{ACCEPT_EULA:"y",MSSQL_SA_PASSWORD:this.options.password||"dcdx",MSSQL_PID:this.options.edition},networks:{shared:{aliases:["db","database"]}}})}const G={port:3306,database:"dcdx",username:"dcdx",password:"dcdx",version:"8.0"};class MySQL extends Q{name="mysql";driver="com.mysql.jdbc.Driver";options=G;version="8.0";get url(){return`jdbc:mysql://db:${this.options.port}/${this.options.database}?sessionVariables=transaction_isolation='READ-COMMITTED'`}constructor(u=G){super({...G,...u})}async onDatabaseReady(){await this.run(`ALTER DATABASE ${this.options.database} CHARACTER SET 'utf8mb4' COLLATE utf8mb4_bin`)}getService=()=>({image:`mysql:${this.version}`,ports:[`${this.options.port||3306}:3306`],environment:{MYSQL_ROOT_PASSWORD:this.options.password||"dcdx",MYSQL_USER:this.options.username||"dcdx",MYSQL_PASSWORD:this.options.password||"dcdx",MYSQL_DATABASE:this.options.database||"dcdx"},command:["--log_bin_trust_function_creators=1"],networks:{shared:{aliases:["db","database"]}}})}const V={version:"15",database:"dcdx",port:5432,username:"dcdx",password:"dcdx"};class Postgres extends Q{name="postgresql";driver="org.postgresql.Driver";options=V;version="15";get url(){return`jdbc:postgresql://db:${this.options.port}/${this.options.database}`}constructor(u=V){super({...V,...u})}getService=()=>({image:`postgres:${this.version}`,ports:[`${this.options.port||5432}:5432`],environment:{POSTGRES_USER:this.options.username||"dcdx",POSTGRES_PASSWORD:this.options.password||"dcdx",POSTGRES_DB:this.options.database||"dcdx",POSTGRES_HOST_AUTH_METHOD:"md5",POSTGRES_INITDB_ARGS:"--encoding=UTF-8 --lc-collate=C --lc-ctype=C"},networks:{shared:{aliases:["db","database"]}}})}const z=l(w(),".dcdx");class Base extends m{options;constructor(u){super(),this.options=u}get baseUrl(){let u="http://localhost";return this.options.port&&(u+=`:${this.options.port}`),this.options.contextPath?`${u}/${this.options.contextPath}`:u}getDatabaseEngine(u){switch(u){case"postgresql":return new Postgres;case"mssql":return new MSSQL;case"mysql":return new MySQL}}async start(){this.options.clean&&await this.down(),await this.build(this.options.version),await this.database.start(this.options.clean),await this.up()}async stop(){if(await this.database.stop(this.options.prune),this.options.prune)await this.down();else{const u=g(this.getDockerComposeConfig());await E({cwd:a(),configAsString:u,log:!0})}this.emit(`${this.name}:stopped`)}async reset(){await this.database.stop(!0),await this.down()}async cp(u){const t=await this.getServiceState();if(t&&t.state.toLowerCase().startsWith("up")){const t=this.getDockerComposeConfig(),d=g(t);await h("cp",[u,`${this.name}:/opt/quickreload/`],{cwd:a(),configAsString:d,log:!1})}}async isApplicationReady(){try{const u=await P.get(`${this.baseUrl}/status`,{validateStatus:()=>!0}).catch((()=>null));if(u&&200===u.status){const{data:t}=u;if("FIRST_RUN"===t.state)return console.log(`The application ${this.name} is ready on ${this.baseUrl} 🎉`),!0}return!1}catch(u){return!1}}getDockerComposeConfig(){return{version:"3.8",services:{[this.name]:this.getService()},networks:{shared:_}}}async up(){const u=this.getDockerComposeConfig(),t=g(u);await R({cwd:a(),configAsString:t,log:!0}),this.emit(`${this.name}:up`);await this.waitUntilReady()?(this.emit(`${this.name}:ready`),await this.tailApplicationLogs()):console.log(`Failed to start ${this.name} ⛔`),d(0)}async down(){const u=g(this.getDockerComposeConfig());await p({cwd:a(),configAsString:u,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async getServiceState(){const u=g(this.getDockerComposeConfig());return(await C({configAsString:u,log:!1,commandOptions:["--all"]})).data.services.find((u=>u.name.includes(this.name)))}async waitUntilReady(u=0){console.log(`Waiting for ${this.name} to become available... ${u}s`);const t=await this.getServiceState();return!!(t&&t.state.toLowerCase().startsWith("up")&&await this.isApplicationReady())||(u>=300?(console.error(`A timeout occurred while waiting for ${this.name} to become available ⛔`),t&&await this.showDockerLogs(t.name),!1):(await new Promise((u=>setTimeout(u,1e3))),this.waitUntilReady(u+1)))}getDockerRepositoryUrl(){return`https://bitbucket.org/atlassian-docker/docker-${"jira"===this.name?"atlassian-jira":"bamboo"===this.name?`${this.name}-server`:`atlassian-${this.name}-server`}.git`}async build(u){const t=this.getDockerRepositoryUrl(),d=l(z,this.name,"source");e(d)?await S({baseDir:d}).pull({"--recurse-submodule":null}):(i(l(z,this.name),{recursive:!0}),await S().clone(t,d,{"--recurse-submodule":null})),await new Promise(((t,n)=>{j("docker",["build","-t",`dcdx/${this.name}:${u}`,"--build-arg",`${this.name.toUpperCase()}_VERSION=${u}`,"."],{cwd:d,stdio:"inherit"}).on("exit",(u=>0===u?t():n(new Error(`Docker exited with code ${u}`))))}))}async tailApplicationLogs(){const u=await this.getServiceState();u&&u.state.toLowerCase().startsWith("up")&&await this.showApplicationLogs(u.name).catch((()=>null))}async showDockerLogs(u){return new Promise(((t,d)=>{j("docker",["logs","-f","-n","5000",u],{cwd:a(),stdio:"inherit"}).on("exit",(u=>0===u?t():d(new Error(`Docker exited with code ${u}`))))}))}async showApplicationLogs(u){return new Promise(((t,d)=>{j("docker",["exec","-i",u,"tail","-F","-n","5000",this.logFilePath],{cwd:a(),stdio:"inherit"}).on("exit",(u=>0===u?t():d(new Error(`Docker exited with code ${u}`))))}))}}class Jira extends Base{name=O.JIRA;database;logFilePath="/var/atlassian/application-data/jira/log/atlassian-jira.log";constructor(u){super(u),this.database=this.getDatabaseEngine(u.database)}getService(){const u=this.getVolumes(),t=this.getEnvironmentVariables();return{build:{context:toAbsolutePath("../../assets"),dockerfile_inline:`\nFROM dcdx/${this.name}:${this.options.version}\nCOPY ./jira-data-generator-5.0.0.jar /var/atlassian/application-data/jira/plugins/installed-plugins/jira-data-generator-5.0.0.jar\nCOPY ./mysql-connector-j-8.3.0.jar /opt/atlassian/jira/lib/mysql-connector-j-8.3.0.jar\nCOPY ./quickreload-5.0.2.jar /var/atlassian/application-data/jira/plugins/installed-plugins/quickreload-5.0.2.jar\nRUN echo "/opt/quickreload" > /var/atlassian/application-data/jira/quickreload.properties; mkdir -p /opt/quickreload; chown -R jira:jira /opt/quickreload;\n\nRUN chown -R jira:jira /var/atlassian/application-data/jira`},ports:[`${this.options.port||80}:8080`,...this.options.debug?["5005:5005"]:[]],environment:Object.keys(t).length>0?t:void 0,volumes:u.length>0?u:void 0,networks:["shared"]}}getEnvironmentVariables(){const u="postgresql"===this.database.name?"postgres72":this.database.name;return{...this.options.contextPath?{ATL_TOMCAT_CONTEXTPATH:this.options.contextPath}:"",...this.options.debug?{JVM_SUPPORT_RECOMMENDED_ARGS:this.getJVMArgs()}:"",ATL_LICENSE_KEY:this.options.license||N,ATL_JDBC_URL:this.database.url,ATL_JDBC_USER:this.database.options.username,ATL_JDBC_PASSWORD:this.database.options.password,ATL_DB_DRIVER:this.database.driver,ATL_DB_TYPE:u,JIRA_SETUP_LICENSE:this.options.license||$}}getJVMArgs(){const u=[];return this.options.debug&&(u.push("-Dupm.plugin.upload.enabled=true"),u.push("-Xdebug"),u.push("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005")),this.options.quickReload&&u.push("-Dquickreload.dirs=/opt/quickreload"),u.join(" ")}getVolumes(){return[...this.options.quickReload?[`${this.options.quickReload}:/opt/quickreload`]:""]}}const J=AMPS.getApplicationVersion()||"latest";(async()=>{const d=u.showHelpAfterError(!0).addOption(new t("-v, --version <version>","The version of the host application").choices(L).default(J)).addOption(new t("-d, --database <name>","The database engine to remove data from").choices(["postgresql","mysql","mssql"]).default("postgresql")).parse(process.argv).opts(),n=new Jira({version:d.version,database:d.database});await n.reset()})(),process.on("SIGINT",(()=>{console.log("Received term signal, trying to stop gracefully 💪"),d()}));
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{program as t,Option as e}from"commander";import{gracefulExit as s,asyncExitHook as o}from"exit-hook";import a from"axios";import{dirname as i,join as n}from"path";import{spawn as r}from"child_process";import{stop as c,downAll as d,ps as p,execCompose as l,upAll as h}from"docker-compose/dist/v2.js";import m from"events";import{existsSync as u,mkdirSync as g}from"fs";import{dump as w}from"js-yaml";import{homedir as b}from"os";import{cwd as S}from"process";import v from"simple-git";import{upAll as A}from"docker-compose";import{Sequelize as f,ConnectionError as D,TimeoutError as y,ConnectionTimedOutError as E,ConnectionRefusedError as k,ConnectionAcquireTimeoutError as T}from"sequelize";const R="AAAB3w0ODAoPeNp9Ultr2zAYffevEOwtoMR10qYLGJbYWsno7GA7g90eZPlrotWWjCSnzX79FF8IYWkfDPJ3Oedwzvch2zdoWSvkzpF7v5jdLrwpCkiaIc/1POeRMxAasmMNEa3Az2xnHT04gQJquBQhNeB77vQGuzPs3jk5rXIpx5QZfgDfqAaGUtRUOaj4adX+PkpGy+UOhNE+vnGG5laDags9L3mtuToOJF5Pkja5ZorXJwEXHG+pJQdaNvS/cYtLAysBVFfu19ehvxXPQr4IJwV1AGULKzIneBb+8PBd/GWOH6Yf751No9ieaujleYMHKYl8++Fb13VGo1EUZ/hznOBNEofbIFvHEd6mxDb81kQoUH5EZg+op0dEMFmAQrWSf4AZ9HNvTP1rMZnsrLGmpFpzKsZMVpOy28DQbfweo1AiIQ0quDaK540Bi8w1MhKxRhtZWXvHTghn+zLQBvU46Ela1rLZcYEKOEApazvvfKXceiSoYG/kcTXhTUlFG+XVbgKVNHA+gF7BN8t3UuU5sdpRwXUXGnmlVV0CCmRVU3G8Evf5MKUw9vqIFV36tX7moNjfo7CPTxfenZIJErLMSIhX309pvDd8SUgK3smKMpJsknVKBtr26t4D+gd3AC5qMCwCFHOaTWfFvLCLJPft3qktVo3FafmZAhRojb9IAxj8KEqPDQy0stos394SQQ==X02mq",toAbsolutePath=t=>{const[,e]=process.argv,s=i(e),o=s.substring(0,s.indexOf("dcdx")+4);return n(o,t.replaceAll("../",""))};var C;!function(t){t.JIRA="jira",t.CONFLUENCE="confluence",t.BITBUCKET="bitbucket",t.BAMBOO="bamboo"}(C||(C={}));const O={name:"shared",driver:"bridge"};let x=class Base extends m{options;sequelize=null;constructor(t){super(),this.options=t}async run(t,e){try{if(!this.sequelize)throw new Error("Database connection does not exist");await this.sequelize.query(t,{logging:e})}catch(e){console.error("An error occurred while trying to run the following SQL query:",t,e),s()}return null}async start(t=this.options.clean){console.log(`Starting instance of ${this.name} ⏳`),t&&await this.down(),await this.up(),this.emit(`${this.name}:up`);if(await this.waitUntilReady()){if(console.log(`Database is ready and accepting connections on localhost:${this.options.port} 🗄️`),await this.onDatabaseReady(),this.emit("db:ready"),this.options.logging){const t=await this.getServiceState();t&&await this.showDockerLogs(t.name)}}else console.log(`Failed to start database ${this.name} ⛔`),s(0)}async stop(t=this.options.prune){if(t)await this.down();else{const t=w(this.getDockerComposeConfig());await c({cwd:S(),configAsString:t,log:!0})}this.emit("db:stopped")}async onDatabaseReady(){}getDockerComposeConfig(){return{version:"3.8",services:{db:this.getService()},networks:{shared:O}}}async up(){const t=w(this.getDockerComposeConfig());return A({cwd:S(),configAsString:t,log:!0})}async down(){const t=w(this.getDockerComposeConfig());return d({cwd:S(),configAsString:t,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async waitUntilReady(){try{const t="mssql"===this.name?"master":this.options.database;return this.sequelize=new f(t,this.options.username,this.options.password,{host:"localhost",port:this.options.port,dialect:this.name.replace("postgresql","postgres"),retry:{max:30,match:[D,y,E,k,T],backoffBase:1e3,backoffExponent:1},logging:!1}),this.sequelize.authenticate().then((()=>!0)).catch((t=>(console.log(t),!1)))}catch(t){return!1}}async getServiceState(){const t=w(this.getDockerComposeConfig());return(await p({configAsString:t,log:!1,commandOptions:["--all"]})).data.services.find((t=>t.name.includes(this.name)))}async showDockerLogs(t){return new Promise(((e,s)=>{r("docker",["logs","-f","-n","5000",t],{cwd:S(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}};const L={port:1433,database:"dcdx",username:"sa",password:"DataCenterDX!",edition:"Developer",version:"2022"};class MSSQL extends x{name="mssql";driver="com.microsoft.sqlserver.jdbc.SQLServerDriver";options=L;version="2022";get url(){return`jdbc:sqlserver://db:${this.options.port};databaseName=${this.options.database};trustServerCertificate=true`}constructor(t=L){super({...L,...t})}async onDatabaseReady(){await this.run(`CREATE DATABASE ${this.options.database}`),await this.run(`ALTER DATABASE ${this.options.database} COLLATE SQL_Latin1_General_CP1_CS_AS`),await this.run(`ALTER DATABASE ${this.options.database} SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE;`)}getService=()=>({image:`mcr.microsoft.com/mssql/server:${this.version}-latest`,ports:[`${this.options.port||1433}:1433`],environment:{ACCEPT_EULA:"y",MSSQL_SA_PASSWORD:this.options.password||"dcdx",MSSQL_PID:this.options.edition},networks:{shared:{aliases:["db","database"]}}})}const q={port:3306,database:"dcdx",username:"dcdx",password:"dcdx",version:"8.0"};class MySQL extends x{name="mysql";driver="com.mysql.jdbc.Driver";options=q;version="8.0";get url(){return`jdbc:mysql://db:${this.options.port}/${this.options.database}?sessionVariables=transaction_isolation='READ-COMMITTED'`}constructor(t=q){super({...q,...t})}async onDatabaseReady(){await this.run(`ALTER DATABASE ${this.options.database} CHARACTER SET 'utf8mb4' COLLATE utf8mb4_bin`)}getService=()=>({image:`mysql:${this.version}`,ports:[`${this.options.port||3306}:3306`],environment:{MYSQL_ROOT_PASSWORD:this.options.password||"dcdx",MYSQL_USER:this.options.username||"dcdx",MYSQL_PASSWORD:this.options.password||"dcdx",MYSQL_DATABASE:this.options.database||"dcdx"},command:["--log_bin_trust_function_creators=1"],networks:{shared:{aliases:["db","database"]}}})}const _={version:"15",database:"dcdx",port:5432,username:"dcdx",password:"dcdx"};class Postgres extends x{name="postgresql";driver="org.postgresql.Driver";options=_;version="15";get url(){return`jdbc:postgresql://db:${this.options.port}/${this.options.database}`}constructor(t=_){super({..._,...t})}getService=()=>({image:`postgres:${this.version}`,ports:[`${this.options.port||5432}:5432`],environment:{POSTGRES_USER:this.options.username||"dcdx",POSTGRES_PASSWORD:this.options.password||"dcdx",POSTGRES_DB:this.options.database||"dcdx",POSTGRES_HOST_AUTH_METHOD:"md5",POSTGRES_INITDB_ARGS:"--encoding=UTF-8 --lc-collate=C --lc-ctype=C"},networks:{shared:{aliases:["db","database"]}}})}const $=n(b(),".dcdx");class Base extends m{options;constructor(t){super(),this.options=t}get baseUrl(){let t="http://localhost";return this.options.port&&(t+=`:${this.options.port}`),this.options.contextPath?`${t}/${this.options.contextPath}`:t}getDatabaseEngine(t){switch(t){case"postgresql":return new Postgres;case"mssql":return new MSSQL;case"mysql":return new MySQL}}async start(){this.options.clean&&await this.down(),await this.build(this.options.version),await this.database.start(this.options.clean),await this.up()}async stop(){if(await this.database.stop(this.options.prune),this.options.prune)await this.down();else{const t=w(this.getDockerComposeConfig());await c({cwd:S(),configAsString:t,log:!0})}this.emit(`${this.name}:stopped`)}async reset(){await this.database.stop(!0),await this.down()}async cp(t){const e=await this.getServiceState();if(e&&e.state.toLowerCase().startsWith("up")){const e=this.getDockerComposeConfig(),s=w(e);await l("cp",[t,`${this.name}:/opt/quickreload/`],{cwd:S(),configAsString:s,log:!1})}}async isApplicationReady(){try{const t=await a.get(`${this.baseUrl}/status`,{validateStatus:()=>!0}).catch((()=>null));if(t&&200===t.status){const{data:e}=t;if("FIRST_RUN"===e.state)return console.log(`The application ${this.name} is ready on ${this.baseUrl} 🎉`),!0}return!1}catch(t){return!1}}getDockerComposeConfig(){return{version:"3.8",services:{[this.name]:this.getService()},networks:{shared:O}}}async up(){const t=this.getDockerComposeConfig(),e=w(t);await h({cwd:S(),configAsString:e,log:!0}),this.emit(`${this.name}:up`);await this.waitUntilReady()?(this.emit(`${this.name}:ready`),await this.tailApplicationLogs()):console.log(`Failed to start ${this.name} ⛔`),s(0)}async down(){const t=w(this.getDockerComposeConfig());await d({cwd:S(),configAsString:t,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async getServiceState(){const t=w(this.getDockerComposeConfig());return(await p({configAsString:t,log:!1,commandOptions:["--all"]})).data.services.find((t=>t.name.includes(this.name)))}async waitUntilReady(t=0){console.log(`Waiting for ${this.name} to become available... ${t}s`);const e=await this.getServiceState();return!!(e&&e.state.toLowerCase().startsWith("up")&&await this.isApplicationReady())||(t>=300?(console.error(`A timeout occurred while waiting for ${this.name} to become available ⛔`),e&&await this.showDockerLogs(e.name),!1):(await new Promise((t=>setTimeout(t,1e3))),this.waitUntilReady(t+1)))}getDockerRepositoryUrl(){return`https://bitbucket.org/atlassian-docker/docker-${"jira"===this.name?"atlassian-jira":"bamboo"===this.name?`${this.name}-server`:`atlassian-${this.name}-server`}.git`}async build(t){const e=this.getDockerRepositoryUrl(),s=n($,this.name,"source");u(s)?await v({baseDir:s}).pull({"--recurse-submodule":null}):(g(n($,this.name),{recursive:!0}),await v().clone(e,s,{"--recurse-submodule":null})),await new Promise(((e,o)=>{r("docker",["build","-t",`dcdx/${this.name}:${t}`,"--build-arg",`${this.name.toUpperCase()}_VERSION=${t}`,"."],{cwd:s,stdio:"inherit"}).on("exit",(t=>0===t?e():o(new Error(`Docker exited with code ${t}`))))}))}async tailApplicationLogs(){const t=await this.getServiceState();t&&t.state.toLowerCase().startsWith("up")&&await this.showApplicationLogs(t.name).catch((()=>null))}async showDockerLogs(t){return new Promise(((e,s)=>{r("docker",["logs","-f","-n","5000",t],{cwd:S(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}async showApplicationLogs(t){return new Promise(((e,s)=>{r("docker",["exec","-i",t,"tail","-F","-n","5000",this.logFilePath],{cwd:S(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}}class Bamboo extends Base{name=C.BAMBOO;database;logFilePath="/var/atlassian/application-data/bamboo/logs/atlassian-bamboo.log";constructor(t){super(t),this.database=this.getDatabaseEngine(t.database)}getService(){const t=this.getVolumes(),e=this.getEnvironmentVariables();return{build:{context:toAbsolutePath("../../assets"),dockerfile_inline:`\nFROM dcdx/${this.name}:${this.options.version}\nCOPY ./mysql-connector-j-8.3.0.jar /opt/atlassian/bamboo/lib/mysql-connector-j-8.3.0.jar\nCOPY ./quickreload-5.0.2.jar /var/atlassian/application-data/bamboo/shared/plugins/quickreload-5.0.2.jar\nRUN echo "/opt/quickreload" > /var/atlassian/application-data/bamboo/quickreload.properties; mkdir -p /opt/quickreload; chown -R bamboo:bamboo /opt/quickreload;\n\nRUN chown -R bamboo:bamboo /var/atlassian/application-data/bamboo`},ports:[`${this.options.port||80}:8085`,...this.options.debug?["5005:5005"]:[]],environment:Object.keys(e).length>0?e:void 0,volumes:t.length>0?t:void 0,networks:["shared"]}}async isApplicationReady(){try{const t=await a.get(`${this.baseUrl}/setup/setupGeneralConfiguration.action`,{validateStatus:()=>!0}).catch((()=>null));return 200===t?.status}catch(t){return!1}}getEnvironmentVariables(){return{...this.options.contextPath?{ATL_TOMCAT_CONTEXTPATH:this.options.contextPath}:"",...this.options.debug?{JVM_SUPPORT_RECOMMENDED_ARGS:this.getJVMArgs()}:"",ATL_BAMBOO_ENABLE_UNATTENDED_SETUP:"true",ATL_LICENSE:this.options.license||R,ATL_JDBC_URL:this.database.url,ATL_JDBC_USER:this.database.options.username,ATL_JDBC_PASSWORD:this.database.options.password,ATL_DB_TYPE:`${this.database.name}`}}getJVMArgs(){const t=[];return this.options.debug&&(t.push("-Dupm.plugin.upload.enabled=true"),t.push("-Xdebug"),t.push("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005")),this.options.quickReload&&t.push("-Dquickreload.dirs=/opt/quickreload"),t.join(" ")}getVolumes(){return[...this.options.quickReload?[`${this.options.quickReload}:/opt/quickreload`]:""]}}(async()=>{const s=t.showHelpAfterError(!0).addOption(new e("-v, --version <version>","The version of the host application").choices(["9.4.3"]).default("9.6.1")).addOption(new e("-d, --database <name>","The database engine on which the host application will run").choices(["postgresql","mysql","mssql"]).default("postgresql")).addOption(new e("-p, --port <port>","The HTTP port on which the host application will be accessible").default("80")).addOption(new e("-c, --contextPath <contextPath>","The context path on which the host application will be accessible")).addOption(new e("-qr, --quickReload <path_to_watch>","Add support for QuickReload and add the provided path to the watch list")).addOption(new e("--clean","Remove data files before starting the database").default(!1)).addOption(new e("--prune","Remove data files when stopping the database").default(!1)).addOption(new e("--debug","Add support for JVM debugger on port 5005")).parse(process.argv).opts(),a=new Bamboo({version:s.version,database:s.database,port:Number(s.port),contextPath:s.contextPath,quickReload:s.qr,clean:s.clean,prune:s.prune,debug:s.debug});o((async()=>{console.log(`Stopping ${a.name}... ⏳`),await a.stop(),console.log(`Stopped ${a.name} 💪`)}),{wait:3e4}),await a.start()})(),process.on("SIGINT",(()=>{console.log("Received term signal, trying to stop gracefully 💪"),s()}));
2
+ import{program as t,Option as e}from"commander";import{gracefulExit as s,asyncExitHook as o}from"exit-hook";import a from"axios";import{dirname as n,join as i}from"path";import{spawn as r}from"child_process";import{stop as u,downAll as d,ps as c,execCompose as p,upAll as l}from"docker-compose/dist/v2.js";import h from"events";import{existsSync as b,mkdirSync as m}from"fs";import{dump as k}from"js-yaml";import{homedir as g}from"os";import{cwd as w}from"process";import j from"simple-git";import{upAll as S}from"docker-compose";import{Sequelize as v,ConnectionError as A,TimeoutError as f,ConnectionTimedOutError as D,ConnectionRefusedError as y,ConnectionAcquireTimeoutError as E}from"sequelize";var T=["latest","9.4-ubuntu","9.4-jdk11","9.4.3-ubuntu","9.4","9.4.3","9.4.3-jdk11","ubuntu","jdk11","9-ubuntu","9-jdk11","9.5-ubuntu","9.5-jdk11","9.5.1-ubuntu","9.5.1-jdk11","9.5.1","9.5","9","9.2-ubuntu","9.2-jdk11","9.2","9.2.11-jdk11","9.2.11-ubuntu","9.2.11","9.3.3-ubuntu","9.3.3-jdk11","9.3.3","9.2.4-ubuntu","9.2.4-jdk11","9.3.2-ubuntu","9.3.2-jdk11","9.0-ubuntu","9.2.4","9.3.2","9.0-jdk11","9.0.4-ubuntu","9.0.4-jdk11","9.0.4","9.0","8.2.6-ubuntu","8.2.6","8.2.6-jdk11","8.1.11-ubuntu","8.1.11-jdk11","8.1.11","8.0.0-jdk11","8.0.0-ubuntu","8.1.8-ubuntu","9.3.4-ubuntu","8.1.8-jdk11","9.3.4-jdk11","8.1.8","8.0.0","8.0.4-ubuntu","9.3.4","8.0.4-jdk11","9.2.5-ubuntu","9.2.5-jdk11","8.0.4","9.2.5","9.1.0-ubuntu","9.1.0-jdk11","9.1.0","8.2.7-ubuntu","8.2.7-jdk11","8.2.7","8.1-ubuntu","8.1-jdk11","8.1.12-ubuntu","8.1.12-jdk11","8.1","8.1.12","8.0.5-ubuntu","8.0.5-jdk11","8.0.1-ubuntu","9.1.1-jdk11","8.1.9-ubuntu","8.0.1-jdk11","8.0.1","8.1.9-jdk11","9.1.1","8.1.9","8.2.8-ubuntu","8.2.8-jdk11","8.0.5","8.2.8","8.1.2-ubuntu","8.1.2-jdk11","8.1.2","8.0.10-ubuntu","9.3.5-ubuntu","8.0.10-jdk11","9.3.5-jdk11","8.0.10","9.3.5","9.2.6-jdk11","9.2.6-ubuntu","9.2.6","9.1.1-ubuntu","8.2.0-ubuntu","8.2.0-jdk11","9.1.2-ubuntu","8.2.0","9.1.2-jdk11","8.0.6-ubuntu","8.0.6-jdk11","9.1.2","8.0.6","8-ubuntu","8-jdk11","8.2-ubuntu","8.2-jdk11","8.2.9-ubuntu","8.2.9-jdk11","8.2.9","8.2","8.1.3-ubuntu","8.1.3-jdk11","8.1.3","8.0.11-jdk11","8.0.11-ubuntu","8.0.11","9.3-ubuntu","8","9.3-jdk11","9.3.6-ubuntu","9.3.6-jdk11","9.3.6","9.3","9.2.7-ubuntu","9.2.7-jdk11","9.2.7","8.2.1-ubuntu","8.2.1-jdk11","8.2.1","8.0.7-ubuntu","9.4.0-jdk11","8.0.7-jdk11","9.2.8-ubuntu","8.0.7","9.2.8-jdk11","9.2.8","9.1-ubuntu","9.1-jdk11","9.1.3-ubuntu","9.1.3-jdk11","9.1.3","9.1","9.0.0-jdk11","9.0.0-ubuntu","9.0.0","8.1.4-ubuntu","8.1.4-jdk11","8.1.4","8.0.8-ubuntu","8.0.8-jdk11","8.0.8","8.0.12-ubuntu","8.0.12","8.0.12-jdk11","8.2.2-ubuntu","8.2.2-jdk11","8.1.5-jdk11","8.2.2","8.1.5-ubuntu","8.1.5","8.0-ubuntu","8.0-jdk11","8.0.13-jdk11","8.0.13-ubuntu","8.0.13","9.4.1-ubuntu","8.0","9.4.1-jdk11","9.4.1","9.2.9-ubuntu","9.2.9","9.2.9-jdk11","9.2.1-ubuntu","9.2.1-jdk11","9.2.1","9.0.1-ubuntu","9.0.1-jdk11","9.0.1","8.2.3-ubuntu","8.2.3-jdk11","8.2.3","9.4.2-jdk11","8.0.9-ubuntu","8.0.9-jdk11","9.0.2-ubuntu","8.0.9","9.0.2-jdk11","9.0.2","8.1.6-ubuntu","8.1.6-jdk11","8.1.6","8.0.2-ubuntu","8.0.2-jdk11","8.0.2","7-ubuntu","7-jdk8","7.2-ubuntu","7.2-jdk8","7.2.7-jdk8","7.2.7-ubuntu","7.2.7","7.2.5-ubuntu","7.2.5-jdk8","7.2.5","7.2.3-ubuntu","7.2.3-jdk8","7.2.3","7.2.10-ubuntu","7.2.10-jdk8","7.2.10","7.2.0-ubuntu","7.2.0-jdk8","7.2.0","7.2","7.1.3-ubuntu","7.1.3-jdk8","7.1.3","7","9.3.0-ubuntu","9.3.0-jdk11","9.3.0","9.2.10-ubuntu","9.2.10-jdk11","9.2.10","8.2.4-ubuntu","8.2.4-jdk11","8.2.4","8.1.1-ubuntu","8.1.1-jdk11","8.1.1","8.1.7-ubuntu","8.1.7-jdk11","8.1.7","8.0.3-ubuntu","8.0.3-jdk11","8.0.3","jdk17","9-jdk17","9.5-jdk17","9.5.0-ubuntu","9.5.0-jdk17","9.5.0-jdk11","9.5.0","9.4-jdk17","9.4.2-ubuntu","9.4.0-ubuntu","9.4.2-jdk17","9.4.2","9.4.0","9.4.0-jdk17","9.3.1-ubuntu","9.3.1-jdk11","9.3.1","9.2.3-ubuntu","9.2.3-jdk11","9.2.3","9.0.3-ubuntu","9.0.3-jdk11","9.0.3","8.2.5-ubuntu","8.2.5-jdk11","8.2.5","8.1.10-ubuntu","8.1.10-jdk11","8.1.10","7.2.9-ubuntu","7.2.9","7.2.9-jdk8","7.2.6-ubuntu","7.2.6-jdk8","7.2.6","7.2.4-ubuntu","7.2.4-jdk8","7.2.4","7.2.2-ubuntu","7.2.2-jdk8","7.2.2","7.2.1-ubuntu","7.2.1-jdk8","7.2.1","7.1-ubuntu","7.1-jdk8","7.1.4-ubuntu","7.1.4-jdk8","7.1.4","7.1.2-ubuntu","7.1.2-jdk8","7.1.2","7.1.1-ubuntu","7.1.1-jdk8","7.1.1","7.1","9.4.1-jdk17","eap-jdk8","9.0.0-rc1-ubuntu","9.0.0-rc1-jdk11","9.0.0-rc1","eap-jdk11","eap-ubuntu","9.0.0-rc1-jdk8","eap","8.0.0-rc4","8.0.0-rc1","7.0.6","7.0","7.1.0-rc1","7.0.4","6.10","6.10.6","7.0.3","6.10.5","7.0.2","7.0.1","7.0.0-rc2","7.0.0-rc1","6.10.4","6.10.3","6.10.2","6.9.2","6.9","6.8.3","6.8","6.9.1","6.8.2","6.9.0","6.9.0-rc1","6.7","6.7.3","6.8.1","6.8.0","6.7.2","6.7.1","6.6.3","6.6","6.7.0-rc2","6.6.2","6.6.1","6.6.0"];const R="AAAB3w0ODAoPeNp9Ultr2zAYffevEOwtoMR10qYLGJbYWsno7GA7g90eZPlrotWWjCSnzX79FF8IYWkfDPJ3Oedwzvch2zdoWSvkzpF7v5jdLrwpCkiaIc/1POeRMxAasmMNEa3Az2xnHT04gQJquBQhNeB77vQGuzPs3jk5rXIpx5QZfgDfqAaGUtRUOaj4adX+PkpGy+UOhNE+vnGG5laDags9L3mtuToOJF5Pkja5ZorXJwEXHG+pJQdaNvS/cYtLAysBVFfu19ehvxXPQr4IJwV1AGULKzIneBb+8PBd/GWOH6Yf751No9ieaujleYMHKYl8++Fb13VGo1EUZ/hznOBNEofbIFvHEd6mxDb81kQoUH5EZg+op0dEMFmAQrWSf4AZ9HNvTP1rMZnsrLGmpFpzKsZMVpOy28DQbfweo1AiIQ0quDaK540Bi8w1MhKxRhtZWXvHTghn+zLQBvU46Ela1rLZcYEKOEApazvvfKXceiSoYG/kcTXhTUlFG+XVbgKVNHA+gF7BN8t3UuU5sdpRwXUXGnmlVV0CCmRVU3G8Evf5MKUw9vqIFV36tX7moNjfo7CPTxfenZIJErLMSIhX309pvDd8SUgK3smKMpJsknVKBtr26t4D+gd3AC5qMCwCFHOaTWfFvLCLJPft3qktVo3FafmZAhRojb9IAxj8KEqPDQy0stos394SQQ==X02mq",toAbsolutePath=t=>{const[,e]=process.argv,s=n(e),o=s.substring(0,s.indexOf("dcdx")+4);return i(o,t.replaceAll("../",""))};var C;!function(t){t.JIRA="jira",t.CONFLUENCE="confluence",t.BITBUCKET="bitbucket",t.BAMBOO="bamboo"}(C||(C={}));const O={name:"shared",driver:"bridge"};let x=class Base extends h{options;sequelize=null;constructor(t){super(),this.options=t}async run(t,e){try{if(!this.sequelize)throw new Error("Database connection does not exist");await this.sequelize.query(t,{logging:e})}catch(e){console.error("An error occurred while trying to run the following SQL query:",t,e),s()}return null}async start(t=this.options.clean){console.log(`Starting instance of ${this.name} ⏳`),t&&await this.down(),await this.up(),this.emit(`${this.name}:up`);if(await this.waitUntilReady()){if(console.log(`Database is ready and accepting connections on localhost:${this.options.port} 🗄️`),await this.onDatabaseReady(),this.emit("db:ready"),this.options.logging){const t=await this.getServiceState();t&&await this.showDockerLogs(t.name)}}else console.log(`Failed to start database ${this.name} ⛔`),s(0)}async stop(t=this.options.prune){if(t)await this.down();else{const t=k(this.getDockerComposeConfig());await u({cwd:w(),configAsString:t,log:!0})}this.emit("db:stopped")}async onDatabaseReady(){}getDockerComposeConfig(){return{version:"3.8",services:{db:this.getService()},networks:{shared:O}}}async up(){const t=k(this.getDockerComposeConfig());return S({cwd:w(),configAsString:t,log:!0})}async down(){const t=k(this.getDockerComposeConfig());return d({cwd:w(),configAsString:t,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async waitUntilReady(){try{const t="mssql"===this.name?"master":this.options.database;return this.sequelize=new v(t,this.options.username,this.options.password,{host:"localhost",port:this.options.port,dialect:this.name.replace("postgresql","postgres"),retry:{max:30,match:[A,f,D,y,E],backoffBase:1e3,backoffExponent:1},logging:!1}),this.sequelize.authenticate().then((()=>!0)).catch((t=>(console.log(t),!1)))}catch(t){return!1}}async getServiceState(){const t=k(this.getDockerComposeConfig());return(await c({configAsString:t,log:!1,commandOptions:["--all"]})).data.services.find((t=>t.name.includes(this.name)))}async showDockerLogs(t){return new Promise(((e,s)=>{r("docker",["logs","-f","-n","5000",t],{cwd:w(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}};const L={port:1433,database:"dcdx",username:"sa",password:"DataCenterDX!",edition:"Developer",version:"2022"};class MSSQL extends x{name="mssql";driver="com.microsoft.sqlserver.jdbc.SQLServerDriver";options=L;version="2022";get url(){return`jdbc:sqlserver://db:${this.options.port};databaseName=${this.options.database};trustServerCertificate=true`}constructor(t=L){super({...L,...t})}async onDatabaseReady(){await this.run(`CREATE DATABASE ${this.options.database}`),await this.run(`ALTER DATABASE ${this.options.database} COLLATE SQL_Latin1_General_CP1_CS_AS`),await this.run(`ALTER DATABASE ${this.options.database} SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE;`)}getService=()=>({image:`mcr.microsoft.com/mssql/server:${this.version}-latest`,ports:[`${this.options.port||1433}:1433`],environment:{ACCEPT_EULA:"y",MSSQL_SA_PASSWORD:this.options.password||"dcdx",MSSQL_PID:this.options.edition},networks:{shared:{aliases:["db","database"]}}})}const q={port:3306,database:"dcdx",username:"dcdx",password:"dcdx",version:"8.0"};class MySQL extends x{name="mysql";driver="com.mysql.jdbc.Driver";options=q;version="8.0";get url(){return`jdbc:mysql://db:${this.options.port}/${this.options.database}?sessionVariables=transaction_isolation='READ-COMMITTED'`}constructor(t=q){super({...q,...t})}async onDatabaseReady(){await this.run(`ALTER DATABASE ${this.options.database} CHARACTER SET 'utf8mb4' COLLATE utf8mb4_bin`)}getService=()=>({image:`mysql:${this.version}`,ports:[`${this.options.port||3306}:3306`],environment:{MYSQL_ROOT_PASSWORD:this.options.password||"dcdx",MYSQL_USER:this.options.username||"dcdx",MYSQL_PASSWORD:this.options.password||"dcdx",MYSQL_DATABASE:this.options.database||"dcdx"},command:["--log_bin_trust_function_creators=1"],networks:{shared:{aliases:["db","database"]}}})}const _={version:"15",database:"dcdx",port:5432,username:"dcdx",password:"dcdx"};class Postgres extends x{name="postgresql";driver="org.postgresql.Driver";options=_;version="15";get url(){return`jdbc:postgresql://db:${this.options.port}/${this.options.database}`}constructor(t=_){super({..._,...t})}getService=()=>({image:`postgres:${this.version}`,ports:[`${this.options.port||5432}:5432`],environment:{POSTGRES_USER:this.options.username||"dcdx",POSTGRES_PASSWORD:this.options.password||"dcdx",POSTGRES_DB:this.options.database||"dcdx",POSTGRES_HOST_AUTH_METHOD:"md5",POSTGRES_INITDB_ARGS:"--encoding=UTF-8 --lc-collate=C --lc-ctype=C"},networks:{shared:{aliases:["db","database"]}}})}const $=i(g(),".dcdx");class Base extends h{options;constructor(t){super(),this.options=t}get baseUrl(){let t="http://localhost";return this.options.port&&(t+=`:${this.options.port}`),this.options.contextPath?`${t}/${this.options.contextPath}`:t}getDatabaseEngine(t){switch(t){case"postgresql":return new Postgres;case"mssql":return new MSSQL;case"mysql":return new MySQL}}async start(){this.options.clean&&await this.down(),await this.build(this.options.version),await this.database.start(this.options.clean),await this.up()}async stop(){if(await this.database.stop(this.options.prune),this.options.prune)await this.down();else{const t=k(this.getDockerComposeConfig());await u({cwd:w(),configAsString:t,log:!0})}this.emit(`${this.name}:stopped`)}async reset(){await this.database.stop(!0),await this.down()}async cp(t){const e=await this.getServiceState();if(e&&e.state.toLowerCase().startsWith("up")){const e=this.getDockerComposeConfig(),s=k(e);await p("cp",[t,`${this.name}:/opt/quickreload/`],{cwd:w(),configAsString:s,log:!1})}}async isApplicationReady(){try{const t=await a.get(`${this.baseUrl}/status`,{validateStatus:()=>!0}).catch((()=>null));if(t&&200===t.status){const{data:e}=t;if("FIRST_RUN"===e.state)return console.log(`The application ${this.name} is ready on ${this.baseUrl} 🎉`),!0}return!1}catch(t){return!1}}getDockerComposeConfig(){return{version:"3.8",services:{[this.name]:this.getService()},networks:{shared:O}}}async up(){const t=this.getDockerComposeConfig(),e=k(t);await l({cwd:w(),configAsString:e,log:!0}),this.emit(`${this.name}:up`);await this.waitUntilReady()?(this.emit(`${this.name}:ready`),await this.tailApplicationLogs()):console.log(`Failed to start ${this.name} ⛔`),s(0)}async down(){const t=k(this.getDockerComposeConfig());await d({cwd:w(),configAsString:t,commandOptions:["-v","--remove-orphans","--rmi","local"],log:!0})}async getServiceState(){const t=k(this.getDockerComposeConfig());return(await c({configAsString:t,log:!1,commandOptions:["--all"]})).data.services.find((t=>t.name.includes(this.name)))}async waitUntilReady(t=0){console.log(`Waiting for ${this.name} to become available... ${t}s`);const e=await this.getServiceState();return!!(e&&e.state.toLowerCase().startsWith("up")&&await this.isApplicationReady())||(t>=300?(console.error(`A timeout occurred while waiting for ${this.name} to become available ⛔`),e&&await this.showDockerLogs(e.name),!1):(await new Promise((t=>setTimeout(t,1e3))),this.waitUntilReady(t+1)))}getDockerRepositoryUrl(){return`https://bitbucket.org/atlassian-docker/docker-${"jira"===this.name?"atlassian-jira":"bamboo"===this.name?`${this.name}-server`:`atlassian-${this.name}-server`}.git`}async build(t){const e=this.getDockerRepositoryUrl(),s=i($,this.name,"source");b(s)?await j({baseDir:s}).pull({"--recurse-submodule":null}):(m(i($,this.name),{recursive:!0}),await j().clone(e,s,{"--recurse-submodule":null})),await new Promise(((e,o)=>{r("docker",["build","-t",`dcdx/${this.name}:${t}`,"--build-arg",`${this.name.toUpperCase()}_VERSION=${t}`,"."],{cwd:s,stdio:"inherit"}).on("exit",(t=>0===t?e():o(new Error(`Docker exited with code ${t}`))))}))}async tailApplicationLogs(){const t=await this.getServiceState();t&&t.state.toLowerCase().startsWith("up")&&await this.showApplicationLogs(t.name).catch((()=>null))}async showDockerLogs(t){return new Promise(((e,s)=>{r("docker",["logs","-f","-n","5000",t],{cwd:w(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}async showApplicationLogs(t){return new Promise(((e,s)=>{r("docker",["exec","-i",t,"tail","-F","-n","5000",this.logFilePath],{cwd:w(),stdio:"inherit"}).on("exit",(t=>0===t?e():s(new Error(`Docker exited with code ${t}`))))}))}}class Bamboo extends Base{name=C.BAMBOO;database;logFilePath="/var/atlassian/application-data/bamboo/logs/atlassian-bamboo.log";constructor(t){super(t),this.database=this.getDatabaseEngine(t.database)}getService(){const t=this.getVolumes(),e=this.getEnvironmentVariables();return{build:{context:toAbsolutePath("../../assets"),dockerfile_inline:`\nFROM dcdx/${this.name}:${this.options.version}\nCOPY ./mysql-connector-j-8.3.0.jar /opt/atlassian/bamboo/lib/mysql-connector-j-8.3.0.jar\nCOPY ./quickreload-5.0.2.jar /var/atlassian/application-data/bamboo/shared/plugins/quickreload-5.0.2.jar\nRUN echo "/opt/quickreload" > /var/atlassian/application-data/bamboo/quickreload.properties; mkdir -p /opt/quickreload; chown -R bamboo:bamboo /opt/quickreload;\n\nRUN chown -R bamboo:bamboo /var/atlassian/application-data/bamboo`},ports:[`${this.options.port||80}:8085`,...this.options.debug?["5005:5005"]:[]],environment:Object.keys(e).length>0?e:void 0,volumes:t.length>0?t:void 0,networks:["shared"]}}async isApplicationReady(){try{const t=await a.get(`${this.baseUrl}/setup/setupGeneralConfiguration.action`,{validateStatus:()=>!0}).catch((()=>null));return 200===t?.status}catch(t){return!1}}getEnvironmentVariables(){return{...this.options.contextPath?{ATL_TOMCAT_CONTEXTPATH:this.options.contextPath}:"",...this.options.debug?{JVM_SUPPORT_RECOMMENDED_ARGS:this.getJVMArgs()}:"",ATL_BAMBOO_ENABLE_UNATTENDED_SETUP:"true",ATL_LICENSE:this.options.license||R,ATL_JDBC_URL:this.database.url,ATL_JDBC_USER:this.database.options.username,ATL_JDBC_PASSWORD:this.database.options.password,ATL_DB_TYPE:`${this.database.name}`}}getJVMArgs(){const t=[];return this.options.debug&&(t.push("-Dupm.plugin.upload.enabled=true"),t.push("-Xdebug"),t.push("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005")),this.options.quickReload&&t.push("-Dquickreload.dirs=/opt/quickreload"),t.join(" ")}getVolumes(){return[...this.options.quickReload?[`${this.options.quickReload}:/opt/quickreload`]:""]}}(async()=>{const s=t.showHelpAfterError(!0).addOption(new e("-v, --version <version>","The version of the host application").choices(T).default("latest")).addOption(new e("-d, --database <name>","The database engine on which the host application will run").choices(["postgresql","mysql","mssql"]).default("postgresql")).addOption(new e("-p, --port <port>","The HTTP port on which the host application will be accessible").default("80")).addOption(new e("-c, --contextPath <contextPath>","The context path on which the host application will be accessible")).addOption(new e("-qr, --quickReload <path_to_watch>","Add support for QuickReload and add the provided path to the watch list")).addOption(new e("--clean","Remove data files before starting the database").default(!1)).addOption(new e("--prune","Remove data files when stopping the database").default(!1)).addOption(new e("--debug","Add support for JVM debugger on port 5005")).parse(process.argv).opts(),a=new Bamboo({version:s.version,database:s.database,port:Number(s.port),contextPath:s.contextPath,quickReload:s.qr,clean:s.clean,prune:s.prune,debug:s.debug});o((async()=>{console.log(`Stopping ${a.name}... ⏳`),await a.stop(),console.log(`Stopped ${a.name} 💪`)}),{wait:3e4}),await a.start()})(),process.on("SIGINT",(()=>{console.log("Received term signal, trying to stop gracefully 💪"),s()}));