|
| 1 | +FROM ubuntu:18.04 |
| 2 | +LABEL maintainer="Anel Husakovic anel@mariadb.org" |
| 3 | + |
| 4 | +ARG DEBIAN_FRONTEND=noninteractive |
| 5 | +# Installing packages needed for the test |
| 6 | +RUN apt-get update -y && \ |
| 7 | + apt-get install -y libreoffice-base \ |
| 8 | + unixodbc \ |
| 9 | + unixodbc-dev \ |
| 10 | + odbcinst \ |
| 11 | + wget \ |
| 12 | + vim \ |
| 13 | + cmake \ |
| 14 | + build-essential \ |
| 15 | + git \ |
| 16 | + lsb-release \ |
| 17 | + cmake \ |
| 18 | + libncurses5-dev gnutls-dev bison ninja-build |
| 19 | + |
| 20 | +RUN mkdir /odbc_driver |
| 21 | +WORKDIR /odbc_driver |
| 22 | +RUN wget https://downloads.mariadb.com/Connectors/odbc/connector-odbc-3.1.7/mariadb-connector-odbc-3.1.7-ga-debian-x86_64.tar.gz && \ |
| 23 | + tar -xzvf mariadb-connector-odbc-3.1.7-ga-debian-x86_64.tar.gz && \ |
| 24 | + wget https://raw.githubusercontent.com/MariaDB/mariadb.org-tools/master/anel/odbc_driver/MariaDB_odbc_data_source_template.ini && \ |
| 25 | + wget https://raw.githubusercontent.com/MariaDB/mariadb.org-tools/master/anel/odbc_driver/MariaDB_odbc_driver_template.ini && \ |
| 26 | + wget https://raw.githubusercontent.com/MariaDB/mariadb.org-tools/master/anel/odbc_driver/MariaDB_odbc_data_source_template-root.ini |
| 27 | + |
| 28 | +RUN cp ./lib/libmaodbc.so /usr/lib/x86_64-linux-gnu |
| 29 | +RUN odbcinst -i -d -f MariaDB_odbc_driver_template.ini && \ |
| 30 | + odbcinst -i -s -h -f MariaDB_odbc_data_source_template.ini |
| 31 | +# run /etc/init.d/mysql start |
| 32 | + |
| 33 | +#RUN useradd -ms /bin/bash anel && \ |
| 34 | +# cd /home/anel && mkdir mariadb && \ |
| 35 | +# chown -R anel mariadb |
| 36 | + |
| 37 | +#WORKDIR /home/anel/mariadb |
| 38 | +RUN mkdir /mariadb |
| 39 | +RUN mkdir /tmp/datadir && chown -R anel /tmp/datadir |
| 40 | +WORKDIR /mariadb |
| 41 | +RUN git clone --branch 10.5 https://github.com/MariaDB/server/ |
| 42 | +WORKDIR ./server |
| 43 | +RUN cmake . -DCMAKE_BUILD_TYPE=RelWithDebugInfo -DCONC_WITH_{UNITTEST,SSL}=OFF \ |
| 44 | + -DWITH_EMBEDDED_SERVER=OFF -DWITH_UNIT_TESTS=OFF \ |
| 45 | + -DPLUGIN_{ARCHIVE,TOKUDB,MROONGA,OQGRAPH,ROCKSDB,CONNECT,PERFSCHEMA,SPIDER,SPHINX}=NO \ |
| 46 | + -DWITH_SAFEMALLOC=OFF -DMYSQL_MAINTAINER_MODE=OFF -G Ninja && \ |
| 47 | + ninja |
| 48 | +RUN ./scripts/mysql_install_db --no-defaults --datadir=/tmp/datadir --lc_messages_dir=./sql/share/ |
| 49 | +#run./sql/mysqld --no-defaults --datadir=/tmp/datadir --lc_messages_dir=./sql/share/ --user=root |
| 50 | +#run lobase |
0 commit comments