This document outlines the configuration and deployment process of a Dockerized PostgreSQL database service using Docker Compose, optimized for use on Ubuntu 24.04.1. The setup ensures high availability, persistent data storage, and efficient resource management, while adhering to best practices for containerized services in production environments.
Registering Rancher managed clusters in Argo CD doesn't work out of the box unless the Authorized Cluster Endpoint is used. Many users will prefer an integration of Argo CD via the central Rancher authentication proxy (which shares the network endpoint of the Rancher API/GUI). So let's find out why registering clusters via Rancher auth proxy fails and how to make it work.
Hint: If you are just looking for the solution scroll to the bottom of this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Building cluster_recovery.yml..." | |
echo "Working on Nodes..." | |
echo 'nodes:' > cluster_recovery.yml | |
kubectl --kubeconfig kube_config_cluster.yml -n kube-system get configmap full-cluster-state -o json | jq -r .data.\"full-cluster-state\" | jq -r .desiredState.rkeConfig.nodes | yq r - | sed 's/^/ /' | \ | |
sed -e 's/internalAddress/internal_address/g' | \ | |
sed -e 's/hostnameOverride/hostname_override/g' | \ | |
sed -e 's/sshKeyPath/ssh_key_path/g' >> cluster_recovery.yml | |
echo "" >> cluster_recovery.yml |
- Using a ready-to-use Ubuntu image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
NEXUS_ENDPOINT="http://nexus.com" | |
GROUP="com.github.lukehackett" | |
ARTIFACT="demo-applciation" | |
VERSION="1.0.0-SNAPSHOT" | |
REPO="snapshots" | |
PACKAGING="jar" | |
curl --silent --location \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- Lint images | |
- Build and publish images | |
## Load a node.js image, install dockerlint and lint all Dockerfiles | |
linting: | |
stage: Lint images | |
image: node:4-alpine | |
script: | |
- npm install -g dockerlint && npm cache clean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$version = '9.6.1' | |
# from /Applications/VMware Fusion.app/Contents/Library/isoimages/windows.iso | |
$iso_name = 'vmware_fusion_tools_windows_6.0.3.iso' | |
$download_url = "http://host.example.com/$iso_name" | |
(New-Object System.Net.WebClient).DownloadFile($download_url, "c:\windows\temp\$iso_name") | |
&c:\7-zip\7z.exe x "c:\windows\temp\$iso_name" -oc:\windows\temp\vmware -aoa | Out-Host | |
&c:\windows\temp\vmware\setup.exe /S /v`"/qn REBOOT=R`" | Out-Host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# List latest china IPv4 list | |
require 'open-uri' | |
(ARGF.path == '-' ? open('http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest') : ARGF).lines.each do |l| | |
next if !l.include?('ipv4') || l.include?('*') | |
cc, type, start, value = l.split('|')[1, 4] |