Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,414,280
Community Members
 
Community Events
170
Community Groups

Managing LFS Files in JFrog Artifactory

Hello Everyone,

This article mainly focuses on how to manage your LFS files in your git repository in the remote.
So how do you manage Large files in the git repository?

Well, we have options when it comes to managing LFS files in Bitbucket Cloud.
The first option is using the same repository for managing LFS Files.
Other than that Sonar Cloud and JFrog Artifactory are also good options.

Let's look briefly at how to configure the repository in JFrog Artifactory for using LFS files.
The first step is to have a proper naming convention for the repository you are giving in JFrog Artifactory.
Please follow the guide here to know more about the same, it may help in other aspects also.

Create a separate User for Git Repository - LFS Management in Artifactory and have that user required permissions to the Artifactory Repository you are creating.
While setting up a repository, you have the option to setup include and exclude patterns, probably wanna be careful with that since it defines which files can be uploaded to your repository and which not, in this case, binary files.

1.png

2.png

3.png

JFrog Artifactory gives you the extent of replicating the repository from one instance to another, which helps if you have users around the globe.

The replication use case scenario depends on the requirement, lets a have look at it
If we have the same project shared across different development teams, in this case, it's best to use the replication feature.
Overcome connectivity issues such as network latency and stability when accessing LFS files.

4.png

5.png

We have the repository, it's upto now to inform developers on how to use LFS in their repository.
The set me up option in JFrog Artifactory gives the guide on how to setup LFS for a repository.

We can also have this configuration in the .gitconfig folder in ~(home directory)

That's it, now you are ready to use the Git Repository with LFS configured in JFrog Artifactory.

Here is a configuration file look for single repo, you would store the following in the .lfsconfig file inside the repository.

[lfs]
url = "https://<USERNAME>:<PASSWORD>@<DOMAIN>.jfrog.io/artifactory/api/lfs/<REPO-NAME>"

For Global configuration, you would store this in the home directory.

[lfs]
url = "https://<USERNAME>:<PASSWORD>@<DOMAIN>.jfrog.io/artifactory/api/lfs/<REPO-NAME>"


The information about the LFS file will be stored in Bitbucket Cloud, where you are storing your git repository and actual content will be stored in JFrog Artifactory.

7.png

8.png

Well, that's for managing LFS Files in the remote. I hope you find this article helpful and please share your thoughts in the comments.

Thanks,
Pramodh

5 comments

@Pramodh M  

Thank you for your article!

How often do you need to use the LFS settings? And did you meet with limits ?

Pramodh M Community Leader Feb 05, 2021

Yes, I have seen a couple of our customers have this configured in their environment, and it best suits you when you have more large files, as we would want to pay for storing LFS files in their cloud environment, and functionality wise I would say its the same approach.

Taranjeet Singh Community Leader Feb 11, 2021

Thank you for sharing this knowledgeable article, @Pramodh M !

Like Pramodh M likes this

I have an issue - my username contains a "@" and I've tried to replace with "%" as usual. It does not work - even with an API token as password. I can't set my username because our company uses SSO and thus dictates my username on JFROG.

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events