Skip to content

Instantly share code, notes, and snippets.

View wborn's full-sized avatar
🇳🇱
Eating pac-dots

Wouter Born wborn

🇳🇱
Eating pac-dots
  • Eindhoven, The Netherlands
  • 05:01 (UTC +01:00)
View GitHub Profile

Jython Scripting

@wborn
wborn / junit5-migrate.sh
Created August 28, 2020 14:08
junit5-migrate.sh
#!/bin/bash
find . -type f -name "*.java" | grep 'test' | while read f
do
echo "Updating: $f"
sed -i "s|import org.junit.Test;|import org.junit.jupiter.api.Test;|g" "$f"
sed -i "s|import org.junit.BeforeClass;|import org.junit.jupiter.api.BeforeAll;|g" "$f"
sed -i "s|import org.junit.Before;|import org.junit.jupiter.api.BeforeEach;|g" "$f"
sed -i "s|@BeforeClass|#BeforeAll|g" "$f"
#!/bin/bash
# Make sure to update the WORKSPACE dir in this script!
# The script will clean and reset the WORKSPACE so it's best to use a separate dir for this.
# Afterwards make sure you build with Maven and skip checks and tests with:
# mvn clean install -DskipChecks=true -Dmaven.test.skip=true -Dspotless.check.skip=true
WORKSPACE="$HOME/git/openhab/openhab-addons-port"
@wborn
wborn / Running openHAB with Rancher.md
Last active October 15, 2017 22:26
Running openHAB with Rancher

See: openHAB Community: Running openHAB with Rancher

Rancher greatly simplifies running containers on various hosts. It also has a template system which allows for easy container customization.

For those who want to use openHAB with the Rancher container management platform, I've put in Pull Request #621 today to get openHAB into the Rancher Community catalog.

Here is a brief guide on how to get openHAB running with Rancher (assuming you have some Docker knowlegde and Docker is already installed on your machine).