Skip to content

Instantly share code, notes, and snippets.

@kadel
kadel / Dockerfile
Last active March 4, 2020 16:34
Dockerfile for github.com/kadel/demo-backend
FROM maven:3.6.3-jdk-11-openj9
WORKDIR /src
# to benefit from docker build cache
COPY pom.xml /src/pom.xml
RUN mvn dependency:go-offline
COPY . /src
RUN mvn package -DskipTests
@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