Coder Social home page Coder Social logo

Comments (3)

errcode1202 avatar errcode1202 commented on July 21, 2024

@Forbzy this is a failure on our documentation's part. Jira doesn't actually ship with the MySQL driver and it needs to be supplied manually. We do allude to this in the docs but its easily missed, something that we'll look into addressing. As for getting you up and running, the way to present the driver to each of your Pod's is to first download the driver and add it to a sub-dir (e.g. drivers) of your shared-home volume. You can use the shared-home-browser to do this. Once that is done define the additional library (driver) under additionalLibraries in your values.yaml:

jira:
 additionalLibraries: 
  - volumeName: shared-home
    subDirectory: drivers
    fileName: mysql-driver.jar

These additionalLibraries will then be injected into <Jira-installation-directory>/lib on Pod start.

from data-center-helm-charts.

Forbzy avatar Forbzy commented on July 21, 2024

Thanks @errcode1202 below is what I did with the values.yaml to help automate the steps you provided.

    volumes:
      sharedHome:
        persistentVolumeClaim:
          create: true
          storageClassName: hostpath                                                                               
        mountPath: "/var/atlassian/application-data/shared-home"
        nfsPermissionFixer:
          enabled: true
          mountPath: "/shared-home"
          command: |
            mkdir /shared-home/drivers
            apk add dpkg
            rm -rf /shared-home/drivers/mysql-driver.jar
            wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java_8.0.26-1debian10_all.deb
            dpkg-deb -R mysql-connector-java_8.0.26-1debian10_all.deb /tmp/
            cp /tmp/usr/share/java/mysql-connector-java-8.0.26.jar  /shared-home/drivers/mysql-driver.jar
            chown -R 2001:2001 /shared-home
    jira:
      additionalLibraries: 
      - volumeName: shared-home
        subDirectory: drivers
        fileName: mysql-driver.jar

from data-center-helm-charts.

errcode1202 avatar errcode1202 commented on July 21, 2024

Thanks @errcode1202 below is what I did with the values.yaml to help automate the steps you provided.

    volumes:
      sharedHome:
        persistentVolumeClaim:
          create: true
          storageClassName: hostpath                                                                               
        mountPath: "/var/atlassian/application-data/shared-home"
        nfsPermissionFixer:
          enabled: true
          mountPath: "/shared-home"
          command: |
            mkdir /shared-home/drivers
            apk add dpkg
            rm -rf /shared-home/drivers/mysql-driver.jar
            wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java_8.0.26-1debian10_all.deb
            dpkg-deb -R mysql-connector-java_8.0.26-1debian10_all.deb /tmp/
            cp /tmp/usr/share/java/mysql-connector-java-8.0.26.jar  /shared-home/drivers/mysql-driver.jar
            chown -R 2001:2001 /shared-home
    jira:
      additionalLibraries: 
      - volumeName: shared-home
        subDirectory: drivers
        fileName: mysql-driver.jar

@Forbzy thats a great way of doing it too. As you're probably aware, one small implication of this approach is that these commands will be run every-time a new Pod joins the cluster. Because shared-home is a persisted volume once the driver is in place there is no need to keep adding it. A conditional check around these commands might reduce some network and startup time.

from data-center-helm-charts.

Related Issues (20)

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.