Korbs / Container Rollout - Avoiding Downtime
Ostatnio aktywne 1 month ago
When updating websites or services that are running in Docker, I usually end up restarting the conainer after the OCI image has been updated, which can lead to temporary downtime from 30 seconds to 5 minutes depending on how big the container is. What could be worse, if the update fails and you need to troubleshoot, leading to longer downtime that can last up to 30 minutes, an hour, or a whole day if the problem is large. I've really never looked into alternative solutions when rolling out updates to my own websites and services.
Recently, I've looked into docker-rollout plugin, which helps with this process. When you update an image, you can run the rollout command. This will boot up the new container next to the old one(still running), then remove the old one if the new one passes the healthcheck.
This comes with one issue, which is fixed ports. We all know that you can't run more than one container that are using the port such as 80. So a proxy container should always run next to the main container and be used instead, Caddy for example should do well.
For example, this can be the compose file:
services:
gateway:
Korbs / SudoVanilla Wormhole - Keycloak Login Theme
Ostatnio aktywne 1 month ago
| 1 | /* Changes made by SudoVanilla */ |
| 2 | html::before { |
| 3 | content: ""; |
| 4 | background: url("https://via.sudovanilla.org/media/wallpapers/SudoVanilla/Night%20Lint.png"); |
| 5 | position: fixed; |
| 6 | top: 0; |
| 7 | left: 0; |
| 8 | width: 100%; |
| 9 | height: 100%; |
| 10 | background-repeat: no-repeat; |
Korbs / Signing OCI Images via Zot Registry
Ostatnio aktywne 3 months ago
Zot Registry Configuration
Please enable notation as a trust option and API keys:
...
"http": {
"auth": {
"apikey": true
}
}
Korbs / Stop Using JavaScript, Use These Methods Instead
Ostatnio aktywne 3 months ago

Stop Using JavaScript, Use These Methods Instead
Let's Talk First, About the JavaScript Issue
For years now JavaScript continues to be heavily overused for web features, where now today you have functions that have standardized, native, and high-performance equivalents in HTML and CSS. In today's modern web standards, it now allows developers to replace these complex and unnesesary scripts with simple declarative tags that provide better accessibility and speed. It's also really annoying when developers decide to use entire libraries for these basic tasks such as jQuery and React logic, which I personally hate.