diff --git a/docker-tm-db-testing/Dockerfile b/docker-tm-db-testing/Dockerfile index 4a48b60..29d1fb0 100644 --- a/docker-tm-db-testing/Dockerfile +++ b/docker-tm-db-testing/Dockerfile @@ -1,9 +1,9 @@ -FROM circleci/golang +FROM golang ENV LD_LIBRARY_PATH=/usr/local/lib -RUN sudo apt-get install -y --no-install-recommends \ - libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev +RUN apt-get update && apt-get install -y --no-install-recommends \ + libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev make tar wget # Install cleveldb RUN \ @@ -11,20 +11,20 @@ RUN \ && tar xvf v1.20.tar.gz \ && cd leveldb-1.20 \ && make \ - && sudo cp -a out-static/lib* out-shared/lib* /usr/local/lib \ + && cp -a out-static/lib* out-shared/lib* /usr/local/lib \ && cd include \ - && sudo cp -a leveldb /usr/local/include \ - && sudo ldconfig \ + && cp -a leveldb /usr/local/include \ + && ldconfig \ && cd ../.. \ && rm -rf v1.20.tar.gz leveldb-1.20 # Install Rocksdb RUN \ - wget https://github.com/facebook/rocksdb/archive/v6.6.4.tar.gz \ - && tar -zxf v6.6.4.tar.gz \ - && cd rocksdb-6.6.4 \ + wget https://github.com/facebook/rocksdb/archive/v6.24.2.tar.gz \ + && tar -zxf v6.24.2.tar.gz \ + && cd rocksdb-6.42.2 \ && DEBUG_LEVEL=0 make -j4 shared_lib \ - && sudo make install-shared \ - && sudo ldconfig \ + && make install-shared \ + && ldconfig \ && cd .. \ - && rm -rf v6.6.4.tar.gz rocksdb-6.6.4 + && rm -rf v6.24.2.tar.gz rocksdb-6.24.2