Cheatsheet

Here’s a cheatsheet of a bunch of stuff I do a lot.

podman-compose examples

name: examples
services:

  database:
    container_name: database
    image: registry.access.redhat.com/rhel9/postgresql-16:latest
    restart: always
    environment:
      - POSTGRESQL_DATABASE=default
      - POSTGRESQL_USER=dbuser
      - POSTGRESQL_PASSWORD=Pass123!
    ports:
      - 5432:5432

  keycloak:
    container_name: keycloak
    image: quay.io/keycloak/keycloak:latest
    command: 'start-dev --import-realm'
    restart: always
    environment:
      - KEYCLOAK_ADMIN=admin
      - KEYCLOAK_ADMIN_PASSWORD=Pass123!
    ports:
      - 8081:8080
    volumes:
      - ./local/folder/with/realmimport:/opt/keycloak/data/import:z

Create a Quarkus App using the cli

quarkus create app --wrapper --no-code \
    -x config-yaml,rest-jackson,smallrye-openapi,hibernate-validator \
    com.osetrm:osetrm-api-legal-entity:0.0.1-SNAPSHOT

git init
git add --all
git commit -m 'project init'

Create an Angular app

ng new --routing --style scss --ssr false <app-name>

cd <app-name>
ng add @ng-bootstrap/ng-bootstrap --skip-confirmation

ng g c -s pages/public