refactor: remove vendored binaries and raw assets from repo
This commit is contained in:
@@ -29,6 +29,13 @@ The service needs:
|
||||
- a writable temp directory
|
||||
- a free port range for `storescp`
|
||||
|
||||
If you do not manage these assets globally on the VM, you can stage them locally first:
|
||||
|
||||
```bash
|
||||
scripts/setup-dcmtk.sh --source-dir /path/to/dcmtk/bin --install-dir /opt/dicom-iso/dcmtk-bin
|
||||
scripts/setup-microdicom.sh --source-dir /path/to/microdicom --install-dir /opt/dicom-iso/microdicom
|
||||
```
|
||||
|
||||
## Build note
|
||||
The build environment cannot depend on public internet access.
|
||||
That means the binary must be built through an approved offline-friendly path.
|
||||
|
||||
18
docs/repo-size-cleanup.md
Normal file
18
docs/repo-size-cleanup.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Repo size cleanup
|
||||
|
||||
Implemented in the working tree:
|
||||
- removed tracked binaries from `dcmtk-bin/`
|
||||
- removed tracked raw assets from `legacy/raw/`
|
||||
- added `.gitignore` protections
|
||||
- added setup scripts for DCMTK and MicroDicom
|
||||
|
||||
## Finish the cleanup in git history
|
||||
Rewriting history is still required to shrink the remote repository size.
|
||||
|
||||
```bash
|
||||
git filter-repo --path dcmtk-bin --path legacy/raw --invert-paths
|
||||
git push --force --all
|
||||
git push --force --tags
|
||||
```
|
||||
|
||||
Coordinate this with any collaborators first.
|
||||
Reference in New Issue
Block a user