-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
collations: implement collation dumping as a docker image (#13879)
Signed-off-by: Vicent Marti <[email protected]>
- Loading branch information
Showing
3 changed files
with
446 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM debian:latest | ||
|
||
ARG MYSQL_VERSION=8.0.34 | ||
|
||
RUN apt-get update && apt-get -y install curl cmake build-essential libssl-dev libncurses5-dev pkg-config rapidjson-dev | ||
|
||
RUN cd /tmp && \ | ||
curl -OL https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-${MYSQL_VERSION}.tar.gz && \ | ||
tar zxvf mysql-${MYSQL_VERSION}.tar.gz | ||
|
||
ADD colldump.cc /tmp/mysql-${MYSQL_VERSION}/strings/colldump.cc | ||
RUN echo "MYSQL_ADD_EXECUTABLE(colldump colldump.cc SKIP_INSTALL)\nTARGET_LINK_LIBRARIES(colldump strings)\n" >> /tmp/mysql-${MYSQL_VERSION}/strings/CMakeLists.txt | ||
|
||
RUN cd /tmp/mysql-${MYSQL_VERSION} && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake -DDOWNLOAD_BOOST=1 -DWITH_BOOST=dist/boost .. && \ | ||
make colldump | ||
|
||
RUN mkdir /mysql-collations && /tmp/mysql-${MYSQL_VERSION}/build/runtime_output_directory/colldump /mysql-collations |
Oops, something went wrong.