https://github.com/git-lfs/build-dockers
Dockers for building git-lfs
https://github.com/git-lfs/build-dockers
docker dockerfiles git-lfs
Last synced: 11 months ago
JSON representation
Dockers for building git-lfs
- Host: GitHub
- URL: https://github.com/git-lfs/build-dockers
- Owner: git-lfs
- License: other
- Created: 2015-10-23T04:50:36.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T16:29:08.000Z (11 months ago)
- Last Synced: 2025-04-09T20:08:29.529Z (11 months ago)
- Topics: docker, dockerfiles, git-lfs
- Language: Dockerfile
- Size: 175 KB
- Stars: 41
- Watchers: 10
- Forks: 26
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# Git LFS Dockerfiles
These Dockerfiles are designed specifically for use with the `git-lfs/git-lfs`
project. See the `docker` directory in that project for more information
on how to use these Dockerfiles.
## Building Docker Images
The top-level script to build all the Docker images in this project
may be run as:
```
$ ./build_dockers.bsh
```
## Adding Docker Images
To add another Docker image, simply follow the existing pattern.
A new Dockerfile should be named:
```
{OS NAME}_{OS VERSION}.Dockerfile
```
where `{OS NAME}` and `{OS VERSION}` must not contain underscores (\_).
The Docker image should run a script that builds Git LFS from its
source files, which will be available in the `/src` directory inside the
container. This directory may be assumed to be a mounted volume containing
a copy of the `git-lfs/git-lfs` project. This files in this directory
should not be modified by the build script; instead, the build output should
be written to the `/repo` directory, which will be a separate mounted volume
in the container.
Depending on the operating system and version, a Docker image may need to
install Go, Ruby, Git, and other tools before running the script to build
Git LFS.
## Updating Go Versions
To update all the Dockerfiles and the top-level script so they use a
new version of the Go language, the `update-hashes` script may be run as:
```
$ ./update-hashes {GO VERSION}
```
This script will also update the SHA-256 hashes expected for the Go release
packages so the build scripts will continue to validate the Go distribution
used to build Git LFS.