Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move mysql to github action services
- Loading branch information
Showing
6 changed files
with
27 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM mysql:latest | ||
ENV MYSQL_DATABASE testdb | ||
ENV MYSQL_USER testuser | ||
ENV MYSQL_PASSWORD testpass | ||
ENV MYSQL_ROOT_PASSWORD testpass | ||
COPY init.sql /docker-entrypoint-initdb.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
grant PROCESS on *.* TO 'testuser'@'%'; | ||
CREATE USER 'otelu'@'localhost' IDENTIFIED BY 'otelp'; | ||
GRANT ALL PRIVILEGES ON *.* TO 'otelu'@'localhost' WITH GRANT OPTION; | ||
|
||
CREATE DATABASE otel; | ||
|
||
USE otel; | ||
|
||
CREATE TABLE dummytable (myfield VARCHAR(20)); | ||
|
||
INSERT INTO dummytable VALUES ('bar'), ('foo'); | ||
flush privileges; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters