Coder Social home page Coder Social logo

Comments (9)

crramirez avatar crramirez commented on May 29, 2024 1

And with this? 1b00647

from limesurvey.

crramirez avatar crramirez commented on May 29, 2024 1

Hello @rclayton-the-terrible just configure the external database in Limesurvey setup page. You don't need to do anything at the container side. Pass -e DISABLE_MYSQL=yes in docker run to disable the built in MySQL Database

from limesurvey.

crramirez avatar crramirez commented on May 29, 2024

Sounds good. Let me think how it can be accomplished. I never though in that because I didn't consider the RDS scenario.

from limesurvey.

crramirez avatar crramirez commented on May 29, 2024

Hello,

After a while I investigated enough this issue and its motivation.

Despite the included MySQL in the container, the user can always connect to an external database just typing the right parameters in the Database configuration page.

The problem of course is to have an included mysql running. I now know where the change can be made to the parent container so the included MySQL won't run. I am thinking in adding an environment variable to avoid the included MySQL from running. It will also work for the docker compose scenario.

You may ask. But why you don't simply point the Dockerfile to php:apache? Simplicity. This container have many users and I am sure at least some of them prefer just one docker run and don't deal with container linking or install another database. But if they want to, we need to provide a way of doing it.

I am thinking also update the readme page remembering tat despite the included MySQL, the user have freedom for using anothe database. Also I will update the Dockerfile so PostgreSQL will be supported as well. Although I can add Sql Server as well it will be the first option in configuraiton page and the users will be confused a bit.

Regards

from limesurvey.

rclayton-the-terrible avatar rclayton-the-terrible commented on May 29, 2024

@crramirez We ended up forking the deployment and doing exactly what you said (configuring Limesurvey to connect to the external DB). We unfortunately still use the LAMP image as the base, largely because installing all of the dependencies from php:apache was a nightmare (we're a Node.js team so this was a task beyond us). We also use an external MySQL instance in development, started and linked via Docker Compose. This was largely because we wanted to store MySQL bootstrap scripts for Limesurvey in version control -- we also maintain the Database storage as an external volume. If you're interested in any of that code, let me know.

from limesurvey.

leonhooijer avatar leonhooijer commented on May 29, 2024

Fixed with #7?

from limesurvey.

clingeric avatar clingeric commented on May 29, 2024

@rclayton-the-terrible I know this over a year old, but I'd love to take a look at that code to attach an external MySQL database.

Thanks

from limesurvey.

rclayton-the-terrible avatar rclayton-the-terrible commented on May 29, 2024

@clingeric unfortunately, I left the company that I did this work at and don't have access to that code anymore. Maybe @coxsone can help?

from limesurvey.

crramirez avatar crramirez commented on May 29, 2024

from limesurvey.

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.