Skip to content

Instantly share code, notes, and snippets.

@kadel
kadel / devfile.yaml
Created February 26, 2020 11:40
odo devfile
apiVersion: 1.0.0
metadata:
name: odo
projects:
- name: odo
source:
type: git
location: https://github.com/kadel/odo.git
clonePath: src/github.com/openshift/odo/
components:
apiVersion: 1.0.0
metadata:
name: petclinic
projects:
- name: java-web-spring
source:
type: local
location: "./"
components:
- type: chePlugin
apiVersion: 1.0.0
parent:
uri: https://raw.githubusercontent.com/eclipse/che-devfile-registry/master/devfiles/java-web-spring/devfile.yaml
command:
metadata:
name: petclinic
components:
- name: maven build
actions:
- type: exec
#!/bin/bash
set -e
pushd /tmp/src
# if [[ `go list -f {{.Incomplete}}` == "false" ]]; then
INSTALL_URL=${INSTALL_URL:-$IMPORT_URL}
if [[ ! -z "$IMPORT_URL" ]]; then
package main
import (
"crypto/sha1"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "odo login",
"type": "go",
"request": "launch",
Tomas Kral [3:06 PM]
I'm still unable to create cluster using installer :disappointed:
Always ending up with `FATAL waiting for Kubernetes API: context deadline exceeded`.
The last one that I have tried is `4.0.0-0.ci-2019-04-17-050915`
@vrutkovs I've tried your script but got only this:
```
Gathering bootstrap journals ...
Gathering bootstrap containers ...
Gathering cluster resources ...
Waiting for logs ...
@kadel
kadel / component.yaml
Last active February 18, 2019 13:56
odo like component on Kubernetes (nodejs)
# Bootstrap odo like component on Kubernetes
---
# PVC where source code is persistented
# This is required to make sure that source is not lost form to container,
# because it is not part of the container image.
apiVersion: v1
kind: PersistentVolumeClaim
@kadel
kadel / link.yaml
Last active November 19, 2018 13:06
@kadel
kadel / Code.gs
Created November 9, 2018 15:05
Google Apps Script for odo burndown
var COLUMN_NAMES_RANGE = "B1:E1"
var DATES_RANGE="A2:A22"
var LABEL_POINTS_RANGE="SizeLabelToPoints"
var CURRENT_SPRINT_RANGE="E2:E100"
// where sprint data begins
var dateRowOffset = 2
var dataColumnOffset = 2
// where overview table begins
var overviewRowOffset = 2