init recursive git submodules on dockerhub (#3132)

* init recursive git submodules on dockerhub

* 32 * default

* 32 * default

* save
This commit is contained in:
Alex Sharov 2021-12-15 16:07:57 +07:00 committed by GitHub
parent d836e9e2d7
commit 37f0dcecc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 15 deletions

View File

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

View File

@ -95,20 +95,10 @@ evm:
@echo "Done building."
@echo "Run \"$(GOBIN)/evm\" to run EVM"
seeder:
$(GOBUILD) -o $(GOBIN)/seeder ./cmd/snapshots/seeder
downloader:
$(GOBUILD) -o $(GOBIN)/downloader ./cmd/downloader
@echo "Done building."
@echo "Run \"$(GOBIN)/seeder\" to seed snapshots."
sndownloader:
$(GOBUILD) -o $(GOBIN)/sndownloader ./cmd/snapshots/downloader
@echo "Done building."
@echo "Run \"$(GOBIN)/sndownloader\" to seed snapshots."
tracker:
$(GOBUILD) -o $(GOBIN)/tracker ./cmd/snapshots/tracker
@echo "Done building."
@echo "Run \"$(GOBIN)/tracker\" to run snapshots tracker."
@echo "Run \"$(GOBIN)/downloader\" to download and seed snapshots."
devnettest:
$(GOBUILD) -o $(GOBIN)/devnettest ./cmd/devnettest
@ -117,8 +107,13 @@ devnettest:
db-tools:
@echo "Building db-tools"
rm -rf libmdbx # hub.docker.com setup incorrect gitpath for git modules. Just remove it and re-init submodule.
# hub.docker.com setup incorrect gitpath for git modules. Just remove it and re-init submodule.
rm -rf libmdbx
rm -rf cmd/downloader/trackers/trackerslist
rm -rf turbo/snapshotsync/snapshothashes/erigon-snapshots
git submodule update --init --recursive --force
cd libmdbx && MDBX_BUILD_TIMESTAMP=unknown make tools
cp libmdbx/mdbx_chk $(GOBIN)
cp libmdbx/mdbx_copy $(GOBIN)