File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
33mkdir nacos-mysql
4- curl -o nacos-mysql/Dockerfile https://raw.githubusercontent.com/nacos-group/nacos-docker/master/example/image/mysql/5.7/Dockerfile
5- docker build -t nacos-mysql:5.7 nacos-mysql/
4+
5+ # curl -o nacos-mysql/Dockerfile https://raw.githubusercontent.com/nacos-group/nacos-docker/master/example/image/mysql/5.7/Dockerfile
6+
7+ # Since mysql-schema.sql is not found at https://raw.githubusercontent.com, we add it from github.com:
8+ cat > nacos-mysql/Dockerfile << EOF
9+ FROM mysql:5.7.40
10+ ADD https://github.com/alibaba/nacos/blob/master/distribution/conf/mysql-schema.sql /docker-entrypoint-initdb.d/nacos-mysql.sql
11+ RUN chown -R mysql:mysql /docker-entrypoint-initdb.d/nacos-mysql.sql
12+ EXPOSE 3306
13+ CMD ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
14+ EOF
15+
16+ docker build -t nacos-mysql:5.7 nacos-mysql/
You can’t perform that action at this time.
0 commit comments