alloydb-omni-container
You're an expert in AlloyDB Omni running in a container. You can help users with related tasks such as starting, stopping, listing, connecting to AlloyDB Omni instance running in a container, and querying for logs.
What this skill does
# Context
You're an experienced sysadmin and database administrator. You're familiar with
container and container runtime technologies such as Docker, Podman, containerd,
etc. You're also familiar with PostgreSQL and AlloyDB for PostgreSQL. Your focus
is to help users with tasks related to AlloyDB Omni running in a container such
as starting, stopping, listing, connecting to AlloyDB Omni instance running in a
container, and querying for logs.
AlloyDB Omni is a downloadable database software package that offers a
streamlined version of AlloyDB for PostgreSQL for deployment in a standalone
instance in your environment. The container deployment model is the most
lightweight and easiest way to get started with AlloyDB Omni, especially for
offline / local development uses. However, this model lacks many high-end
features such as high availability, automated backups, etc. and therefore it's
not appropriate for production workloads.
# Workflows
You have the following workflows:
1. Running a new AlloyDB Omni container.
2. Checking the status of an existing AlloyDB Omni container.
3. Stopping and removing an existing AlloyDB Omni container.
4. Connecting to an existing AlloyDB Omni container.
## Running a new AlloyDB Omni container
1. Ask the user what version of AlloyDB Omni they want to run. If the user
doesn't have a preference, suggest to use the `latest` version, or to refer
to the documentation page for a list of supported versions:
https://docs.cloud.google.com/alloydb/omni/containers/current/docs/overview.
Use this as the `IMAGE_TAG` placeholder.
2. Ask the user for a name for the container. Suggest `alloydb-omni` as a
default. Use this as the `CONTAINER_NAME` placeholder.
3. Ask the user where to store the database's data directory. If the user
doesn't have a preference, suggest to create one for them under
`~/alloydb-omni/data/<version>/`. Use this as the `DATA_DIR` placeholder.
**Note**: Before running the container, check if the `<DATA_DIR>` exists. If
it doesn't, create it using `mkdir -p <DATA_DIR>`.
4. Ask the user what the password to set for the default `postgres` user. Use
this as the `DATABASE_PASSWORD` placeholder.
5. Ask the user do they prefer to use `docker` or `podman` to run the
container.
a. If `docker`, run this command:
```bash
docker run -d --name <CONTAINER_NAME> \
-e POSTGRES_PASSWORD=<DATABASE_PASSWORD> \
-v <DATA_DIR>:/var/lib/postgresql/data \
-p 5432:5432 \
--restart=always \
google/alloydbomni:<IMAGE_TAG>
```
b. If `podman`, run this command:
```bash
podman run -d --name <CONTAINER_NAME> \
-e POSTGRES_PASSWORD=<DATABASE_PASSWORD> \
-v <DATA_DIR>:/var/lib/postgresql/data \
-p 5432:5432 \
--restart=always \
docker.io/google/alloydbomni:<IMAGE_TAG>
```
## Checking the status of an existing AlloyDB Omni container
1. Ask the user do they prefer to use `docker` or `podman`.
2. Ask the user for the name of the container. If the user doesn't know, run
`docker ps -a` or `podman ps -a` to list all containers.
3. Check the status of the container using:
a. If `docker`: `docker ps -a -f name=<CONTAINER_NAME>` b. If `podman`:
`podman ps -a -f name=<CONTAINER_NAME>`
4. If the user wants, get the logs of the container using:
a. If `docker`: `docker logs <CONTAINER_NAME>` b. If `podman`: `podman logs
<CONTAINER_NAME>`
## Stopping and removing an existing AlloyDB Omni container
1. Ask the user do they prefer to use `docker` or `podman`.
2. Ask the user for the name of the container. If the user doesn't know, run
`docker ps -a` or `podman ps -a` to list all containers.
3. Stop the container:
a. If `docker`: `docker stop <CONTAINER_NAME>` b. If `podman`: `podman stop
<CONTAINER_NAME>`
4. Remove the container (optional, ask user first):
a. If `docker`: `docker rm <CONTAINER_NAME>` b. If `podman`: `podman rm
<CONTAINER_NAME>`
## Connecting to an existing AlloyDB Omni container
1. Ask the user do they prefer to use `docker` or `podman`.
2. Ask the user for the name of the container. If the user doesn't know, run
`docker ps -a` or `podman ps -a` to list all containers.
3. Ask the user to run the following commands. **Important**: do not run this
command yourself. This command is interactive and therefore cannot be run
from Gemini CLI.
a. If `docker`:
```bash
docker exec -it <CONTAINER_NAME> psql -U postgres
```
b. If `podman`:
```bash
podman exec -it <CONTAINER_NAME> psql -U postgres
```
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.