remove profile dependency
This commit is contained in:
@@ -25,6 +25,23 @@ make deps / make mem # the same, via the Makefile
|
||||
`rigmini.sh push` and `all` deliberately consume memory. Run `status` first, and
|
||||
only run them somewhere other processes may be squeezed.
|
||||
|
||||
## Your own setup, somewhere else — `export`
|
||||
|
||||
The folders here are rig's **profiles**, identical on any machine. To take the
|
||||
setup **this machine runs** instead — its profile plus the choices in its local
|
||||
`ctrl/.env` (ports, manifest directory, mirror mode) — export it:
|
||||
|
||||
```bash
|
||||
make standalone export ~/rig-kit # one kit, outside the repository
|
||||
```
|
||||
|
||||
An export carries your **choices, never your credentials**. Anything in `ctrl/.env`
|
||||
that is not a setting a caller may override — registry logins, a mirror URL — is
|
||||
left out, and the export lists those names so you know what to set on the target.
|
||||
It refuses to write inside the repository: it reflects one machine, and the
|
||||
repository holds what is true for every machine. `make selftest` proves both with
|
||||
sentinel values.
|
||||
|
||||
## Why generated
|
||||
|
||||
These used to be hand-kept copies, and they drifted: the standalone memory tool
|
||||
|
||||
@@ -85,6 +85,7 @@ load_config() {
|
||||
declare -gx NODE_IMAGE_v1_36="kindest/node:v1.36.1@sha256:3489c7674813ba5d8b1a9977baea8a6e553784dab7b84759d1014dbd78f7ebd5"
|
||||
declare -g NODE_MB="800"
|
||||
declare -gx POSTGRES_IMAGE="postgres:16-alpine"
|
||||
declare -gx PROFILE="client"
|
||||
declare -gx PROFILE_NAME="client"
|
||||
declare -gx REDIS_IMAGE="redis:7-alpine"
|
||||
declare -gx REGISTRY_IMAGE="registry:2"
|
||||
|
||||
@@ -85,6 +85,7 @@ load_config() {
|
||||
declare -gx NODE_IMAGE_v1_36="kindest/node:v1.36.1@sha256:3489c7674813ba5d8b1a9977baea8a6e553784dab7b84759d1014dbd78f7ebd5"
|
||||
declare -g NODE_MB="800"
|
||||
declare -gx POSTGRES_IMAGE="postgres:16-alpine"
|
||||
declare -gx PROFILE="client"
|
||||
declare -gx PROFILE_NAME="client"
|
||||
declare -gx REDIS_IMAGE="redis:7-alpine"
|
||||
declare -gx REGISTRY_IMAGE="registry:2"
|
||||
|
||||
@@ -90,6 +90,7 @@ load_config() {
|
||||
declare -gx POSTGRES_IMAGE="postgres:16-alpine"
|
||||
declare -gx POSTGRES_STORAGE="2Gi"
|
||||
declare -gx POSTGRES_USER="app"
|
||||
declare -gx PROFILE="data"
|
||||
declare -gx PROFILE_NAME="data"
|
||||
declare -gx REDIS_IMAGE="redis:7-alpine"
|
||||
declare -gx REGISTRY_IMAGE="registry:2"
|
||||
|
||||
@@ -90,6 +90,7 @@ load_config() {
|
||||
declare -gx POSTGRES_IMAGE="postgres:16-alpine"
|
||||
declare -gx POSTGRES_STORAGE="2Gi"
|
||||
declare -gx POSTGRES_USER="app"
|
||||
declare -gx PROFILE="data"
|
||||
declare -gx PROFILE_NAME="data"
|
||||
declare -gx REDIS_IMAGE="redis:7-alpine"
|
||||
declare -gx REGISTRY_IMAGE="registry:2"
|
||||
|
||||
@@ -85,6 +85,7 @@ load_config() {
|
||||
declare -gx NODE_IMAGE_v1_36="kindest/node:v1.36.1@sha256:3489c7674813ba5d8b1a9977baea8a6e553784dab7b84759d1014dbd78f7ebd5"
|
||||
declare -g NODE_MB="800"
|
||||
declare -gx POSTGRES_IMAGE="postgres:16-alpine"
|
||||
declare -gx PROFILE="minimal"
|
||||
declare -gx PROFILE_NAME="minimal"
|
||||
declare -gx REDIS_IMAGE="redis:7-alpine"
|
||||
declare -gx REGISTRY_IMAGE="registry:2"
|
||||
|
||||
@@ -85,6 +85,7 @@ load_config() {
|
||||
declare -gx NODE_IMAGE_v1_36="kindest/node:v1.36.1@sha256:3489c7674813ba5d8b1a9977baea8a6e553784dab7b84759d1014dbd78f7ebd5"
|
||||
declare -g NODE_MB="800"
|
||||
declare -gx POSTGRES_IMAGE="postgres:16-alpine"
|
||||
declare -gx PROFILE="minimal"
|
||||
declare -gx PROFILE_NAME="minimal"
|
||||
declare -gx REDIS_IMAGE="redis:7-alpine"
|
||||
declare -gx REGISTRY_IMAGE="registry:2"
|
||||
|
||||
@@ -85,6 +85,7 @@ load_config() {
|
||||
declare -gx NODE_IMAGE_v1_36="kindest/node:v1.36.1@sha256:3489c7674813ba5d8b1a9977baea8a6e553784dab7b84759d1014dbd78f7ebd5"
|
||||
declare -g NODE_MB="800"
|
||||
declare -gx POSTGRES_IMAGE="postgres:16-alpine"
|
||||
declare -gx PROFILE="offline"
|
||||
declare -gx PROFILE_NAME="offline"
|
||||
declare -gx REDIS_IMAGE="redis:7-alpine"
|
||||
declare -gx REGISTRY_IMAGE="registry:2"
|
||||
|
||||
@@ -85,6 +85,7 @@ load_config() {
|
||||
declare -gx NODE_IMAGE_v1_36="kindest/node:v1.36.1@sha256:3489c7674813ba5d8b1a9977baea8a6e553784dab7b84759d1014dbd78f7ebd5"
|
||||
declare -g NODE_MB="800"
|
||||
declare -gx POSTGRES_IMAGE="postgres:16-alpine"
|
||||
declare -gx PROFILE="offline"
|
||||
declare -gx PROFILE_NAME="offline"
|
||||
declare -gx REDIS_IMAGE="redis:7-alpine"
|
||||
declare -gx REGISTRY_IMAGE="registry:2"
|
||||
|
||||
Reference in New Issue
Block a user