Skip to content

Enable docker setup to install database example data#2126

Open
pli888 wants to merge 10 commits into
GibbonEdu:v31.0.00from
pli888:docker-demo-data
Open

Enable docker setup to install database example data#2126
pli888 wants to merge 10 commits into
GibbonEdu:v31.0.00from
pli888:docker-demo-data

Conversation

@pli888

@pli888 pli888 commented Jun 22, 2026

Copy link
Copy Markdown
Member

Pull request for issue: #2118 Deploy local docker gibbon instance with demo data installed

Description

This pull request contains the following new functionalities:

  • A setup_devdb.sh bash script which is able to:
    • Create a config.php
    • Create a new database with gibbon schema
    • Import example data into database using gibbon_demo.sql
    • Create a new user account which can be used to log into the gibbon docker instance
  • Documentation for deploying gibbon using Docker Desktop in ops/README.md
  • Documentation for importing example into gibbon mysql database in ops/INSTALL_DATA.md

How to test?

How has functionality been implemented?

A new config container has been added into compose.yaml to generate config.php using credentials from .env.

A second bash script setup_devdb.sh is executed to install demo data. Might want to incorporate functionality into up.sh in the future though.

Docker compose files have been renamed as compose.yaml according to latest Docker conventions

Port mapping for db container to host has been added into compose.yaml. This allows database tooling to connect with the mysql database from the host which is useful for development and debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant