-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
23 lines (16 loc) · 818 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM oraclelinux:latest
ENV SERVER_PACKAGE_URL http://dev.mysql.com/get/Downloads/MySQL-Cluster-7.5/MySQL-Cluster-server-gpl-7.5.2-1.el7.x86_64.rpm
ENV CLIENT_PACKAGE_URL http://dev.mysql.com/get/Downloads/MySQL-Cluster-7.5/MySQL-Cluster-client-gpl-7.5.2-1.el7.x86_64.rpm
ENV LIB_PACKAGE_URL http://dev.mysql.com/get/Downloads/MySQL-Cluster-7.5/MySQL-Cluster-shared-gpl-7.5.2-1.el7.x86_64.rpm
# Install server
RUN yum install -y $SERVER_PACKAGE_URL $CLIENT_PACKAGE_URL $LIB_PACKAGE_URL && \
rm -rf /var/cache/yum/* && \
mkdir /docker-entrypoint-initdb.d
ADD my.cnf /etc/mysql/my.cnf
ADD cluster-config.ini /etc/mysql/cluster-config.ini
VOLUME /var/lib/mysql
VOLUME /var/lib/ndb
COPY mysql_cluster-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 3306 33060 1186 11860
CMD [""]