salix/services/db/Dockerfile

28 lines
932 B
Docker
Raw Normal View History

2019-01-04 12:32:04 +00:00
FROM mysql:5.6
ENV MYSQL_ROOT_PASSWORD root
2019-01-04 12:32:04 +00:00
ENV TZ Europe/Madrid
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates \
&& curl -L https://apt.verdnatura.es/conf/verdnatura.gpg | apt-key add - \
&& echo "deb http://apt.verdnatura.es/ jessie main" > /etc/apt/sources.list.d/vn.list \
&& apt-get update \
&& apt-get install -y vn-mysql
RUN cp /usr/local/bin/docker-entrypoint.sh /usr/local/bin/my-docker-entrypoint.sh \
&& sed -i '$ d' /usr/local/bin/my-docker-entrypoint.sh
WORKDIR /docker-entrypoint-initdb.d
2019-01-04 12:32:04 +00:00
COPY install /docker-entrypoint-initdb.d
RUN mkdir /mysql-data \
&& chmod 770 /mysql-data
RUN /usr/local/bin/my-docker-entrypoint.sh mysqld --datadir /mysql-data
CMD ["mysqld", "--datadir", "/mysql-data"]
#HEALTHCHECK --interval=5s --timeout=10s --retries=200 \
# CMD mysqladmin ping -h 127.0.0.1 -u root || exit 1