Add db-tools to Dockerfile (#2950)

This commit is contained in:
Alex Sharov 2021-11-15 10:14:19 +07:00 committed by GitHub
parent a902880e99
commit 5fb1a4ce49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -68,7 +68,7 @@ jobs:
shell: powershell
docker:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: git submodule update --init --recursive --force

View File

@ -7,7 +7,7 @@ WORKDIR /app
ADD . .
# expect that host run `git submodule update --init`
RUN make erigon rpcdaemon integration sentry hack
RUN make erigon rpcdaemon integration sentry hack db-tools
FROM docker.io/library/alpine:3.14

View File

@ -110,9 +110,10 @@ tracker:
@echo "Done building."
@echo "Run \"$(GOBIN)/tracker\" to run snapshots tracker."
db-tools: libmdbx
db-tools:
@echo "Building db-tools"
git submodule update --init --recursive
rm -rf libmdbx # hub.docker.com setup incorrect gitpath for git modules. Just remove it and re-init submodule.
git submodule update --init --recursive --force
cd libmdbx && MDBX_BUILD_TIMESTAMP=unknown make tools
cp libmdbx/mdbx_chk $(GOBIN)
cp libmdbx/mdbx_copy $(GOBIN)