GitHub - TaiBIF/taicol-db-docker: TaiCoL (Catalogue of Life, Taiwan) database (MariaDB) docker for development (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Repository files navigation
TaiCoL MariaDB docker
Requirement
- install docker desktop
- mysqldump source database and gzip to xxx.sql.gz
Run Docker
- put xxx.sql.gz in /[project-path]/mariadb
- build docker image
- run docker
maybe wait 10 minutes for database initialization.
- open browser: http://127.0.0.1:8080, use adminer client to view or edit database
Update db
- delete folder: /[project-path]/data
- change xxx.sql.gz to yyy.sql.gz
- 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