This commit is contained in:
Matthos Denys 2021-03-02 16:56:40 +03:00
parent cc499f4c2d
commit ace075c804
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ spec:
name: mysql
selector:
app: mysql
clusterIP: None
clusterIP: 10.99.10.10
---
apiVersion: apps/v1
kind: Deployment

View File

@ -1,9 +1,9 @@
FROM alpine:3.12
RUN echo "root:root" | chpasswd
FROM alpine:3.13.3
RUN apk update
RUN apk add mariadb mariadb-common mariadb-client
COPY my.cnf /etc/my.cnf
EXPOSE 3306
COPY start.sh /start.sh
RUN chmod +x /start.sh
VOLUME ["/var/lib/mysql"]
CMD ["/start.sh"]