Steps:
brew install podman
podman machine init
podman machine start
podman machine ssh
(in the ssh session)
package main | |
import ( | |
"fmt" | |
"log" | |
"strconv" | |
"github.com/miekg/dns" | |
) |
package test_test | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io" | |
"math/rand" | |
"os/exec" | |
"strings" |
EBUG Still waiting for the cluster to initialize: Multiple errors are preventing progress: | |
* Could not update prometheusrule "openshift-cloud-credential-operator/cloud-credential-operator-alerts" (186 of 576): the server does not recognize this resource, check extension API servers | |
* Could not update prometheusrule "openshift-cluster-samples-operator/samples-operator-alerts" (303 of 576): the server does not recognize this resource, check extension API servers | |
* Could not update servicemonitor "openshift-apiserver-operator/openshift-apiserver-operator" (564 of 576): the server does not recognize this resource, check extension API servers | |
* Could not update servicemonitor "openshift-authentication-operator/authentication-operator" (493 of 576): the server does not recognize this resource, check extension API servers | |
* Could not update servicemonitor "openshift-cluster-machine-approver/cluster-machine-approver" (503 of 576): the server does not recognize this resource, check extension API servers | |
* Could not up |
$url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" | |
$file = "$env:temp\ConfigureRemotingForAnsible.ps1" | |
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file) | |
powershell.exe -ExecutionPolicy ByPass -File $file |
#!/bin/bash | |
# Wrapper function for Maven's mvn command. | |
mvn-color() | |
{ | |
# Formatting constants | |
BOLD=`tput bold` | |
UNDERLINE_ON=`tput smul` | |
UNDERLINE_OFF=`tput rmul` | |
TEXT_BLACK=`tput setaf 0` |
stage('versionPack') { | |
agent { | |
label 'linux && gcp' | |
} | |
steps { | |
sh 'echo Hello' | |
} | |
} |
With the latest version of Docker for Mac and Windows (18.06), you can prefix all your mvn commands by RUN --mount=target=/root/.m2,type=cache
:
Example:
# syntax = tonistiigi/dockerfile:runmount20180618
FROM maven:3.5-jdk-8-alpine AS build
COPY . .
RUN --mount=target=/root/.m2,type=cache mvn --batch-mode clean compile assembly:single
FROM openjdk:8-jre-alpine3.7
goroutine 38 [running]: | |
main.dumpStacks() | |
/tmp/tmp.X5mtKvYY4Q/src/github.com/containerd/containerd/cmd/containerd/main_unix.go:69 +0x8c | |
main.handleSignals.func1(0xc4201fa000, 0xc4201d4180, 0x147d120, 0xc4201d82a0, 0xc4201fa060) | |
/tmp/tmp.X5mtKvYY4Q/src/github.com/containerd/containerd/cmd/containerd/main_unix.go:44 +0x2cb | |
created by main.handleSignals | |
/tmp/tmp.X5mtKvYY4Q/src/github.com/containerd/containerd/cmd/containerd/main_unix.go:30 +0x8b | |
goroutine 1 [chan receive, 13 minutes]: | |
main.main.func1(0xc4201f0000, 0xc4201f0000, 0xc4201afb4f) |
goroutine 24 [running]: | |
github.com/docker/docker/pkg/signal.DumpStacks(0x1d57c1c, 0xf, 0x0, 0x0, 0x0, 0x0) | |
/go/src/github.com/docker/docker/pkg/signal/trap.go:83 +0xc5 | |
github.com/docker/docker/daemon.(*Daemon).setupDumpStackTrap.func1(0xc4202225a0, 0x1d57c1c, 0xf) | |
/go/src/github.com/docker/docker/daemon/debugtrap_unix.go:19 +0x8b | |
created by github.com/docker/docker/daemon.(*Daemon).setupDumpStackTrap | |
/go/src/github.com/docker/docker/daemon/debugtrap_unix.go:17 +0xc9 | |
goroutine 1 [chan receive, 60 minutes]: | |
main.(*DaemonCli).start(0xc4203c74d0, 0xc4203d98f0, 0x0, 0x0) |