File: Dockerfile_http

package info (click to toggle)
golang-github-rluisr-mysqlrouter-go 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 264 kB
  • sloc: sh: 215; javascript: 15; makefile: 11
file content (19 lines) | stat: -rw-r--r-- 502 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM oraclelinux:7-slim

ARG MYSQL_YUM_REPO_URL

RUN yum install -y $MYSQL_YUM_REPO_URL \
    && yum-config-manager --enable mysql-innovation-community \
    && yum install -y mysql-community-client mysql-router-community libpwquality \
    && yum clean all

COPY mysqlrouter.pwd /mysqlrouter.pwd
COPY run_http.sh /tmp/run.sh
RUN chmod +x /tmp/run.sh

HEALTHCHECK \
	CMD mysqladmin --port 6446 --protocol TCP ping 2>&1 | grep Access || exit 1

EXPOSE 8080
ENTRYPOINT ["/tmp/run.sh"]
CMD ["mysqlrouter"]