-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile
23 lines (18 loc) · 929 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
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 ./autogen.sh && ./configure --with-mysql=no --libdir=/usr/lib/mysql/plugin/ && make install
RUN cp setup/*_up.sql /docker-entrypoint-initdb.d/.
# 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/