Closed angshuman closed 4 years ago
@angshuman this worked for me:
RUN apt-get update && apt-get install -y --no-install-recommends libc6-dev libsnappy1v5
Update: I have to put the following apt-get in the Dockerfile
RUN apt-get update && apt-get install -y libcap2-bin libsnappy1v5 && \
ln -s /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so && \
ln -s /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so && \
rm -rf /var/lib/apt/lists/*
Have you considered supporting docker containers officially? I came across a few issues while running rocksdb-sharp in a container.
RUN apt-get update && apt-get install -y libcap2-bin libsnappy1v5 && \ ln -s /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so && \ ln -s /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so && \ rm -rf /var/lib/apt/lists/*
RocksDbSharp.RocksDbException HResult=0x80131500 Message=IO error: While fsync: a directory: Invalid argument Source=RocksDbSharp StackTrace: at RocksDbSharp.Native.rocksdb_open(IntPtr options, String name) at RocksDbSharp.RocksDb.Open(OptionsHandle options, String path) at Hexastore.Rocks.RocksTest..ctor()