GithubHelp home page GithubHelp logo

Comments (2)

jsokol avatar jsokol commented on August 21, 2024

Hello. Your issue doesn't really provide us with any information about how this Docker was created or what you're trying to do. None of our images use phpmyadmin so I'm assuming this is something that you created and we can't support that. Our official Docker instructions can be found at https://www.simplerisk.com/download by selecting "Install SimpleRisk as a Docker container". I just followed those instructions and it installed the current 20210802-001 release of SimpleRisk with a fully passing health check without any issues. I'm going to close this, but if you need additional assistance with a SimpleRisk instance, I'd ask that you please contact support (at) simplerisk (dot) com. Thank you.

from docker.

jfucanada avatar jfucanada commented on August 21, 2024

Thanks for the feedback.

After I modified the entrypoint script as below and remake the image, I am able to restart container without the issue.

set_config(){
# If MySQL hasn't already been configured
if [ ! -f /configurations/mysql-configured ]; then
CONFIG_PATH='/var/www/simplerisk/includes/config.php'

SIMPLERISK_DB_HOSTNAME=localhost && sed -i "s/\('DB_HOSTNAME', '\).*\(');\)/\1$SIMPLERISK_DB_HOSTNAME\2/g" $CONFIG_PATH
SIMPLERISK_DB_PORT=3306 && sed -i "s/\('DB_PORT', '\).*\(');\)/\1$SIMPLERISK_DB_PORT\2/g" $CONFIG_PATH
SIMPLERISK_DB_USERNAME=simplerisk && sed -i "s/\('DB_USERNAME', '\).*\(');\)/\1$SIMPLERISK_DB_USERNAME\2/g" $CONFIG_PATH
set_db_password
SIMPLERISK_DB_DATABASE=simplerisk && sed -i "s/\('DB_DATABASE', '\).*\(');\)/\1$SIMPLERISK_DB_DATABASE\2/g" $CONFIG_PATH
# shellcheck disable=SC2015
[ "$(cat /tmp/version)" == "testing" ] && sed -i "s|//\(define('.*_URL\)|\1|g" $CONFIG_PATH || true
fi

}

from docker.

Related Issues (17)

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.