Links

JFrog Artifactory

Learn how to configure JFrog Artifactory for use with Filebase.

What is JFrog Artifactory?

JFrog Artifactory is a DevOps platform that can be deployed as a Docker container or on Linux machines that provides automation and binary management through an application delivery process. JFrog can be configured to automatically backup local filestores to S3-compatible storage solutions.
Read below to learn how to use JFrog Artifactory with Filebase.

Prerequisites:

  • Download and install JFrog Artifactory - Self Hosted version.
  • Sign up for a free Filebase account.
  • Have your Filebase Access and Secret Keys. Learn how to view your access keys here.
  • Create a Filebase Bucket. Learn how to create a bucket here.
This guide was tested and written using Ubuntu 20.04.

1. Once installed do not start the JFrog service.

First, navigate to the $JFROG_HOME/artifactory/var/etc/artifactory/artifactory.lic file and input your JFrog Artifactory license key.

2. Then, navigate to the directory $JFROG_HOME/artifactory/var/etc/artifactory.

Create or open the binarystore.xml file. Input the following content into the binarystore.xml file:
<config version="2">
<chain template="s3-storage-v3-direct"/>
<provider id="s3-storage-v3" type="s3-storage-v3">
<endpoint>s3.filebase.com</endpoint>
<bucketName>filebase-sample-bucket</bucketName>
<path>/path/to/filestore</path>
<region>us-east-1</region>
<identity>filebase-access-key</identity>
<credential>filebase-secret-key</credential>
</provider>
</config>
Replace the following values to match your configuration:
  • BucketName: Filebase bucket name
  • Path: Path to your JFrog Filestore
  • Identity: Filebase Access Key
  • Credential: Filebase Secret Key

3. Next, navigate to the directory $JFROG_HOME/artifactory/var/data/artifactory and create a subdirectory called eventual.

cd $JFROG_HOME/artifactory/var/data/artifactory
mkdir eventual
ln -s $JFROG_HOME/artifactory/var/data/artifactory/filestore _add
ln -s $JFROG_HOME/artifactory/var/data/artifactory/filestore/_pre _pre
Now, as soon as Artifactory starts up, it will automatically move your complete filestore over to your Filebase bucket.

6. Start the JFrog Artifactory service.

If you have any questions, please join our Discord server, or send us an email at [email protected]
Last modified 1yr ago