Skip to content

Instantly share code, notes, and snippets.

View odra's full-sized avatar
💻

odra odra

💻
  • São Paulo, Brazil
View GitHub Profile
@odra
odra / install-py.sh
Last active August 23, 2018 09:00
minishift python
tce-load -w -i python.tcz gmp-dev.tcz python-dev.tcz compiletc.tcz
wget https://bootstrap.pypa.io/get-pip.py && sudo ptyhon get-pip.py
#Notes:
#minishift master config file: /var/lib/minishift/openshift.local.config/master/master-config.yaml
#minishift openshift restart
Showing Recent Messages
Build system information
error: Multiple commands produce '/Users/jenkins/Library/Developer/Xcode/DerivedData/AeroGearPush-clqjcsuowywvsebtmfmchebkfdzw/Build/Products/Debug-iphonesimulator/AeroGearPush.framework/Headers/AeroGearPush-Swift.h':
1) Target 'AeroGearPush' (project 'AeroGearPush') has copy command from '/Users/jenkins/tests/aerogear-ios-push/AeroGearPush/AeroGearPush-Swift.h' to '/Users/jenkins/Library/Developer/Xcode/DerivedData/AeroGearPush-clqjcsuowywvsebtmfmchebkfdzw/Build/Products/Debug-iphonesimulator/AeroGearPush.framework/Headers/AeroGearPush-Swift.h'
2) Target 'AeroGearPush' (project 'AeroGearPush'): Ditto /Users/jenkins/Library/Developer/Xcode/DerivedData/AeroGearPush-clqjcsuowywvsebtmfmchebkfdzw/Build/Products/Debug-iphonesimulator/AeroGearPush.framework/Headers/AeroGearPush-Swift.h /Users/jenkins/Library/Developer/Xcode/DerivedData/AeroGearPush-clqjcsuowywvsebtmfmchebkfdzw/Build/Intermediates.noindex/AeroGearPush.build/Debug-iphonesimulator/AeroGearPush.build/Ob
@odra
odra / images.py
Created September 14, 2018 11:02
import sys
import json
import os
images = []
def get_images(path):
local_images = []
@odra
odra / single.yml
Created October 16, 2018 16:17
app deployment operator
apiVersion: "integreatly.org/v1alpha1"
kind: "WebApp"
metadata:
name: "tutorial-web-app-operator"
spec:
template:
path: "/home/tutorial-web-app-operator/deploy/template/tutorial-web-app.yml"
paramaters:
OAUTH_CLIENT_ID: tutorial-web-app
IMAGE: "quay.io/integreatly/tutorial-web-app"
apiVersion: "integreatly.org/v1alpha1"
kind: "WebApp"
metadata:
name: "tutorial-web-app-operator"
spec:
templates:
-
template:
path: "/home/tutorial-web-app-operator/deploy/template/oauth-client.yml"
paramaters:
#copy the template file
make template-copy
#build the image
operator-sdk build docker.io/$org/tutorial-web-app-operator:latest
#push it
docker push docker.io/$org/tutorial-web-app-operator:latest
#deploy all required resources - you may need to change the image name (also set the openshift_host var to the correct value)
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: keycloak-operator-reader
subjects:
- kind: ServiceAccount
name: keycloak-operator
roleRef:
kind: Role
name: cluster-reader
realmCr := &v1alpha1.KeycloakRealm{
TypeMeta: metav1.TypeMeta{
Kind: "KeycloakRealm",
APIVersion: "aerogear.org/v1alpha1",
},
ObjectMeta: metav1.ObjectMeta{
Name: "keycloak-realm-test",
Namespace: ns,
},
Status:v1alpha1.KeycloakRealmStatus{
@odra
odra / pg
Created November 21, 2018 15:20
pg_ctl: another server might be running; trying to start server anyway
waiting for server to start....LOG: redirecting log output to logging collector process
HINT: Future log output will appear in directory "pg_log".
done
server started
=> sourcing /usr/share/container-scripts/postgresql/start/set_passwords.sh ...
ERROR: role "userAJT" does not exist
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: leo-keycloak-operator
rules:
- apiGroups:
- aerogear.org
resources:
- "*"