Git Product home page Git Product logo

Comments (6)

marrowsh avatar marrowsh commented on July 3, 2024

not even for 8.9

from atlassian-software.

marrowsh avatar marrowsh commented on July 3, 2024

not even for 8.9

sorry. I had to change java version for bitbucket to 1.8 in /opt/java and now it works for me on version 8.9

from atlassian-software.

simont26 avatar simont26 commented on July 3, 2024

brilliant Marrowsh, does it matter which docker image is used?

from atlassian-software.

marrowsh avatar marrowsh commented on July 3, 2024

brilliant Marrowsh, does it matter which docker image is used?

hey @simont26.
I tried the official one from Atlassian on docker hub.
now I used 8.17 version and it still works. but with a warning for java 1.8 deprecation.

from atlassian-software.

simont26 avatar simont26 commented on July 3, 2024

@marrowsh how did you go about updating the java?

I added using docker run -it --name java8 -v /opt/java8 openjdk:8

this is my docker file

#
#   __   _ __  __            __       __    ____     _____                     
#  / /  (_) /_/ /  __ ______/ /_____ / /_  / __/__  / _/ /__    _____ ________ 
# / _ \/ / __/ _ \/ // / __/  '_/ -_) __/ _\ \/ _ \/ _/ __/ |/|/ / _ `/ __/ -_)
#/_.__/_/\__/_.__/\_,_/\__/_/\_\\__/\__/ /___/\___/_/ \__/|__,__/\_,_/_/  \__/ 
#                                                                              
#   Docker Compose for Run bitbucket
#   Test for bitbucket Server 7.x
#   Need  "my-net" Network for Run this File
#   docker network create --driver bridge --subnet=150.50.50.0/24 my-net

version: '3.4'
services:
  bitbucket:
    image: 'atlassian/bitbucket-server:8.17'  # Use the custom image you built   
    container_name: bitbucket
    hostname: bitbucket
    restart: always
    environment:
      JAVA_HOME: /opt/java8
      BITBUCKET_HOME: /var/atlassian/application-data/bitbucket/
      JAVA_OPTS: '-javaagent:/atlassian-agent.jar'
      JDBC_DRIVER: org.postgresql.Driver
      JDBC_URL: 'jdbc:postgresql://db:5432/bitbucket'
      JDBC_USER: bitbucket
      JDBC_PASSWORD: 'XXX'
      SERVER_SCHEME: 'https'
      SERVER_SECURE: 'true'
      SERVER_PROXY_PORT: '443'
      SERVER_PROXY_NAME: 'XXX'
      JVM_MINIMUM_MEMORY: 2048m
      JVM_MAXIMUM_MEMORY: 6000m

    volumes:
      - bitbucket-Data:/var/atlassian/application-data/bitbucket
      - ./agent/atlassian-agent.bak:/atlassian-agent.jar:ro
      - java8:/opt/java8
    networks:
      my-net:
       aliases:
        - bit
    ports:
      - 7990:7990
      - 7999:7999
  db:
    image: postgres:15
    container_name: bitbucket-database
    hostname: bitbucket-database
    restart: always
    ports:
      - "5432:5432"
    environment:
      POSTGRES_PASSWORD: 'X&/LmRJDsw3wJf<30j39'
      POSTGRES_USER: bitbucket
      POSTGRES_DB: bitbucket
    volumes:
      - bitbucketDbVolume:/var/lib/postgresql/data
    networks:
      my-net:
       aliases:
        - bit-db        
        
volumes:
 bitbucket-Data:
   name: bitbucket-Data
 bitbucketDbVolume:
   name: bitbucketDbVolume

networks:
  my-net:
    external: true

When its setting up i keep getting the same error

image

any help is greatly appreciated!

from atlassian-software.

marrowsh avatar marrowsh commented on July 3, 2024

@simont26
This is the part in my compose file that I made changes:
you won't need to define JAVA_HOME
just download the tar file of openjdk 1.8 and extract it on root of the cloned repo. then change its name to java and :
cd java
mkdir openjdk =>the reason for making such a dir is because when you run the docker image you find this path>/opt/java/openjdk
mv * openjdk
now run the compose file for bitbucket.

version: '3.4'
services:
  bitbucket:
    image: "atlassian/bitbucket-server:8.17"
    container_name: bitbucket
    hostname: bitbucket
    restart: always
    environment:
      BITBUCKET_HOME: /var/atlassian/application-data/bitbucket/
      JAVA_OPTS: '-javaagent:/atlassian-agent.jar'
      JDBC_DRIVER: org.postgresql.Driver
      JDBC_URL: 'jdbc:postgresql://db:5432/bitbucket'
      JDBC_USER: bitbucket
      JDBC_PASSWORD: 'X&/LmRJDsw3wJ'
      #SERVER_SCHEME: 'https'
      #SERVER_SECURE: 'true'
      #SERVER_PROXY_PORT: '443'
      #SERVER_PROXY_NAME: 'bitbucket.mysite.com'
      JVM_MINIMUM_MEMORY: 512m
      JVM_MAXIMUM_MEMORY: 2048m

    volumes:
      - bitbucket-Data:/var/atlassian/application-data/bitbucket
      - ./agent/atlassian-agent.bak:/atlassian-agent.jar:ro
      - ./java:/opt/java
    networks:
      my-net:
       aliases:
        - bit
    ports:
      - 7990:7990
      - 7999:7999
     

from atlassian-software.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.