{"id":21428018,"url":"https://github.com/redhat-developer-demos/quotemysql","last_synced_at":"2025-07-14T10:31:37.205Z","repository":{"id":41963198,"uuid":"373546022","full_name":"redhat-developer-demos/quotemysql","owner":"redhat-developer-demos","description":"MariaDB database of Quotes to be run inside Kubernetes; part of Kubernetes By Example on Developer Sandbox for Red Hat OpenShift","archived":false,"fork":false,"pushed_at":"2025-01-09T15:53:37.000Z","size":18,"stargazers_count":1,"open_issues_count":1,"forks_count":15,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T06:51:09.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redhat-developer-demos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-06-03T14:58:20.000Z","updated_at":"2025-01-09T15:53:40.000Z","dependencies_parsed_at":"2023-07-28T14:28:21.367Z","dependency_job_id":"c8326a92-0621-4b68-81ef-2eb487db70a1","html_url":"https://github.com/redhat-developer-demos/quotemysql","commit_stats":null,"previous_names":["redhat-developer-demos/quotemysql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redhat-developer-demos/quotemysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fquotemysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fquotemysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fquotemysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fquotemysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-developer-demos","download_url":"https://codeload.github.com/redhat-developer-demos/quotemysql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fquotemysql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265280632,"owners_count":23739851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T22:09:44.780Z","updated_at":"2025-07-14T10:31:36.837Z","avatar_url":"https://github.com/redhat-developer-demos.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"To create the mariadb database:  \n\n`kubectl apply -f mysql-secret.yaml`  \n`kubectl apply -f mysqlvolume.yaml`  \n`kubectl apply -f mysql-deployment.yaml`  \n\n\nTo create and populate the table \"quotes\":  \nPowerShell:  \n`$a = (kubectl get pods | select-string 'mysql') -match 'mysql([^\\s]+)'; $podname = $matches[0]` \n\n`kubectl cp ./create_database_quotesdb.sql ${podname}:/tmp/create_database_quotesdb.sql`  \n`kubectl cp ./create_database.sh ${podname}:/tmp/create_database.sh`  \n`kubectl exec deploy/mysql -- /bin/bash ./tmp/create_database.sh`  \n\n`kubectl cp ./create_table_quotes.sql ${podname}:/tmp/create_table_quotes.sql`  \n`kubectl cp ./create_tables.sh ${podname}:/tmp/create_tables.sh`  \n`kubectl exec deploy/mysql -- /bin/bash ./tmp/create_tables.sh`  \n\n`kubectl cp ./populate_table_quotes.sql ${podname}:/tmp/populate_table_quotes_POWERSHELL.sql`  \n`kubectl cp ./quotes.csv ${podname}:/tmp/quotes.csv`  \n`kubectl cp ./populate_tables.sh ${podname}:/tmp/populate_tables_POWERSHELL.sh`  \n`kubectl exec deploy/mysql -- /bin/bash ./tmp/populate_tables.sh`  \n\n`kubectl cp ./query_table_quotes.sql ${podname}:/tmp/query_table_quotes.sql`  \n`kubectl cp ./query_table_quotes.sh ${podname}:/tmp/query_table_quotes.sh`  \n`kubectl exec deploy/mysql -- /bin/bash ./tmp/query_table_quotes.sh`  \n\n(or simply run ./build_database.ps1)\n\nBash:  \n`export PODNAME=$(a=$(kubectl get pods | grep 'mysql') \u0026\u0026 set -- $a \u0026\u0026 echo $1)` \n\n`kubectl cp ./create_database_quotesdb.sql $PODNAME:/tmp/create_database_quotesdb.sql`  \n`kubectl cp ./create_database.sh $PODNAME:/tmp/create_database.sh`  \n`kubectl exec deploy/mysql -- /bin/bash ./tmp/create_database.sh`  \n\n`kubectl cp ./create_table_quotes.sql $PODNAME:/tmp/create_table_quotes.sql`  \n`kubectl cp ./create_tables.sh $PODNAME:/tmp/create_tables.sh`  \n`kubectl exec deploy/mysql -- /bin/bash ./tmp/create_tables.sh`  \n\n`kubectl cp ./populate_table_quotes.sql $PODNAME:/tmp/populate_table_quotes_BASH.sql`  \n`kubectl cp ./quotes.csv $PODNAME:/tmp/quotes.csv`  \n`kubectl cp ./populate_tables.sh $PODNAME:/tmp/populate_tables_BASH.sh`  \n`kubectl exec deploy/mysql -- /bin/bash ./tmp/populate_tables.sh`  \n\n`kubectl cp ./query_table_quotes.sql $PODNAME:/tmp/query_table_quotes.sql`  \n`kubectl cp ./query_table_quotes.sh $PODNAME:/tmp/query_table_quotes.sh`  \n`kubectl exec deploy/mysql -- /bin/bash ./tmp/query_table_quotes.sh`  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fquotemysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-developer-demos%2Fquotemysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fquotemysql/lists"}