Note: This is only tested on OCP 4.3 or 4.4 clusters
oc patch OperatorHub cluster --type json \
-p '[{"op": "add", "path": "/spec/disableAllDefaultSources", "value": true}]'
TORQUEBOX_SERVER=standalone.xml | |
TORQUEBOX_HOME=/opt/torquebox | |
RUN=yes |
These instructions assume you are using Minishift 1.0.1 or newer as your OpenShift installation.
You'll also need a wsk
binary in your $PATH
to interact with
OpenWhisk after it's deployed. Download the latest version for your OS
#!/usr/bin/env bash | |
# set -x | |
set -e | |
func=$1 | |
count=$2 | |
if [ "${func}x" = "x" ]; then | |
echo "You must supply a function as the first argument" |
import org.jboss.shrinkwrap.api.ShrinkWrap; | |
import org.wildfly.swarm.config.undertow.FilterConfiguration; | |
import org.wildfly.swarm.config.undertow.configuration.ResponseHeader; | |
import org.wildfly.swarm.config.undertow.server.host.FilterRef; | |
import org.wildfly.swarm.container.Container; | |
import org.wildfly.swarm.undertow.UndertowFraction; | |
import org.wildfly.swarm.undertow.WARArchive; | |
public class Main { | |
public static void main(String... args) throws Exception { |
run lambda { |env| | |
[200, { 'Content-Type' => 'text/plain' }, ["hello world\n"]] | |
} |
source 'https://rubygems.org' | |
gem 'multi_json' |
# Jubille started with: | |
# jubilee -p 8080 -e production | |
# | |
# Note that the Jubilee console outputs quite a few errors like below during | |
# the test: | |
# | |
# Jan 03, 2014 2:15:31 PM org.vertx.java.core.logging.impl.JULLogDelegate error | |
# SEVERE: Unhandled exception | |
# java.nio.channels.ClosedChannelException |
source 'https://rubygems.org' | |
gem 'jruby-openssl', '0.9.3' |
Make sure your Gemfile.lock is not committed to your OpenShift git repository.
Copy the pre_build file to .openshift/action_hooks/pre_build
Add .openshift/action_hooks/pre_build to git, set the executable bit, and push your changes
git add .openshift/action_hooks/pre_build git update-index --chmod=+x .openshift/action_hooks/pre_build git commit -m "Add bundle_install in pre_build hook" git push