This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| corev1client "k8s.io/client-go/kubernetes/typed/core/v1" | |
| "k8s.io/client-go/tools/clientcmd" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "description": "golang with languageserve", | |
| "scope": "general", | |
| "tags": [], | |
| "creator": "che", | |
| "workspaceConfig": { | |
| "defaultEnv": "default", | |
| "commands": [], | |
| "environments": { | |
| "default": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # download modified odo | |
| wget -O /usr/local/bin/odo https://dl.bintray.com/odo/odo/latest/odo; chmod +x /usr/local/bin/odo | |
| # update php imagestream | |
| oc apply -n openshift -f https://gist.githubusercontent.com/kadel/bb5c86158bfc44e335ea99c91fab04e3/raw/my-wildfly-is.yaml | |
| oc apply -n openshift -f https://gist.githubusercontent.com/kadel/ee43d945013931c43cab5d8280847102/raw/my-php-is.yaml | |
| # download images |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: ImageStream | |
| metadata: | |
| annotations: | |
| openshift.io/display-name: PHP | |
| name: php | |
| namespace: openshift | |
| spec: | |
| lookupPolicy: | |
| local: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: ImageStream | |
| metadata: | |
| annotations: | |
| openshift.io/display-name: WildFly | |
| name: wildfly | |
| namespace: openshift | |
| spec: | |
| lookupPolicy: | |
| local: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "workspaceConfig": { | |
| "projects": [], | |
| "environments": { | |
| "default": { | |
| "machines": { | |
| "devmachine/devmachine": { | |
| "servers": {}, | |
| "installers": [ | |
| "org.eclipse.che.exec", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Starting the Java application using /opt/run-java/run-java.sh ... | |
| ERROR: No spring-boot-rest-http-14-SNAPSHOT-exec.jar found in /deployments /deployments | |
| exec java -javaagent:/opt/jolokia/jolokia.jar=config=/opt/jolokia/etc/jolokia.properties -XX:+UseParallelGC -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=100m -XX:+ExitOnOutOfMemoryError -cp . -jar | |
| Error: -jar requires jar file specification | |
| Usage: java [-options] class [args...] | |
| (to execute a class) | |
| or java [-options] -jar jarfile [args...] | |
| (to execute a jar file) | |
| where options include: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:18.04 | |
| RUN apt-get update && \ | |
| apt-get -y upgrade && \ | |
| apt-get -y install python python-pip libjpeg-dev zlib1g-dev && \ | |
| apt-get clean | |
| RUN mkdir /code | |
| WORKDIR /code | |
| ADD requirements.txt /code/ |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/schema#", | |
| "type": "object", | |
| "description": "Main kedge file structure defining whole applicatoin", | |
| "properties": { | |
| "volumeClaims": { | |
| "items": { | |
| "additionalProperties": false, | |
| "description": "VolumeClaim is used to define Persistent Volumes for app", | |
| "properties": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| # temporary file to save output | |
| output=`mktemp` | |
| for file in `find docs/examples examples -name "*.yaml"`; do | |
| ./kedge generate --enable-validation -f $file > $output 2>&1 | |
| if [ $? -ne 0 ]; then | |
| echo "validation failed for $file" | |
| cat $output |