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
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 |
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
| #!/bin/bash | |
| # Author: Thomas Berezansky <[email protected]> | |
| # Author: Jason Stephenson <[email protected]> | |
| # | |
| # Feel free to use and to share this script in anyway you like. | |
| # This script is intended as a shortcut for the git cherry-pick | |
| # command when you have several commits that you want to cherry-pick | |
| # into your local branch from another branch. It often results in a |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| # Add Docker PPA and install latest version | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
| sudo apt-get update | |
| sudo apt-get install lxc-docker -y | |
| # Install fig | |
| sudo su | |
| curl -L https://github.com/docker/fig/releases/download/1.0.0/fig-`uname -s`-`uname -m` > /usr/local/bin/fig | |
| chmod +x /usr/local/bin/fig |