Skip to content

Instantly share code, notes, and snippets.

View maneta's full-sized avatar

Daniel Cesario maneta

View GitHub Profile
Original Size
**************
dcesario@dcesario-Vostro-270:~/svnMigration/8belts/8belts_web$ du -h --max-depth=1
26M ./metodoanxo
129M ./ENMORE
132M ./EN
12M ./maquetacion_publica
859M ./PRE
36M ./Nueva
@maneta
maneta / gist:b6ea94e03b4cc0fa3e32fb2fecfc9aa6
Created April 4, 2017 09:13
Log AMP openshift preview
dcesario@bender amp $ oc new-app --file amp.yml --param WILDCARD_DOMAIN=preview.openshift.com --param TENANT_NAME=3scale
--> Deploying template "amp-dani/system" for "amp.yml" to project amp-dani
system
---------
Login on https://3scale-admin.preview.openshift.com as admin/ygvddv3k
* With parameters:
* AMP_RELEASE=2.0.0-ER5
* ADMIN_PASSWORD=ygvddv3k # generated
docker pull ianblenke/kvm
# IMPORTANT - Download some linux ISO and leave it on ~/Downloads
docker run -v ~/Downloads/:/tmp/ --privileged -it --entrypoint /bin/bash ianblenke/kvm
/usr/bin/qemu-system-x86_64 -curses -boot d -cdrom /tmp/<Name-Of-Downloaded-ISO>.iso -m 128
docker pull ianblenke/kvm
# IMPORTANT - Download some linux ISO and leave it on ~/Downloads
docker run -v ~/Downloads/:/tmp/ --privileged -it --entrypoint /bin/bash ianblenke/kvm
/usr/bin/qemu-system-x86_64 -curses -boot d -cdrom /tmp/<Name-Of-Downloaded-ISO>.iso -m 256
if [ "$DB_VENDOR" == "POSTGRES" ]; then
databaseToInstall="postgres"
elif [ "$DB_VENDOR" == "MYSQL" ]; then
databaseToInstall="mysql"
elif [ "$DB_VENDOR" == "H2" ]; then
#!/bin/bash
#Creating the five directory
mkdir ./five
for counter in {1..5}
do
#Creates the dir1..dir5 directories
mkdir ./five/dir$counter
resource "aws_efs_file_system" "openshift-volumes" {
creation_token = "os-{{ CLUSTER_NAME }}-volumes"
tags {
Name = "os-{{ CLUSTER_NAME }}-volumes"
stack = "openshift"
cluster_name = "{{ CLUSTER_NAME }}"
layer = "os-storage"
}
}
resource "aws_efs_file_system" "openshift-volumes" {
creation_token = "os-{{ CLUSTER_NAME }}-volumes"
tags {
Name = "os-{{ CLUSTER_NAME }}-volumes"
stack = "openshift"
cluster_name = "{{ CLUSTER_NAME }}"
layer = "os-storage"
}
}
resource "aws_efs_file_system" "openshift-volumes" {
creation_token = "os-{{ CLUSTER_NAME }}-volumes"
tags {
Name = "os-{{ CLUSTER_NAME }}-volumes"
stack = "openshift"
cluster_name = "{{ CLUSTER_NAME }}"
layer = "os-storage"
}
}

Keybase proof

I hereby claim:

  • I am maneta on github.
  • I am maneta (https://keybase.io/maneta) on keybase.
  • I have a public key ASCw6LkHurYrZnG2JIQ-ImyAIK8GhEsyMI996nYOizenpAo

To claim this, I am signing this object: