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
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 | |
[0m[1mInitializing modules...[0m | |
[0m[1mInitializing provider plugins...[0m |
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) |
# AddonComponents grafana component is disabled. | |
--- | |
# AddonComponents istiocoredns component is disabled. | |
--- | |
# AddonComponents kiali component is disabled. | |
--- | |
# Resources for AddonComponents prometheus component |
# AddonComponents grafana component is disabled. | |
--- | |
# AddonComponents istiocoredns component is disabled. | |
--- | |
# AddonComponents kiali component is disabled. | |
--- | |
# Resources for AddonComponents prometheus component |
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 |
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 |
# 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/ |
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