Switching Container Registries With Zero Downtime
Published
March 16, 2023
This article was originally posted on
Hackernoon
You can change the hosting provider of your packages, containers, and files without impacting the end user with Scarf.
Scarf Gateway (available under the Apache 2 license at https://github.com/scarf-sh/gateway ) and our managed Scarf service are designed to provide you with an easy way to change out the back-end container registry, package location, or file hosting platform for your open source software. Scarf Gateway does this by creating a custom domain redirect to the channels distributing your software. If you find a provider not meeting your needs, simply update the endpoint, and all your users will continue using the same commands and destinations they used previously with no noticeable change.
Scarf Gateway
How Scarf Gateway works is similar to a link shortener like bit.ly, which acts as a domain gateway to redirect traffic. Where it is different from a normal link shortener is it is designed to be compatible with the different API’s used by various services like:
- Registries like Docker Hub, Google Container Registry, RedHat Quay, Amazon Elastic Container Registry, and Azure Container Registry
- Package managers like Nix, homebrew, RPM, Apt, etc,
- Language specific package managers like pip or npm,
- Files coming via source control repos (Github or Gitlab)
- Or any file that is a direct download on the internet

One Line Change:
If you are using the open source version of the Scarf Gateway, changing container registries is literally a one-line change


Update the registry variable in the configuration, and all your user's pull commands will redirect to the new location. No fuss.
If you are using Scarf.sh’s managed service the UI is just as simple (note using our hosted managed service is free if you don’t want to run the gateway on your own):

See how Scarf enables you to see more about your downloads:
You can see an example setup using the UI here (~3 minutes):
Latest blog posts
Tools and strategies modern teams need to help their companies grow.

Measuring the Commercial ROI of DEVREL


Selling Open Source: 101 - Guide for Sales and Marketing Teams

Beyond the Surface: How to Engage with the Quiet Members of your Open Source Community


Mastering Telemetry in Open Source: A Simple Guide to Building Lightweight Call Home Functionality


Scarf Newsletter - July 2023


Open Source Metrics: Fear and Loathing (Part 2)


Why GitHub Repos Are Not Enough for Your Docs: The Benefits of Creating a Dedicated Doc Site


Data-Driven Open Source: Why You Should Care About Metrics (Part 1)


State of Open Source Usage Q2 2023: The Scarf Report


Developer Relations (DevRel): Where Should It Reside in Your Organization


The Gating Debate: Striking a Balance Between Open Source and Marketing Insights


How to Use Metrics to Track and Evaluate Your Open Source Community’s Success


How to: Using anonymous downloads, website traffic, and documentation views to generate leads


Why Your Open Source Startup Is Going To Fail (And What You Can Do About It)


Open Source Monetization 101: A Step-by-Step Guide


The Open Source Sales & Marketing Funnel: Navigating the Challenges of Anonymous Downloads and Activity Tracking

.png)
Scarf Newsletter - May 2023


Harnessing Software Download Patterns: Using Open Source Download Metrics to Uncover New Users and Potential Customers


Unlocking Growth Potential: Scarf Users Benefit from Clearbit Integration for Improved User Intelligence

State of Open Source Usage Q1 2023: The Scarf Report


Connecting Community Efforts in Open Source to Business Success


3 Keys to Growing the Adoption of an Open Source Project


The Most Neglected and Overlooked Open Source Metric: Production Users


Switching Container Registries With Zero Downtime


Understanding Tech Layoffs and the Economy’s Impact on Open Source


Why Downloads are an Essential Metric for Open Source Software Projects


The Open Source Business Metrics Guide

.png)
Messaging and Positioning Considerations for Introducing an Open Source Product

.png)
How to Get the Attention of an Open Source Software Investor

.png)
Heroic Labs' Journey to Open Source and 5.3M Docker Downloads

.png)
How to Keep Open Source Projects Open Source


How Buoyant Drives Open-Source-Led Growth with Linkerd


Alex Biehl: Open Sourcing a Tool to Generate Haskell Server Stubs


Tanner Linsley: Building Sustainable Open Source Projects


Stefano Maffulli: An Exploration on Standards for Open Source Packaging and Distribution


Using OSS Usage Data to Sell your Company


A Different Approach to Measuring Open Source Community Health


Scarf Tech Stack: Relude


Python Wheels vs Eggs (And How Data-Driven Decisions Must Become The Norm in Open-Source)


Announcing Python Support


Project Spotlight: Scarf Gateway Stats


Scarf Will Block Package Downloads from the Russian Government


Community Spotlight: nix-community


Changelog: Registry Validation for Auto-package Creation


Three Ways to Build Better Products Through Analytics


New Year, New Scarf Features


OSS Project Spotlight: IHP


Measuring Downloads of Anything You Distribute


Announcing Nomia and the Scarf Environment Manager


Announcing The Scarf Gateway


Are Package Registries Holding Open-Source Hostage?


Analytics and Open Source Sustainability


Measuring the Commercial ROI of DEVREL


Selling Open Source: 101 - Guide for Sales and Marketing Teams

Beyond the Surface: How to Engage with the Quiet Members of your Open Source Community
