Skip to content

Instantly share code, notes, and snippets.

View jamesfalkner's full-sized avatar

James Falkner jamesfalkner

View GitHub Profile
#!/bin/bash
curl -w '' -sL https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.10+9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.10_9.tar.gz | \
( cd /usr/local; tar -xvzf - ) && \
export JAVA_HOME="/usr/local/jdk-11.0.10+9" && \
export PATH=$JAVA_HOME/bin:$PATH && \
echo "export JAVA_HOME=$JAVA_HOME" >> ~/.bashrc && \
echo "export PATH=$JAVA_HOME/bin:\$PATH" >> ~/.bashrc
#!/bin/bash
GRAAL_VERSION=21.0.0.2
curl -w '' -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${GRAAL_VERSION}/graalvm-ce-java11-linux-amd64-{$GRAAL_VERSION}.tar.gz | \
( cd /usr/local; tar -xvzf - ) && \
export GRAALVM_HOME="/usr/local/graalvm-ce-java11-${GRAAL_VERSION}" && \
export PATH=$GRAALVM_HOME/bin:$PATH && \
$GRAALVM_HOME/bin/gu install native-image && \
echo "export GRAALVM_HOME=$GRAALVM_HOME" >> ~/.bashrc && \
echo "export PATH=$GRAALVM_HOME/bin:\$PATH" >> ~/.bashrc
Cloning "https://github.com/jboss-developer/jboss-eap-quickstarts.git" ...
Commit: 9e54b55b71ed08bcb905ab6d63b71a212f2613be (Merge pull request #2105 from soul2zimate/CD18fix)
Author: Eduardo Martins <emartins@redhat.com>
Date: Wed Feb 12 15:52:10 2020 +0000
Caching blobs under "/var/cache/blobs".
Getting image source signatures
Copying blob sha256:fcd63ccfdd0ccd78cc0b23a6e9cef0c400625c1506f3eed694d92c7ced04b4c4
Copying blob sha256:422f17e78fa7f3b997bade8faa0f19bda66af8d6ca3164c7fd4ae3388844c409
Copying blob sha256:09dbbf8834d2d84d8d8a37dcf7d6049794c9c8c604a3d3f2606768a82771438d
Copying config sha256:30f0099fd9d8440d8b4e2a5c11c4248be706ab6d6e397356bd169c4ede32f194
#
# Copyright (c) 2012-2018 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Red Hat, Inc. - initial API and implementation
kind: List
metadata: {}
apiVersion: v1
items:
- apiVersion: v1
kind: Service
metadata:
labels:
app: guides
name: guides
---
- name: Install Apache HTTPD container
hosts: localhost
tasks:
- command: oc new-project webserver
- command: oc new-app httpd
- command: oc expose svc/httpd
- command: oc get route/httpd -n webserver -o jsonpath='{.spec.host}'
register: route
- debug: var=route
apiVersion: v1
items:
- apiVersion: v1
kind: Service
metadata:
annotations:
description: The web server's http port.
labels:
application: eap-app
template: eap71-basic-s2i
@jamesfalkner
jamesfalkner / istio-coolstore.sh
Created March 14, 2018 21:33
Hack to install istio to OpenShift and deploy coolstore-microservice as an istio service mesh
#!/bin/bash
# This script will install istio and the coolstore-microservice demo as a service mesh.
# It does everything as a cluster-admin user because istio (the project) still needs it to
# work. Future versions will not require so many permissions!
#
# Maintainer: James Falkner <jfalkner@redhat.com>
#
# Prereqs:
#
echo "Hi this is revision 4"
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>exec-npm-install</id>
<phase>generate-sources</phase>
<configuration>
<executable>npm</executable>