Commit Graph

99 Commits

Author SHA1 Message Date
Alex Sharov
2b4884bf0b
docker set alpine version to v3.16 (#5426) 2022-09-19 14:38:08 +07:00
Alex Sharov
0fef7c392c
save (#5397) 2022-09-17 12:54:35 +01:00
Mark Shields
29234b4fc2
feat: Dockerfile apk add curl jq (#5047) 2022-08-14 09:04:15 +07:00
Cory
74cf9840ae
Patch plumbing of docker-compose UID/GID build args (#4527)
* Patch plumbing of docker-compose UID/GID build args

* Fallback to 1000/1000 if DOCKER_(U|G)ID not set

* Revise README.md instructions for docker further

* Fix existing typo forc 'servie' -> 'service'

* Rename PUID/GUID -> UID/GID

* Specify user in erigon docker service

* Rely on .env instead of specifying :-1000

* Polish Makefile for docker use case

* one more helpful comment

* make docker should use UID/GID --build-arg

* Fix make docker and more fail-fast if envvar set incorrect

* mv .env->.env.example to not intefere existing workflows

* Specify envvars in docker CI

* Adjust validate_docker_build_args to permit non-erigon user

* Also run docker CI target on macos-11 os

* Add DOCKER_UID, DOCKER_GID in hooks/build

* Patch docker build arg validation for macos

* Add actions-setup-docker@master for macos

* Don't run automated test for docker macos

* Cleanup Makefile

* Comments, targets for erigon users

* More Makefile cleanup, debugging still

* Typo fix

* Create subdirs before calling ls

* Get rid of flaky validation

* DOCKER_UID, DOCKER_GID init to runner if not set

* Get rid of unnecessary variable for now

* Improved README based on new changes

* Proper uid/gid `make user_*` when no envars set

* Fix typo in Makefile comment

* Fix make docker as sudo user
2022-06-30 16:11:37 +06:00
3nprob
a738a0dd51
makefile: Add DOCKER_{UID,GID,TAG} make params (#4457)
Co-authored-by: 3np <3np@example.com>
2022-06-16 15:50:59 +01:00
Alex Sharov
4150c66eb7
Dockerfile add buildcache (#4332) 2022-06-02 15:49:21 +07:00
battlmonstr
54cf932652
Makefile: pass docker build arguments (#4212)
Dockerfile requires some --build-arg options.
Fix "docker" target to pass them.
Fix GIT_TAG to reflect the most recent tag related to HEAD, instead of an unrelated most recent tag.
Use it as the image VERSION.

Image tags need to be passed explicitly if needed:

    DOCKER_FLAGS='-t erigon:latest' make docker
2022-05-21 10:21:35 +01:00
Alex Sharov
0929df8915
Docker: use recommended way to install gcc (by build-base package) (#4134) 2022-05-12 15:17:24 +07:00
Andrew Ashikhmin
15ddd32e75
Engine API: remove unauth port (#4111)
* Engine API: remove unauth port

* Remove reduntant auth from variable names
2022-05-10 13:04:52 +02:00
ledgerwatch
4e683e1a34
Revert "Speed up docker image build by use layer cache (#4038)" (#4054)
This reverts commit e758fb800b.
2022-05-03 17:00:52 +01:00
EXEC
e758fb800b
Speed up docker image build by use layer cache (#4038)
* speed up docker image build by use layer cache

* rearrenge Dockerfile

* enable docker layer cache in github action
2022-05-02 11:55:16 +07:00
Alex Sharov
38e8706c91
Docker build: make db-tools to depend on git-submodules (#4024)
* save

* save

* save

* save

* save
2022-04-29 14:07:39 +07:00
Alex Sharov
6865f2543d
Snapshots: open bittorrent udp port in docker (#3969)
* Snapshots: open torrent udp in docker-compose.yml

* Snapshots: open torrent udp in docker-compose.yml
2022-04-26 10:52:46 +07:00
Alex Sharov
667125bc65
go_1.18 on CI and in Docker (#3843) 2022-04-21 14:51:30 +07:00
Alex Sharov
4fc88fee59
docker on alpine 3.15 (#3844)
* save

* save
2022-04-08 15:53:40 +07:00
alex.sharov
90a9675c24 Revert "save"
This reverts commit 01b3a60186.
2022-04-07 11:43:19 +07:00
alex.sharov
01b3a60186 save 2022-04-07 11:43:04 +07:00
alex.sharov
4817988991 Revert "save"
This reverts commit 81dd0851bb.
2022-04-07 11:42:47 +07:00
alex.sharov
81dd0851bb save 2022-04-07 11:42:28 +07:00
Andrew Ashikhmin
f58e80bd56
Expose eth API on the same ports as engine API (#3633)
* Expose port 8551 (authenticated Engine API)

* Expose eth API on the same ports as engine API
2022-03-02 14:58:46 +01:00
Enrique Jose Avila Asapche
2aa1ebf9f6
Separate Server For Engine API (#3332) 2022-01-25 19:44:35 +03:00
Alex Sharov
37f0dcecc1
init recursive git submodules on dockerhub (#3132)
* init recursive git submodules on dockerhub

* 32 * default

* 32 * default

* save
2021-12-15 16:07:57 +07:00
ledgerwatch
62d524f601
Update Dockerfile 2021-12-08 23:32:24 +00:00
Alex Sharp
f50f056014 Revert "Revert "Update Dockerfile""
This reverts commit aa8ee534ce.
2021-12-08 23:30:46 +00:00
Alex Sharp
aa8ee534ce Revert "Update Dockerfile"
This reverts commit cf9d09e22e.
2021-12-08 23:30:11 +00:00
ledgerwatch
cf9d09e22e
Update Dockerfile 2021-12-08 23:19:06 +00:00
ledgerwatch
7f2bf4c203
Update Dockerfile 2021-12-08 23:12:55 +00:00
Alex Sharov
5fb1a4ce49
Add db-tools to Dockerfile (#2950) 2021-11-15 10:14:19 +07:00
alex.sharov
bfb26e547d derive_chainid_no_alloc 2021-11-01 15:02:43 +07:00
alex.sharov
e95b63d404 add hack to dockerfile 2021-10-31 07:39:47 +07:00
Alex Sharov
b890e973db
Dockerfile: switch to go1.17 and alpine3.14 (#2766) 2021-10-04 08:04:38 +07:00
alex.sharov
29b005e87a add OCI link 2021-07-27 09:41:17 +07:00
sam bacha
c682dd16d7
minor dockerfile improvements (#2443) 2021-07-27 09:39:21 +07:00
Alex Sharov
9398e2ff93
Breaking change: Docker to follow XDG spec (#2437)
change default dir inside docker from /var/lib/erigon to /home/erigon/.local/share/erigon
2021-07-24 16:14:46 +07:00
Marius
d085bf9a7f
docker-compose with minimal PID namespace and non-root permissions (#2397)
* Feat: only share the erigon container PID namespace with rpcdaemon instead of the entire host PID namespace.

* Feat: remove host UID:GUID mapping from erigon and rpcdaemon containers in favour of erigon user in Dockerfile. Adapted Makefile to pre-create mounted volumes to avoid permission issues at runtime.

* Feat: docker volume directories should always be owned by erigon user(1000:1000) regardless of the user that invoked the make command.

* Fix: don't chown here which breaks docker volume mounts.

* Fix: remove ERIGON_HOME Makefile variable and simplify recipe.
2021-07-19 20:40:09 +07:00
alex.sharov
5d4c7237dc 1559_rpc_call_and_tracing 2021-07-09 17:54:27 +07:00
Juuso Haavisto
e81b3f7638
Docker: explicitly declare base image source (#2322)
Some container engines such as podman have started to prompt the user to explicitly state (thus sometimes causing service scripts on systemd) to fail for lack of mentioning what container image hub is used. This change declares the hub to be docker.io, thus removing the prompt on systems that use podman.
2021-07-09 16:45:18 +07:00
Alex Sharov
3fcb6187f2
DockerHub support (#2325) 2021-07-09 16:40:11 +07:00
Alex Sharov
3347068dc5
mainnet london block and port some go-ethereum fixes related to baseFee (#2324) 2021-07-09 16:16:34 +07:00
Alex Sharov
fbf2a6bf98
Docker (breaking changes): use thorax/erigon image (#2277) 2021-07-09 15:37:36 +07:00
Andrea Lanfranchi
e6e0a5de3d
Add repo tag to build info (#2108)
* Add repo tag to build info

* Update Dockerfile
2021-06-06 09:05:30 +01:00
Chase Wright
d8888439b7
Add tzdata to alpine container for log timestamps (#1892)
Alpine containers, by default, do not include `tzdata` package, so they do not honor the `TZ` environment variable. When running in a docker container the logs timestamps will always be in UTC without this package. I propose we add `tzdata` so that the timezone can be changed.
2021-05-06 18:22:11 +01:00
Alex Sharov
909fd42bee
go 1.16 support (#1509) 2021-03-19 16:32:52 +07:00
Alex Sharov
6d0d84cda6
log git branch and git commit (#1523) 2021-03-01 11:02:06 +07:00
Alex Sharov
fa1d92bd15
Rm zstd (#1427) 2020-12-28 22:14:16 +07:00
Igor Mandrigin
1b2bf8bf61
fix git commit when using make docker (#1323)
* fix git commit when using `make docker`

* avoid warning about LATEST_COMMIT for linters in Docker
2020-10-30 08:43:24 +00:00
Alex Sharov
531d36efcb
mdbx support (#1235) 2020-10-28 10:18:10 +07:00
ledgerwatch
cd706d5081
Download/seed block bodies and block headers via BitTorrent (#1218)
* save state

* torrent experiments

* torrent experiment passed

* fixes after merge

* snapshot headers processing passed

* save state

* save state

* download headers works after snapshot processing

* save state

* save state

* save state

* save state

* add lazy load tx to snapshots, increase number of trackers

* save state

* speedup getting info

* change logging

* move to turbo package

* save state

* save state

* save state

* cleanup

* save state

* add test test

* save state

* lmdb debugging

* fix readonly mode

* save state

* fix build

* sync works

* save state

* save state

* save state

* allow cmd stages stageSenders use snapshots

* debugging failed hashing

* remove experimental tests

* remove torrent experimental tests

* fix lint

* extract snapshot wrapper

* metainfo checker

* add remote seeder

* add logs

* update gomod

* remove useless code

* fix lint&remove useless code

* extract verify snapshot to separated command

* skip debug test

* fix test

* change type of seedSnapshot flag

* add eth logger to torrent lib

* skip debug test

* add Close method

* review fixes

* fix lint

* tidy mods

* Fix compile

* Fix lint

* Fix rpcdaemon running in the docker

Co-authored-by: b00ris <b00ris@mail.ru>
Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2020-10-13 13:56:16 +01:00
Alex Sharov
0a40ee40ef
fix_race_condition_on_zstd_build (#1212) 2020-10-09 14:54:43 +07:00
Alex Sharov
9ff9a1a486
a (#1205) 2020-10-08 11:34:28 +07:00