This file contains hidden or 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/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" |
This file contains hidden or 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/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" |
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). |