-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add mysql database #11
Conversation
@@ -0,0 +1,5 @@ | |||
import mysql from 'mysql2/promise' | |||
|
|||
export const connection = await mysql.createConnection('mysql://root:secret@localhost/itslearning') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const connection = await mysql.createConnection('mysql://root:secret@localhost/itslearning') | |
export const connection = await mysql.createConnection('mysql://root:secret@localhost/serlo') |
@@ -0,0 +1,57 @@ | |||
-- MySQL dump 10.13 Distrib 8.4.0, for Linux (x86_64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are using the serlo database , this should be deleted
serlo/api.serlo.org#1665
mysql: | ||
image: mysql:8 | ||
ports: | ||
- '3306:3306' | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=secret | ||
volumes: | ||
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mysql: | |
image: mysql:8 | |
ports: | |
- '3306:3306' | |
environment: | |
- MYSQL_ROOT_PASSWORD=secret | |
volumes: | |
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d | |
mysql: | |
image: eu.gcr.io/serlo-shared/serlo-mysql-database:latest | |
platform: linux/x86_64 | |
pull_policy: always | |
ports: | |
- '3306:3306' |
@hejtful maybe you want to see my suggestions and adapt this code to the new needs. |
Thank you Hugo for the suggestions! I'll close this PR because it drifted apart from |
The idea is to simulate the use of our mysql database for itslearning lti resources.