-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile
25 lines (19 loc) · 998 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM mariadb:10.5
MAINTAINER Joao Costa <[email protected]>
RUN apt-get update && apt-get install -y \
autoconf \
automake \
gcc \
libmariadb-dev \
libtool \
make \
&& rm -rf /var/lib/apt/lists/*
ADD . /root/libmysqludfta
WORKDIR /root/libmysqludfta
RUN autoreconf -i && ./configure --with-mysql=`which mariadb-config` && make install
RUN cp setup/*_up.sql /docker-entrypoint-initdb.d/.
CMD ["mysqld", "--plugin-dir", "/usr/lib/x86_64-linux-gnu/libmariadb3/plugin"]
# docker build --tag mysqludf/latest .
# docker run --name fxdata -v $HOME/mysql:/var/lib/mysql -v $HOME/fx/cfg/mariadb:/etc/mysql/conf.d --hostname=datatest -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=fxdata -d --name fxdatatest lib_mysqludf/tatest
# docker run -it --link fxdatatest:mysql --rm mariadb sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"'
# https://hub.docker.com/_/mariadb/