Blockstream / Blockstream/greenlight
gltestserver needs a diet
- Dominant language
- Rust
- Stars
- 144
- Forks
- 48
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 2
Description
The recently introduced gl-testserver is run from a docker image that
contains all the necessary dependencies, and some more. The image
weighs in at over 9GiB, which even developing locally is a bit
much. It means that the developer disk is pointlessly being filled,
but also that a build and download of the docker image is a lengthy
process.
Putting it on a diet to weigh less, and come with fewer optional
dependencies is likely a good idea. These are the common threads that
we might want to investigate:
- [ ] Rust compilation artifacts should be kept in a builder image, and
selectively copied over.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating how gl-testserver builds and runs its Docker image, then measure which dependencies and Rust compilation artifacts are included. Compare the image contents and size before and after separating builder artifacts and removing optional dependencies; done means the server still works with a substantially smaller image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, rust
- Domain
- devops, infrastructure
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100