Last active
November 7, 2018 04:09
-
-
Save elasticjava/4e4dbc21370ac845fccf70dff096ecb4 to your computer and use it in GitHub Desktop.
tried to run Rocksdb under alpine linux inside Docker
This file contains hidden or 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
FROM gliderlabs/alpine | |
RUN apk add --update git build-base linux-headers wget tar perl zlib zlib-dev bzip2 bzip2-dev && \ | |
cd /tmp && \ | |
wget https://gflags.googlecode.com/files/gflags-2.0-no-svn-files.tar.gz && \ | |
tar -xzvf gflags-2.0-no-svn-files.tar.gz && \ | |
cd gflags-2.0 && \ | |
./configure && make && make install && \ | |
cd /tmp && \ | |
wget https://snappy.googlecode.com/files/snappy-1.1.1.tar.gz && \ | |
tar -xzvf snappy-1.1.1.tar.gz && \ | |
cd snappy-1.1.1 && \ | |
./configure && make && make install && \ | |
cd /tmp && \ | |
git clone https://github.com/sgerrand/alpine-pkg-libunwind && \ | |
cd alpine-pkg-libunwind && \ | |
cd /tmp && \ | |
git clone https://github.com/facebook/rocksdb.git && \ | |
cd rocksdb && \ | |
git checkout tags/v4.6.1 && \ | |
PORTABLE=1 make shared_lib && \ | |
INSTALL_PATH=/usr/local make install-shared && \ | |
cd && \ | |
apk remove git build-base linux-headers wget tar perl zlib-dev bzip2-dev && \ | |
apk clean && \ | |
rm -rf /tmp/* | |
#todo: adapt workaround mentioned in http://bugs.alpinelinux.org/issues/5079 | |
# install alpine-pkg-libunwind + change code for backtrace functions | |
# run rocksdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment