good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Erigon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
a
Erigon
Commits
38e8706c
Unverified
Commit
38e8706c
authored
2 years ago
by
Alex Sharov
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Docker build: make db-tools to depend on git-submodules (#4024)
* save * save * save * save * save
parent
285c782b
Loading
Loading
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-2
1 addition, 2 deletions
Dockerfile
Makefile
+3
-2
3 additions, 2 deletions
Makefile
with
4 additions
and
4 deletions
Dockerfile
+
1
−
2
View file @
38e8706c
...
...
@@ -6,8 +6,7 @@ RUN apk --no-cache add make gcc g++ linux-headers git bash ca-certificates libgc
WORKDIR
/app
ADD
. .
# expect that host run `git submodule update --init`
RUN
make erigon rpcdaemon integration sentry txpool downloader hack db-tools
RUN
make erigon rpcdaemon integration sentry txpool downloader hack observer db-tools
FROM
docker.io/library/alpine:3.15
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
3
−
2
View file @
38e8706c
...
...
@@ -29,7 +29,7 @@ go-version:
exit
1
;
\
fi
docker
:
docker
:
git-submodules
DOCKER_BUILDKIT
=
1 docker build
-t
erigon:latest
--build-arg
git_commit
=
'
${
GIT_COMMIT
}
'
--build-arg
git_branch
=
'
${
GIT_BRANCH
}
'
--build-arg
git_tag
=
'
${
GIT_TAG
}
'
.
xdg_data_home
:=
~/.local/share
...
...
@@ -74,7 +74,7 @@ $(COMMANDS): %: %.cmd
all
:
erigon $(COMMANDS)
db-tools
:
db-tools
:
git-submodules
@
echo
"Building db-tools"
# hub.docker.com setup incorrect gitpath for git modules. Just remove it and re-init submodule.
...
...
@@ -137,6 +137,7 @@ escape:
cd
$(
path
)
&&
go
test
-gcflags
"-m -m"
-run
none
-bench
=
BenchmarkJumpdest
*
-benchmem
-memprofile
mem.out
git-submodules
:
@
[
-d
".git"
]
||
(
echo
"Not a git repository"
&&
exit
1
)
@
echo
"Updating git submodules"
@
# Dockerhub using ./hooks/post-checkout to set submodules, so this line will fail on Dockerhub
@
git submodule update
--quiet
--init
--recursive
--force
||
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment