Skip to content

Instantly share code, notes, and snippets.

@smallnest
Forked from elasticjava/Dockerfile
Created November 7, 2018 04:09
Show Gist options
  • Save smallnest/d2f79031228c2d1604b8818f465d271a to your computer and use it in GitHub Desktop.
Save smallnest/d2f79031228c2d1604b8818f465d271a to your computer and use it in GitHub Desktop.
tried to run Rocksdb under alpine linux inside Docker
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