mirror of
https://github.com/productiveops/dokemon.git
synced 2026-04-26 08:15:49 +03:00
[GH-ISSUE #27] 【Feature Enhancement】Quickly update the dokemon-agent version on servers #8
Labels
No labels
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dokemon#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aaro-n on GitHub (Jan 14, 2024).
Original GitHub issue: https://github.com/productiveops/dokemon/issues/27
Issue
When the dokemon server version is updated, the corresponding dokemon-agent version on VPS is not automatically updated. Manual updating of dokemon-agent is cumbersome, especially when dealing with a large number of VPS.
Result
The dokemon server can now update the dokemon-agent version on managed VPS with a single click.
Practice
Run
docker-compose up -dto run in the background. On the dokemon server, you can see that the corresponding VPS is connected.Now you can deploy it like a regular Docker image. After running, you can use
docker-compose downto shut down the containers from step 1.Just create it but do not run it.
4.1 Update the dokemon-agent image for the corresponding VPS on the dokemon server.
4.2 Run the backup Definition configuration from step 3 and observe the logs to check if the running version is the latest dokemon-agent.
4.3 Stop and remove the containers from step 2. At this point, the VPS is running the latest version of dokemon-agent (from step 3).
4.4 Re-run step 2. The containers created should now run the latest version of dokemon-agent. Stop the containers from step 3 to complete the update of dokemon-agent on VPS.
Other
It would be beneficial to selectively update dokemon-agent on specific VPS instances. It would be ideal to have an environment variable to determine which Definition configuration the VPS is running (identifying the containers from steps 2 and 3).
@aaro-n commented on GitHub (Jan 14, 2024):
Translated by GPT-3.5