Skip to content

Instantly share code, notes, and snippets.

View dbgjerez's full-sized avatar

David Borrego dbgjerez

  • RedHat
  • Seville (Spain)
View GitHub Profile
@dbgjerez
dbgjerez / argocd.sh
Last active August 27, 2021 11:52
minikube argocd script
minikube start --cpus=5 --memory='24g'
minikube addons enable ingress
kubectl --namespace ingress-nginx wait \
--for=condition=ready pod \
--selector=app.kubernetes.io/component=controller \
--timeout=120s
INGRESS_HOST=$(minikube ip)
HOST=argocd.$INGRESS_HOST.nip.io
pipeline {
agent any
tools {
maven 'mvn'
jdk 'jdk8'
}
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
@dbgjerez
dbgjerez / .gitignore
Last active December 20, 2018 08:42
gitignore Maven and Eclipse
# Eclipse
.classpath
.project
.settings/
bin/
# Intellij
.idea/
*.iml
*.iws
@dbgjerez
dbgjerez / java.Dockerfile
Created November 7, 2017 22:02
Dockerfile for J2EE application
FROM openjdk:8u151
# Usuario para java, se evita root
RUN groupadd -r java && useradd --no-log-init -r -g java java
USER java
# Copia del ejecutable
COPY build/libs/*.jar /opt/app.jar
# Puertoa exponer