| Layer | Network | Example IP | Purpose |
|---|---|---|---|
| macOS | Host-only | 192.168.106.1 | Host side |
| Colima VM | Host-only | 192.168.106.3 | Gateway to Docker |
| Docker bridge | Internal | 172.17.0.1 | Container bridge |
| Container | Internal | 172.17.0.2+ | Application IPs |
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
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: nginx-reverseproxy-config | |
| data: | |
| nginx.conf: | | |
| events {} | |
| http { |
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 | |
| # set up locale with US so installation goes without user input | |
| export DEBIAN_FRONTEND=noninteractive | |
| sudo apt install -y locales | |
| sudo locale-gen en_US.UTF-8 | |
| sudo update-locale LANG=en_US.UTF-8 | |
| echo 'locales locales/default_environment_locale select en_US.UTF-8' | sudo debconf-set-selections | |
| echo 'locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8' | sudo debconf-set-selections | |
| echo 'keyboard-configuration keyboard-configuration/layoutcode string us' | sudo debconf-set-selections | |
| echo 'keyboard-configuration keyboard-configuration/modelcode string pc105' | sudo debconf-set-selections |
This is an opinionated handbook on how I migrated all my Rails apps off the cloud and into VPS.
This is how I manage real production loads for my Rails apps. It assumes:
- Rails 7+
- Ruby 3+
- PostgreSQL
- Ubuntu Server 24.04
- Capistrano, Puma, Nginx
I hereby claim:
- I am arjundandagi on github.
- I am arjundandagi (https://keybase.io/arjundandagi) on keybase.
- I have a public key whose fingerprint is 778B 3355 74A7 0B37 E12D 77B3 972E 9814 C4DA 4A49
To claim this, I am signing this object:
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
| apiVersion: v1 | |
| data: | |
| configManagementPlugins: | | |
| - name: decider2 | |
| generate: | |
| command: ["/bin/bash","-c",'rgrep prod ../apps/ &>/dev/null || exit 0 ; for i in *.yaml;do cat $i;echo ---;done'] | |
| kind: ConfigMap | |
| metadata: | |
| labels: | |
| app.kubernetes.io/name: argocd-cm |
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 | |
| # Get directory of script | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| if [[ $# -ne 1 ]] | |
| then | |
| echo "ERROR: This script expects the namespace name to be given as an argument" | |
| echo "e.g. ./ecr-cred-updater.sh my-namespace" | |
| exit 1 |
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
| require "formula" | |
| require_relative "lib/private_strategy" | |
| class Hoge < Formula | |
| homepage "https://github.com/yourcompany/hoge" | |
| url "https://github.com/yourcompany/hoge/releases/download/v0.1.0/hoge_v0.1.0_darwin_amd64.tar.gz", :using => GitHubPrivateRepositoryReleaseDownloadStrategy | |
| sha256 "6de411ff3e4b1658a413dd6181fcXXXXXXXXXXXXXXXXXXXX" | |
| head "https://github.com/yourcompany/hoge.git" | |
| version "0.1.0" |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-parent</artifactId> | |
| <version>2.3.2.RELEASE</version> | |
| <relativePath/> <!-- lookup parent from repository --> | |
| </parent> |
NewerOlder