200-line dockerized go server to pass thru to r2 bucket for LFS with minimum network hops.
  • Go 72.5%
  • Dockerfile 19.2%
  • Shell 8.3%
Find a file
2026-08-06 06:34:31 -07:00
gitLFS_server scaffold: enable git-LFS, codify nested-repo + .venv ignores 2026-05-27 06:04:51 -07:00
.env.example scaffold: enable git-LFS, codify nested-repo + .venv ignores 2026-05-27 06:04:51 -07:00
.gitignore scaffold: enable git-LFS, codify nested-repo + .venv ignores 2026-05-27 06:04:51 -07:00
docker-compose.yml Support bucket-scoped R2 LFS credentials 2026-08-06 06:34:31 -07:00
Dockerfile scaffold: enable git-LFS, codify nested-repo + .venv ignores 2026-05-27 06:04:51 -07:00
enter_container.sh scaffold: enable git-LFS, codify nested-repo + .venv ignores 2026-05-27 06:04:51 -07:00
entrypoint.sh Support bucket-scoped R2 LFS credentials 2026-08-06 06:34:31 -07:00
install_docker.sh scaffold: enable git-LFS, codify nested-repo + .venv ignores 2026-05-27 06:04:51 -07:00
README.md scaffold: enable git-LFS, codify nested-repo + .venv ignores 2026-05-27 06:04:51 -07:00
start_container.sh scaffold: enable git-LFS, codify nested-repo + .venv ignores 2026-05-27 06:04:51 -07:00

Dockerized git LFS

Dockerizing git LFS

  • install + configure rclone
  • install git LFS
  • installing go
  • compile gitLFS_server/main.go
  • configure r2 from .env passed in vars

"Tag" a new machine to have LFS via Ansible:

  • r2.env copy in (scp)
  • ensure docker exists/install docker
  • build + run the docker container

Running the container:

# from BReaDv3/dockerized_lfs
# bansible copies in the ./r2.env
#                   and  ./lfs_env
docker compose up

Result: there's a dockerized container running on LFS_PORT on the machine and it JUST WORKS!!!