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%
| gitLFS_server | ||
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| enter_container.sh | ||
| entrypoint.sh | ||
| install_docker.sh | ||
| README.md | ||
| start_container.sh | ||
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!!!