Skip to content

Adding Dockerfile #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
FROM centos

RUN yum -y install epel-release && \
yum -y update && \
yum -y clean all

RUN set -x \
&& yum -y install \
libstdc++ \
readline \
openssl \
yaml \
lz4 \
binutils \
ncurses \
libgomp \
lua \
curl \
tar \
zip \
unzip \
libunwind \
libcurl \
libicu \
&& yum -y install \
perl \
gcc-c++ \
cmake \
readline-devel \
openssl-devel \
libyaml-devel \
lz4-devel \
binutils-devel \
ncurses-devel \
lua-devel \
make \
git \
libunwind-devel \
autoconf \
automake \
libtool \
go \
wget \
curl-devel \
libicu-devel \
&& yum -y install \
boost \
boost-devel

##
## Install mysql57 client, devel packages
##
RUN yum localinstall -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm \
&& yum --disablerepo=mysql80-community --enablerepo=mysql57-community install -y \
mysql-community-client \
mysql-community-devel


RUN git clone https://github.com/tarantool/mysql-tarantool-replication.git mysql_tarantool-replication

RUN cd mysql_tarantool-replication \
&& git submodule update --init --recursive

RUN cd mysql_tarantool-replication \
&& cmake . \
&& make

##
## Copy replicatord binary to new image to minimize size
##
FROM centos
COPY --from=0 mysql_tarantool-replication/replicatord .