Skip to content

TaiCoL (Catalogue of Life, Taiwan) database (MariaDB) docker for development

Notifications You must be signed in to change notification settings

TaiBIF/taicol-db-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TaiCoL MariaDB docker

Requirement

  • install docker desktop
  • mysqldump source database and gzip to xxx.sql.gz

Run Docker

  1. put xxx.sql.gz in /[project-path]/mariadb
  2. build docker image
docker-compose build
  1. run docker
docker-compose up

maybe wait 10 minutes for database initialization.

  1. open browser: http://127.0.0.1:8080, use adminer client to view or edit database

Update db

  1. delete folder: /[project-path]/data
  2. change xxx.sql.gz to yyy.sql.gz
  3. run docker build and up again

Scripts

dump taiwan species

docker-compose exec db bash
./scripts/dump-taiwan-species.sh
  • have to type password: example (twice for dump 2 files)
  • will create 2 files in output folder

About

TaiCoL (Catalogue of Life, Taiwan) database (MariaDB) docker for development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published