https://github.com/andyneff/singularity-git
A docker designed to be turned into a singularity image to add a modern git to an old machine
https://github.com/andyneff/singularity-git
Last synced: 10 months ago
JSON representation
A docker designed to be turned into a singularity image to add a modern git to an old machine
- Host: GitHub
- URL: https://github.com/andyneff/singularity-git
- Owner: andyneff
- Created: 2019-12-02T21:49:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-26T18:05:16.000Z (over 5 years ago)
- Last Synced: 2025-03-05T06:43:42.341Z (over 1 year ago)
- Language: Shell
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A docker designed to be turned into a singularity image to add a modern git to an old machine
## Getting started
```
source 'setup.env'
just import
```
Now you have a working `git.simg` file, test it out with
```
just git --version
```
## Git usage:
```
./git --version
```
Its best to add an alias in your bashrc file
```bash
alias "git={singularity-git_repo_dir}/git"
```
## ssh-agent
An ssh-agent container has also been added. By default, your `SSH_AUTH_SOCK` will automatically be mounted in and used by the container, however if you aren't on a GUI, the ssh-agent isn't handled for you, and can be easy to lose track of. Next thing you know, you have dozens of `ssh-agent` processed running
```bash
just ssh-agent
```
Will start a singularity instance running and as long as `SSH_AUTH_SOCK` is unset, the git container will automatically connect to it. Use `just ssh-add` to add keys to your agent.
## Non-overlay fs support
For older operating systems without overlay fs, mount points must be made static.
This can be accomplished by simply editing your `local.env` (on the docker host) to include:
```bash
DOCKER2SINGULARITY_VERSION=v2.6
GIT_REPO_DIR_DOCKER=/code
GIT_SSH_SOCK_DOCKER=/ssh_sock
```