Hello,
I have just installed GitLab using docker-compose
It is running fine BUT I do not have Enable LFS in project settings (not as a user, nor as a root)
This is my docker-compose:
then you want to track whatever files, let’s assume ISO files:
git lfs track "*.iso"
then you can push/pull etc as normal. Obviously from the gitlab side, you need to make sure in the repo settings that LFS is enabled. So in the project settings → General → Visibility, project features, permissions.
as you will see the LFS option enabled, so that would need to be done first, before attempting the commands above.
And if you say it’s not available in the web interface, you will need to check gitlab.rb for this option:
# gitlab_rails['lfs_enabled'] = true
mine is hashed out, so default is true. If yours is unhashed and set to false, then it needs to be configured correctly. I think this is how it’s supposed to be done under docker:
so using those commands you can edit gitlab.rb and make sure lfs is enabled.
I am so sorry, thank you, just now looking at it I set it to false instead of true. Oh boy…
Thanks for pointing that out. I’ll try that today as I get to the PC and write the results here (I guess it will be ok).
Thank you again and sorry for dumb question
For anyone lurking, yes that was it. If it happens to you check if you don’t have gitlab_rails['lfs_enabled'] = false somewhere in compose file, gitlab config or run command