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 com.snimmo.app:app
cd app
quarkus ext add config-yaml resteasy-reactive-jackson hibernate-validator
mv src/main/resources/application.properties src/main/resources/application.yml
git init
git add --all
git commit -m 'project init'
Create an Angular app
ng new --routing --style scss --directory src/main/webui -g --ssr false --standalone false <app-name>
cd src/main/webui
ng add @ng-bootstrap/ng-bootstrap --skip-confirmation
ng g m -m app core
ng g m -m app shared
ng g m -m app public --routing
ng g c public/index