{"by":"louis_w_gk","descendants":23,"id":42866951,"kids":[42881503,42881596,42883324,42884554,42887820,42889943,42883670,42882625,42866952],"score":117,"text":"Distr is designed to help software engineers distribute and manage their applications or agents in customer-controlled or shared-responsibility environments. You only need a Docker Compose file or Helm chart—everything else for on-prem is handled by the platform.<p>We’re are an open source dev tool company. Over the past couple of months, we’ve spoken with dozens of software companies to understand their challenges with on-prem deployments. We analyzed the internal tools they’ve built and the best practices from existing solutions, combining them into a prebuilt, Open Source solution that works out of the box and integrates seamlessly.<p>Distr consists of two key components:<p>1. Hub - Provides a centralized view of all deployments and controls connected agents. - Comes with a simple GUI but also supports API and SDK access for seamless integration. - Fully Open- Surce and self-hostable, or you can use our fully managed platform.<p>2. Lightweight Agents - Pre-built agents for Helm (Kubernetes) and Docker Compose (VM) that run alongside your application. - Handle lifecycle tasks like guided installation, updates, and rollbacks. - Provide basic metrics (health status, application version) and logs<p>If you already have a customer portal or self-service interface for on-prem deployments, you can seamlessly integrate all features into your existing portal or application using our API or SDK. Alternatively, you can use our pre-built, white-labeled customer portal.<p>Here’s what an integration into your existing customer portal could look like:<p><pre><code>  import {DistrService} from &quot;@glasskube&#x2F;distr-sdk&quot;;\n  \n  const customerHasAutoUpdatesEnabled = false; &#x2F;&#x2F; replace with your own logic\n  const deploymentTargetId = &#x27;da1d7130-bfa9-49a1-b567-c49728837df7&#x27;;\n  const service = new DistrService({\n      apiKey: &#x27;distr-8c24167aeb5fd4bb48b6d2140927df0f&#x27;\n  });\n  \n  const result = await service.isOutdated(deploymentTargetId);\n  if(result.deploymentTarget.deployment?.latestStatus?.type !== &#x27;ok&#x27;) {\n      &#x2F;&#x2F; let the user decide whether to allow updates from an instable state, e.g. with:\n      if(!confirm(&#x27;The deployment is not in a stable state. Do you want to update anyway?&#x27;)) {\n          return;\n      }\n  }\n  if(result.outdated) {\n      if(customerHasAutoUpdatesEnabled) {\n          await service.updateDeployment({deploymentTargetId});\n          &#x2F;&#x2F; notify customer about the update\n      } else {\n          const newerVersionsAvailable = result.newerVersions;\n          &#x2F;&#x2F; notify customer about the newer versions, e.g. via email\n      }\n  }\n\n\n</code></pre>\nWith the SDK&#x2F;API, you can:\n- Display real-time deployed version and deployment status directly within the application, notifying customers when their deployed version is outdated.\n- Allow customers to trigger updates from within your app using a simple API call<p>If you’re distributing software and want to streamline updates or enhance monitoring, we’d love your feedback and are here to answer any questions.<p>Getting started is easy—just bring your Docker Compose file or Helm chart, and we’ll guide you through the rest.<p>Check out the fully managed version (<a href=\"https:&#x2F;&#x2F;app.distr.sh&#x2F;register\" rel=\"nofollow\">https:&#x2F;&#x2F;app.distr.sh&#x2F;register</a>) and explore our documentation (<a href=\"https:&#x2F;&#x2F;distr.sh&#x2F;docs&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;distr.sh&#x2F;docs&#x2F;</a>) to learn more.","time":1738167715,"title":"Show HN: Distr – open-source distribution platform for on-prem deployments","type":"story","url":"https://github.com/glasskube/distr"}