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
minikube ssh | |
docker pull internal.docker.registry/my-image # Error response from daemon: Get https://internal.docker.registry/v2/: x509: certificate signed by unknown authority | |
sudo mkdir -p /etc/docker/certs.d/internal.docker.registry | |
sudo cp /etc/ssl/my-cert.crt /etc/docker/certs.d/internal.docker.registry/ | |
docker pull internal.docker.registry/my-image # Status: Downloaded newer image for internal.docker.registry/my-image |
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
# Based on https://stackoverflow.com/a/26252993/1665539 | |
# Show all installed Java versions | |
/usr/libexec/java_home -V | |
# Select major version (if unique, otherwise specify full name e.g. 1.8.0_131) | |
set -x JAVA_HOME (/usr/libexec/java_home -v 1.8) | |
# Verify | |
java -version |
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
<org.jenkinsci.plugins.workflow.libs.GlobalLibraries plugin="[email protected]"> | |
<libraries> | |
<org.jenkinsci.plugins.workflow.libs.LibraryConfiguration> | |
<name>my-shared-library</name> | |
<retriever class="org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever"> | |
<scm class="jenkins.plugins.git.GitSCMSource" plugin="[email protected]"> | |
<id>7356ba0d-a25f-4f61-8c56-b3c565a39929</id> | |
<remote>ssh://[email protected]:Diabol/jenkins-pipeline-shared-library-template.git</remote> | |
<credentialsId>ssh</credentialsId> | |
<traits> |
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
public static WebArchive getTestPreparedArchive() { | |
WebArchive war = ShrinkWrap.create(WebArchive.class, "service.war") | |
.addClasses(MyClass1.class, MyClass2.class); // add classes needed for the test | |
// Resolve the needed dependency independently, so we can replace the production persistence.xml inside the archive | |
Collection<JavaArchive> archives = DependencyResolvers.use(MavenDependencyResolver.class) | |
.artifact("se.diabol.persistence:Persistence_Framework:jar:0.1-SNAPSHOT").resolveAs(JavaArchive.class); | |
// Resolve the actual archive | |
JavaArchive p = null; |