Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View dkirrane's full-sized avatar

Desmond Kirrane dkirrane

  • Avaya
  • Galway, Ireland
View GitHub Profile
@dkirrane
dkirrane / gist:a4600c03756f00561dd373fd5ea6d9c7
Created June 11, 2020 19:12
Provider "k8s" not available for installation
Terraform v0.12.26
Initializing plugins and modules...
Setup failed: Failed terraform init (exit 1): <nil>
Output:
2020/06/11 19:11:14 [DEBUG] Using modified User-Agent: Terraform/0.12.26 TFC/158668b279
Initializing modules...
Initializing provider plugins...
2020/06/06 13:43:06 [INFO] Terraform version: 0.12.26
2020/06/06 13:43:06 [INFO] Go runtime version: go1.12.13
2020/06/06 13:43:06 [INFO] CLI args: []string{"C:\\apps\\HashiCorp\\terraform.exe", "init"}
2020/06/06 13:43:06 [DEBUG] Attempting to open CLI config file: C:\Users\yaherne\AppData\Roaming\terraform.rc
2020/06/06 13:43:06 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/06/06 13:43:06 [INFO] CLI command args: []string{"init"}
2020/06/06 13:43:06 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2020/06/06 13:43:06 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2020/06/06 13:43:06 [DEBUG] New state was assigned lineage "3f9a65b9-fc22-2f59-68fb-fde127a20650"
2020/06/06 13:43:06 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
@dkirrane
dkirrane / istio_manifest.yaml
Created May 15, 2020 16:57
istio_manifest.yaml
# AddonComponents grafana component is disabled.
---
# AddonComponents istiocoredns component is disabled.
---
# AddonComponents kiali component is disabled.
---
# Resources for AddonComponents prometheus component
@dkirrane
dkirrane / istio_manifest.yaml
Created May 15, 2020 16:57
istio_manifest.yaml
# AddonComponents grafana component is disabled.
---
# AddonComponents istiocoredns component is disabled.
---
# AddonComponents kiali component is disabled.
---
# Resources for AddonComponents prometheus component
@dkirrane
dkirrane / kubectl.md
Created May 28, 2019 15:40 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@dkirrane
dkirrane / packerlog.txt
Created January 29, 2019 16:24
packer-builder-vsphere issues 126
2019/01/29 16:11:43 [INFO] Packer version: 1.3.3
2019/01/29 16:11:43 Packer Target OS/Arch: windows amd64
2019/01/29 16:11:43 Built with Go Version: go1.11.2
2019/01/29 16:11:43 [DEBUG] Discovered plugin: vsphere-clone = C:\apps\HashiCorp\packer-builder-vsphere-clone.exe
2019/01/29 16:11:43 [DEBUG] Discovered plugin: vsphere-iso = C:\apps\HashiCorp\packer-builder-vsphere-iso.exe
2019/01/29 16:11:43 Detected home directory from env var: C:\Users\myusername
2019/01/29 16:11:43 Using internal plugin for qemu
2019/01/29 16:11:43 Using internal plugin for triton
2019/01/29 16:11:43 Using internal plugin for vmware-vmx
2019/01/29 16:11:43 Using internal plugin for null
@dkirrane
dkirrane / README.md
Created July 9, 2018 09:53 — forked from guillaumerose/README.md
Speedup your Maven builds

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
#!/bin/bash
# Make sure we have the dev tools
yum groupinstall "Development Tools"
# Just in case you started installing dependencies from yum
# yum -y remove libnfnetlink
# lets put the source code here
mkdir -p ~/.src
@dkirrane
dkirrane / docker-compose.yml
Last active September 7, 2020 04:27
GoCD docker-compose.yml
# https://hub.docker.com/r/gocd/gocd-server/
server:
image: gocd/gocd-server:v17.10.0
hostname: go-server # Needed so the go-agent can find the server
ports:
- '8153:8153'
- '8154:8154'
environment:
- GO_SERVER_SYSTEM_PROPERTIES='-Dgo.plugin.upload.enabled=true'
# https://hub.docker.com/r/gocd/gocd-agent-alpine-3.5/
@dkirrane
dkirrane / readme.md
Created May 30, 2017 10:57 — forked from cedricwalter/readme.md
Sonatype NEXUS 2 has a rest API :-) but NEXUS 3 has none/not ready, the following simulate curl/wget call

Fetching artifact programmatically through REST/API

Nexus 2.x

Nexus 2.x had a REST API to download artifacts like below based on some Maven GAV co-ordinates but this no longer works for Nexus 3.x

wget "http://local:8081/service/local/artifact/maven/redirect?g=com.mycompany&a=my-app&v=LATEST" --content-disposition

or

curl --insecure "https://local:8081/service/local/artifact/maven/content?r=public&g=log4j&a=log4j&v=1.2.17&p=jar&c=" > log4j.jar