Skip to content

Instantly share code, notes, and snippets.

View ricardoapaes's full-sized avatar
🏠
Working in Home

Ricardo Araújo Paes ricardoapaes

🏠
Working in Home
View GitHub Profile
@ricardoapaes
ricardoapaes / Dockerfile
Created December 6, 2022 19:36
Dockerfile: Build using maven with Amazon Correto 11 (multistage)
FROM maven:amazoncorretto as jar
WORKDIR /home/app/
COPY pom.xml .
RUN mvn -f pom.xml dependency:go-offline -B
COPY src src
RUN mvn -f pom.xml package
RUN mkdir -p /home/app/output/ \
&& mv target/dist/*-jar-with-dependencies.jar /home/app/output/app.jar
FROM amazoncorretto:11
@ricardoapaes
ricardoapaes / install-nginx-certbot-in-k8s.sh
Created September 21, 2020 06:01
Create Kubernetes Nginx Controller with Certbot
#!/bin/bash
# Based in tutorial >>
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes-pt
# Retired from site, check for new versions. https://kubernetes.github.io/ingress-nginx/deploy/
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.35.0/deploy/static/provider/cloud/deploy.yaml
# Retired from site, check for new versions. https://cert-manager.io/docs/installation/kubernetes/
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v1.0.1/cert-manager.yaml
@ricardoapaes
ricardoapaes / append_8_to_version_code.js
Last active January 27, 2020 17:05 — forked from njleonzhang/append_8_to_version_code.js
append extend 8 to android code version.
#!/usr/bin/env node
var path = require('path');
var fs = require('fs');
var xml2js = require('xml2js');
var deferral;
function log(message) {
console.log(message);
}