GitXplorerGitXplorer
t

docker-auto-labels

public
15 stars
12 forks
0 issues

Commits

List of commits on branch master.
Unverified
c11b19fc8a16720b6f1d917cebf255701ebff5a0

📝 Update release notes

iinvalid-email-address committed 5 months ago
Verified
1ac1181f90a7a6e754d4624da2930e48913ee7ea

👷 Update `latest-changes` GitHub Action (#13)

ttiangolo committed 5 months ago
Unverified
04810e051cd6e98eb8d4914cd767d2ea5a5d1232

📝 Update release notes

iinvalid-email-address committed 5 months ago
Verified
84918256e29c6879e97c922e1e5d12af0945c604

🔧 Update PDM config (#12)

ttiangolo committed 5 months ago
Unverified
6a88f5c5b41ad1398f2f9345cd3b0aac1439d9c0

🔖 Release version 0.2.4

ttiangolo committed 5 months ago
Unverified
3434d3b74a3ac5d5f5eeb6775e551a9703d55e04

📝 Update README

ttiangolo committed 5 months ago

README

The README file for this repository.

DEPRECATED 🚨

This project is deprecated. I haven't used it in years, I don't recommend using it.

Docker Auto Labels

Automatically generate Docker Swarm mode node labels for each constraint label in each service in a Docker Compose / Docker Stack file.

Description

This command line package is made to be used with a Docker Swarm mode cluster.

It will:

  • Read a Docker Compose / Docker Stack file.
  • Extract the node label constraints for each service.
  • Check that all the labels exist in the Docker Swarm mode cluster.
  • For each label that doesn't exist, create it in a random node in the cluster.

Adding label constraints helps you ensure that all the "stateful" Docker services (like databases) are always deployed to the same node (specially useful in a multi-node cluster).

This program will ensure that those labels exist in one node in the cluster, if they don't exist, they are created in one node chosen randomly.

That way, the first time you deploy a stack, a random node will be assigned to each stateful service (by this command, right before the deployment).

And for all subsequent deployments, the stateful services will go to the same nodes that they were using.

Release Notes

Latest Changes

Internal

0.2.4

Refactors

  • 👷 Refactor build setup and CI, and deprecate package. PR #11 by @tiangolo.

Internal

  • 🔧 Add GitHub templates for discussions and issues, and security policy. PR #9 by @alejsdev.
  • 🔧 Add funding. PR #8 by @tiangolo.
  • 👷 Add latest-changes GitHub Action. PR #6 by @tiangolo.
  • 👷 Add dependabot. PR #7 by @tiangolo.

0.2.3

License

MIT License