Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

published docker hub image rhqproject/rhq-nodb does not work #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 6, 2016

  1. published docker hub image rhqproject/rhq-nodb does not work

    The published docker image rhqproject/rhq-nodb on the docker hub does not work and hangs forever once started.
    
    I believe this is because the run script file invoke the installer `rhqctl install`, the installer does not find in the server properties a default admin password, hence prompts the user with:
    ```
    The [rhq.autoinstall.server.admin.password] property is required but not set in [rhq-server.properties].
    Do you want to set [rhq.autoinstall.server.admin.password] value now?
    ```
    (I've checked by running this manually myself); but the installer is running as a java process inside the container itself, hence there is no way this is going to ever move on or start the application itself.
    
    I've solved by proving a default `rhq.autoinstall.server.admin.password` property for the user `rhqadmin` as `rhqadmin`:
    ```
    $ ./rhq-encode-value.sh 
    Property rhq.autoinstall.server.admin.password [y/n]: y
    Password: rhqadmin
         
    Encoded password for rhq-server.properties:
         rhq.autoinstall.server.admin.password=x1XwrxKuPvYUILiOnOZTLg==
    ```
    
    I believe that would be the solution, as additionally it would also follow similar style of already defined default passwords for other admins users (e.g.: `rhq.server.database.password`) in the server properties file. If there is a better solution kindly let me know.
    
    Meanwhile, I will raise a PR accordingly to make explicit my proposed solution.
    tarilabs committed Aug 6, 2016
    Configuration menu
    Copy the full SHA
    9bdcf71 View commit details
    Browse the repository at this point in the history