forked from tongdun/data4test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbDockerfile
More file actions
28 lines (27 loc) · 973 Bytes
/
dbDockerfile
File metadata and controls
28 lines (27 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This file describes the standard way to build Data4Test on trial env image, and using container
#
# When build it, please prepare the all content of deploy directory
# you can read ci/getInitPackage.sh, to get the all content of deploy dirctory
#
# Usage:
#
# # Assemble the all environment, get related database tools in docker-compose.yml, It is slow the first time.
# docker build -f dbDockerfile -t db-data4test:5.0 .
# docker tag db-data4test:5.0 josingcjx/db-data4test:5.0
# docker push josingcjx/db-data4test:5.0
# use this image in docker-compose.yml
# use office image
FROM mysql:5.7
# FROM josingcjx/db-data4tes:1.0
MAINTAINER josingcjx
# import init sql to container
COPY ./mgmt/sql /docker-entrypoint-initdb.d/
# set env for mysql
ENV MYSQL_ROOT_PASSWORD=password
RUN cd /docker-entrypoint-initdb.d/ && \
cat init_all_20250702.sql > init.sql && \
rm -f update.sql && \
rm -f init_all_20250702.sql && \
cd -
# expose port for mysql
EXPOSE 3306