Generate Kubernetes secret and configmap YAML manifest
# Secret
kubectl create secret generic my-config --from-file=configuration/ -o yaml --dry-run

# Configmap
kubectl create configmap my-config --from-file=configuration/ -o yaml --dry-run
Generate docker credential secret for Kubernetes
kubectl create -n registry secret docker-registry registry-auth-dockerconfig-secret --docker-server=registry.rahmatawe.com --docker-username=[YOUR_USERNAME] --docker-password=[YOUR_REGISTRY_PASSWORD] --dry-run=client -oyaml
Running short-lived container to compile source code
$ sudo docker run --rm -it -v ${PWD}:/app -w /app openjdk:11-jdk-slim /bin/sh -c ./gradlew buildRun