Large File Storage (LFS) for git

Psos

Cadet
Joined
Aug 26, 2019
Messages
3
Hello,

i'm very new in freeNAS, and I really need help with very basic issue.

I have GitLAB on my freeNAS server, but i need to install LFS for it, because my team cant push anything large.

There is a package to dowmload: https://github.com/git-lfs/git-lfs/releases but i dont kow how to place it on my server and how to install it on GitLab jail.

I only know how to place it on my SMB shared directory, but i suppose that is no good solution to install it from there, because, if I only live this directory the "git lfs" command isn't recognise.

Can anyone help me?
 

Psos

Cadet
Joined
Aug 26, 2019
Messages
3
Ok, i found that i have to move the git-lfs file to the path of git (https://github.com/git-lfs/git-lfs/wiki/Installation ), but i don't know where it is. I tried to move it to /mnt/Data/iocage/jails/gitlab/root and /mnt/Data/iocage/jails/gitlab/root/root but it doesn't work. Where is a formal path of the Git in the freeNAS?
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
Are you talking about FreeNAS, a jail inside FreeNAS or a plugin? That is not 100% clear to me.

If you're talking about plugin. You should best unpack the package somewhere in the plugin path, open
a console in the plugin and follow the instructions to install which are hopefully explained in the README
which comes with the package. Since a plugin is a very stripped down version it might not work.
Also keep in mind that such addition can get lost, when the plugin is updated.

If you're talking about a "normal" jail, simply install the package via the pkg command.
Code:
root@jail:~ # pkg install git-lfs
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 17 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    git-lfs: 2.7.2
    git: 2.22.0
    p5-CGI: 4.44
    p5-HTML-Parser: 3.72
    p5-HTML-Tagset: 3.20_1
    p5-IO-Socket-SSL: 2.066
    p5-Mozilla-CA: 20180117
    p5-Net-SSLeay: 1.85
    p5-IO-Socket-INET6: 2.72_1
    p5-Socket6: 0.29
    p5-Authen-SASL: 2.16_1
    p5-GSSAPI: 0.28_1
    p5-Digest-HMAC: 1.03_1
    p5-Error: 0.17027
    curl: 7.65.1
    libnghttp2: 1.39.2
    cvsps: 2.1_2

Number of packages to be installed: 17

The process will require 51 MiB more space.
13 MiB to be downloaded.

Proceed with this action? [y/N]: n
 

Psos

Cadet
Joined
Aug 26, 2019
Messages
3
I mean FreeNAS plugin. But where is Plugin path?

There is written (for linux, there isn't instruction about freeBSD):
- Place the `git-lfs` binary on your system’s executable `$PATH` or equivalent. - Git LFS requires global configuration changes once per-machine. This can be done by running: ```ShellSession $ git lfs install ```

but i dont know where is $PATH :(

Moreover I saw in the GitLab web interface, that LFS is turned on:
1566892591825.png


but when people try to use it, they have 0b/s transfer when try to push.
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
I mean FreeNAS plugin. But where is Plugin path?
OK, was just wondering, as this post was in jails and bhyve forum and not in plugins.
There is written (for linux, there isn't instruction about freeBSD):
When I look into the FreeBSD package from the page:
Code:
tar tvf git-lfs-freebsd-amd64-v2.8.0.tar.gz 
-rw-r--r-- bk2204/staff   7388 2019-07-18 18:43 README.md
-rw-r--r-- bk2204/staff  67018 2019-07-23 17:50 CHANGELOG.md
-rwxr-xr-x bk2204/staff 10381376 2019-07-23 17:52 git-lfs
-rwxr-xr-x bk2204/staff      389 2019-04-17 23:15 install.sh

This looks to me like there is a README and also an install script included.
but i don't know where is $PATH :(
echo $PATH inside the jail should do the trick.
Don't get me wrong, but for what you are trying to do you should really learn some shell basics first.
Plugins are intended to be used "as they are" . Adding features additional packages etc to plugins
should really just be done by people who know what they are doing.

And as I mentioned, after an update of the plugin these changes are gone.

What you could do is to put a feature request in JIRA, so that LFS support is included in the plugin.
 
Top