Skip to content

Commit ad12be6

Browse files
committed
feat: add Dockerfile and MySQL configuration for CSlant development
1 parent 133aeb3 commit ad12be6

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

mysql57/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM mysql:5.7
2+
3+
LABEL maintainer="Tan Nguyen <tannp@cslant.com>"
4+
LABEL authors="cslant"
5+
LABEL description="MySQL image for CSlant development"
6+
7+
COPY my.cnf /etc/mysql/conf.d/my.cnf
8+
9+
RUN chmod 0444 /etc/mysql/conf.d/my.cnf
10+
11+
CMD ["mysqld"]
12+
13+
EXPOSE 3306

mysql57/my.cnf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# The MySQL Client configuration file.
2+
#
3+
# For explanations see
4+
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
5+
6+
[mysql]
7+
8+
[mysqld]
9+
character-set-server = utf8mb4
10+
collation-server = utf8mb4_unicode_ci
11+
12+
sql_mode = ""
13+
14+
max_connections = 200
15+
innodb_buffer_pool_size = 256M
16+
17+
lower_case_table_names = 1

0 commit comments

Comments
 (0)