However, currently HAProxy is yet to be included in the generator (here’s the improvement request for this), you can take advantage of our provided configurations examples and instructions below in order to utilize HAProxy with Artifactory.
In this knowledge base article, we will provide two snippets, one for a single instance, and another for a cluster with two nodes. Both include the configuration required for Artifactory Docker repositories.
When you configure a reverse proxy to work with Artifactory as a Docker registry, it is possible to choose one of two methods:
* For HA clusters, Artifactory 5.x removes the requirement of having a “mechanism that takes care of sticky sessions” for persisting UI logins between Artifactory cluster nodes.
* In the configuration below we will show how to work with SSL, with self-signed certificate, nevertheless, it also possible to use publicly entrusted certificates/trusted CA signed ones.
First, you need to create a self-signed certificate for HAProxy as described here for Ubuntu, only the “Generate Certificate and Private Key” step is required.
*Note: while creating the certificate the common name is the most important component when generating certificates, as the FQDN of your server will have to match the DNS record of the HAProxy endpoint which will be in-front of the Artifactory server(s).
E.g: Public Server Name = “artifactory1” (“artifactory1” is the DNS name of the HAProxy endpoint)
2. Copy the code snippet below into /etc/haproxy/haproxy.cfg file:
* This is an example for a Docker virtual repository with Port Method, for a single Artifactory instance.
* $ systemctl is used in the example below due the use of Ubuntu 16.04 (which uses systemd)
Now everything is set and you should be able to $docker login and pull/push from/to Artifactory.
For more info on how to get started with Artifactory Docker registries, refer to our Wiki Page.
Release Fast Or Die
Your action was successful
Something went wrong
Please try again later
OUR COMMITMENT: FULL BUSINESS CONTINUITY
SERVING CUSTOMERS AND COMMUNITIES DURING THE COVID-19 OUTBREAK
Two of JFrog’s core values are CARE and OPEN COMMUNICATION.
These traits extend not only to our employees and customers but also to the global communities we serve.
Like you, we’re closely monitoring local and global health updates and making bold decisions to ensure the safety of our regional teams and broad communities around the world.
Our unwavering commitments to:
R&D, Pro-services and Conferences: We’ve implemented travel and office attendance policies that minimize possible viral exposure to employees, partners and guests, in accordance with local and regional health authorities. All JFrog offices are working according to this policy to allow our team to keep the business healthy and secure.
SLA Support Services:
Our business and production systems are globally available and run smoothly across geographies. Based on your subscription level, you will also still enjoy 24/7 support and the attention to detail you’ve come to expect from JFrog.
Proactive Online Availability: All of our people, products and assets are available online, with video rooms around the globe and expanding digital services across time zones. All monitoring of DevOps services, digital assets and collateral are available electronically.
Obviously, we take DevOps seriously. We take our commitments to you seriously. And we take our global commitments to health and wellbeing most seriously of all.
Frogs only leap forward – never backward.
Wishing you and yours a future of good health.