Debian Codegraph @

test/mysql-router/Dockerfile_https

raw
1 FROM oraclelinux:7-slim
2
3 ARG MYSQL_YUM_REPO_URL
4
5 RUN yum install -y $MYSQL_YUM_REPO_URL \
6 && yum-config-manager --enable mysql-innovation-community \
7 && yum install -y mysql-community-client mysql-router-community libpwquality \
8 && yum clean all
9
10 COPY mysqlrouter.pwd /mysqlrouter.pwd
11 COPY run_https.sh /tmp/run.sh
12 COPY certs/localhost.crt /server.crt
13 COPY certs/localhost.key /server.key
14
15 RUN chmod +x /tmp/run.sh
16
17 HEALTHCHECK \
18 CMD mysqladmin --port 6446 --protocol TCP ping 2>&1 | grep Access || exit 1
19
20 EXPOSE 8443
21 ENTRYPOINT ["/tmp/run.sh"]
22 CMD ["mysqlrouter"]