View test-infra-all-pub.sh
This file contains 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
BASE_DIR=$(pwd) | |
function notify-pushover() { | |
# Add stuff here if you want to send notifications somewhere (i.e.: your cell phone) | |
} | |
function simpleTest() { | |
local testInfraDir=${BASE_DIR}/test-infra/camel-test-infra-$1 | |
local testComponent=${BASE_DIR}/components/camel-${2:-$1} |
View install-mvnd-0.8.1.sh
This file contains 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/sh | |
MAVEN_DAEMON_VERSION=0.8.1 | |
GRAALVM_VERSION=22.2.0 | |
GRAALVM_JAVA_VERSION=17 | |
function prepare() { | |
echo "Preparing" | |
unset JAVA_HOME |
View sample-bisect.sh
This file contains 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/sh | |
# Sobe a infraestrutura para rodar os tess | |
docker-compose up -d | |
# Roda o build e os testes | |
mvn clean verify | |
# Salva o resultado do mvn. Entenda sobre isso aqui: https://tldp.org/LDP/abs/html/exit-status.html |
View install.sh
This file contains 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/sh | |
MAVEN_DAEMON_VERSION=0.8.0 | |
GRAALVM_VERSION=22.1.0 | |
GRAALVM_JAVA_VERSION=17 | |
function prepare() { | |
brew install --cask graalvm/tap/graalvm-ce-java${GRAALVM_JAVA_VERSION} |
View kind-with-local-registry.sh
This file contains 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/sh | |
set -o errexit | |
#### | |
## Kind cluster with local registry (fixed script from the upstream kind). See NOTE comments below for the changed items | |
# create registry container unless it already exists | |
reg_name='kind-registry' | |
reg_port='5000' | |
running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" |
View Dockerfile
This file contains 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
### | |
# How to build the container: | |
# | |
# To create a container that uses OpenJDK: | |
# docker build --build-arg CI_USER=$(whoami) --target ci-openjdk --tag ci-openjdk . | |
# | |
# To create a container that uses Oracle JDK (as in CI): | |
# 1. First download the Oracle JDK from the Oracle web site (ie.: jdk-11.0.9_linux-x64_bin.tar.gz) | |
# | |
# 2. Then build the container with: |
View maestro.yaml
This file contains 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
# ------------------- Maestro Broker Deployment ------------------- # | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: maestro-broker | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
component: broker |
View docker-ibmmqlight-compose.yml
This file contains 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
version: '3.4' | |
services: | |
sut: | |
image: docker.io/ibmcom/mqlight | |
environment: | |
# You have to specifically accept the license on your own. | |
# this is provided just as a convenience | |
# - LICENSE=accept | |
networks: | |
- test |
View docker-compose-infra-swarm.yml
This file contains 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
version: '3' | |
networks: | |
cluster: | |
driver: overlay | |
test: | |
driver: overlay | |
services: | |
broker: | |
image: 127.0.0.1:5000/maestro_broker | |
build: broker |
View sample-ip-reader.sh
This file contains 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
rpm -q libguestfs-tools || yum install -y libguestfs-tools | |
for vm in $(virsh list --all | tail -n +3 | awk ' { print $2 } ') ; do | |
virsh start $vm | |
done | |
### FIXME: Adjust the wait time according to the number of VMs and how powerful | |
### your server is. | |
echo "Waiting for the vms to power up" | |
sleep 3m |
NewerOlder