You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile
in an empty directory with the following content:
import os | |
import sys | |
import time | |
import logging | |
import shutil | |
from pathlib import Path | |
from typing import List, Dict, Optional | |
from dataclasses import dataclass | |
from git import Repo | |
import docker |
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile
in an empty directory with the following content:
#!/bin/bash | |
# Verificar se o kubectl está instalado | |
if ! command -v kubectl &> /dev/null; then | |
echo "O kubectl não está instalado. Por favor, instale-o antes de continuar." | |
exit 1 | |
fi | |
# Defina o namespace do seu aplicativo ou o namespace padrão | |
NAMESPACE="default" |
import logging | |
import logging.config | |
logging.dictConfig({ | |
'version': 1, | |
'disable_existing_loggers': False, | |
"formatters": { | |
"standard": { | |
"format": '%(asctime)s %(name)s %(levelname)s %(message)s' | |
} |
#!/bin/sh | |
ROLENAME=$(curl http://169.254.169.254/latest/meta-data/iam/security-credentials/ -s) | |
KeyURL="http://169.254.169.254/latest/meta-data/iam/security-credentials/"$ROLENAME"/" | |
wget $KeyURL -q -O Iam.json | |
KEYID=$(grep -Po '.*"AccessKeyId".*' Iam.json | sed 's/ //g' | sed 's/"//g' | sed 's/,//g' | sed 's/AccessKeyId://g') | |
SECRETKEY=$(grep -Po '.*"SecretAccessKey".*' Iam.json | sed 's/ //g' | sed 's/"//g' | sed 's/,//g' | sed 's/SecretAccessKey://g') | |
SECURITYTOKEN=$(grep -Po '.*"Token".*' Iam.json | sed 's/ //g' | sed 's/"//g' | sed 's/,//g' | sed 's/Token://g') | |
rm Iam.json -f |
version: '3' | |
services: | |
rundeck: | |
image: ${RUNDECK_IMAGE:-rundeck/rundeck:3.4.3} | |
container_name: rundeck | |
hostname: rundeck.lab.local | |
volumes: | |
- ./rundeck/data:/home/rundeck/server/data | |
- ./rundeck/home/rundeck/configs:/home/rundeck/configs | |
- ./rundeck/rundeck_plugins:/opt/rundeck-plugins |
docker stack services -q <stack_name> | xargs -L1 -I{} sh -c 'docker service logs -f {} &' |
#!/bin/bash | |
set -e | |
reset=$(tput sgr0) | |
green=$(tput setaf 76) | |
blue=$(tput setaf 25) | |
red=$(tput setaf 1) | |
info() { |
# | |
# Cutom Environment Variables for Tomcat | |
# | |
############################################ | |
export JAVA_HOME=/usr/lib/jvm/java-7-oracle/jre | |
export PATH=${JAVA_HOME}/bin:${PATH} | |
############################################ | |
# | |
# JAVA_OPTS |
+---------------------------------------------------------------+ | |
| * * * PUSH REJECTED BY EVIL DRAGON BUREAUCRATS * * * | | |
+---------------------------------------------------------------+ | |
\ | |
\ ^ /^ | |
\ / \ // \ | |
\ |\___/| / \// .\ | |
\ /V V \__ / // | \ \ *----* | |
/ / \/_/ // | \ \ \ | | |
@___@` \/_ // | \ \ \/\ \ |