haxqer / confluence

The simplest docker file of Confluence. Support v8.9.4(latest) and v8.5.12(lts)
340 stars 180 forks source link

Unable to work on newest version in my local machine. #50

Open l33ch4r opened 5 months ago

l33ch4r commented 5 months ago

Hi @haxqer . I thank you for the effort you are doing to help the community, especially us students. I have a problem activating confluence in my Debian 12 virtual machine. I transformed the dockerfile to a bash script that I execute to install confluence in my virtual machine.

#!/bin/bash

export APP_VERSION=8.7.1
export AGENT_VERSION=1.3.3
export MYSQL_DRIVER_VERSION=8.0.22

export ATLASSIAN_PRODUCTION=confluence
export APP_NAME=confluence
export AGENT_FILENAME=atlassian-agent.jar

export CONFLUENCE_HOME=/var/confluence
export CONFLUENCE_INSTALL=/opt/confluence
export JVM_MINIMUM_MEMORY=1g
export JVM_MAXIMUM_MEMORY=3g
export JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=1g -XX:ReservedCodeCacheSize=2g'
export AGENT_PATH=/var/agent
export LIB_PATH=/confluence/WEB-INF/lib

export JAVA_OPTS="-javaagent:${AGENT_PATH}/${AGENT_FILENAME} ${JAVA_OPTS}"

mkdir -p ${CONFLUENCE_INSTALL} ${CONFLUENCE_HOME} ${AGENT_PATH} ${CONFLUENCE_INSTALL}${LIB_PATH}

curl -o ${AGENT_PATH}/${AGENT_FILENAME} https://github.com/haxqer/confluence/releases/download/v${AGENT_VERSION}/atlassian-agent.jar -L
curl -o /tmp/atlassian.tar.gz https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-${APP_NAME}-${APP_VERSION}.tar.gz -L

tar xzf /tmp/atlassian.tar.gz -C /opt/confluence/ --strip-components 1
rm -f /tmp/atlassian.tar.gz

curl -o ${CONFLUENCE_INSTALL}/lib/mysql-connector-java-${MYSQL_DRIVER_VERSION}.jar https://repo1.maven.org/maven2/mysql/mysql-connector-java/${MYSQL_DRIVER_VERSION}/mysql-connector-java-${MYSQL_DRIVER_VERSION}.jar -L
cp ${CONFLUENCE_INSTALL}/lib/mysql-connector-java-${MYSQL_DRIVER_VERSION}.jar ${CONFLUENCE_INSTALL}${LIB_PATH}/mysql-connector-java-${MYSQL_DRIVER_VERSION}.jar

echo "confluence.home = ${CONFLUENCE_HOME}" > ${CONFLUENCE_INSTALL}/${ATLASSIAN_PRODUCTION}/WEB-INF/classes/confluence-init.properties

Here is my activation code java -jar /var/agent/atlassian-agent.jar -d -m me@local.me -o mine -n name -p conf -s BMA4-1AUS-8TY9-EA41 image

But it won't work. image

Am I missing something? I hope that you can help me big brother.

l33ch4r commented 5 months ago

You can close the Issue. I did it many times and I succeeded in one. I don't know what I changed but I tried to run the service using scripts startup and start-confluence

tomerh2001 commented 5 months ago

You can close the Issue. I did it many times and I succeeded in one. I don't know what I changed but I tried to run the service using scripts startup and start-confluence

So it works?

haxqer commented 5 months ago

@l33ch4r The significance of Docker images lies in avoiding various issues caused by runtime environments like the one you mentioned. I don't know what your runtime environment is like, so I can't assist you in identifying the problem. I recommend compiling it into your own Docker image instead of running it directly on the machine.