mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-14 12:05:18 +00:00
967c6857e8
* build & publish rocksdb docker images merge to master * publish docker images on push of release version tags NOTE: New docker image tag pattern. ALL tags now include database suffix ex. <githash>-goleveldb, v0.25.0-alpha.1-rocksdb, master-rocksdb, etc * update dockerfiles for better caching * update all github action workflow versions * improve caching of go packages * cache docker image layers for reuse between runs * update dockerignore to remove non-essential files
16 lines
397 B
Bash
Executable File
16 lines
397 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
|
|
# install build dependencies
|
|
sudo apt-get install -y libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
|
|
|
|
# get rocksdb sources
|
|
git clone https://github.com/facebook/rocksdb.git /home/runner/rocksdb
|
|
|
|
cd /home/runner/rocksdb || exit 1
|
|
|
|
git checkout "$ROCKSDB_VERSION"
|
|
|
|
# install rocksdb locally
|
|
sudo make -j "$(nproc --all)" install-shared && sudo ldconfig
|