Containerised Git LFS installation
This project is intended for system administrators who want to perform an installation of Git LFS on any Linux distribution.
Table of Contents
Prerequisites
This projects requires an installation of docker and docker compose.
Docker
To install docker, follow the instructions for your platform:
- Install Docker Engine | Docker Documentation > Supported platforms
- Post-installation steps for Linux | Docker Documentation
Docker Compose
Install
Clone the source code of this project:
git clone https://gitlab.com/b-data/git-lfs/glfsi.git
Usage
Change directory and make a copy of all sample.
files:
cd glfsi
for file in sample.*; do cp "$file" "${file#sample.}"; done;
In .env
, set GIT_LFS_VERSION
to the desired version of Git LFS
(<major>.<minor>.<patch>
) and PREFIX
to the location, where you want the
git-lfs
programm to be installed (default: /usr/local
).
Then, create and start container glfsi using options --build
(Build images
before starting containers) and -V
(Recreate anonymous volumes instead of
retrieving data from the previous containers):
docker-compose up --build -V
Contributing
PRs accepted.
This project follows the Contributor Covenant Code of Conduct.
License
MIT © 2022 b-data GmbH