Use the convenience script approach
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh
Now run docker -v
to verify it works.
import jenkins.* | |
import hudson.* | |
import com.cloudbees.plugins.credentials.* | |
import com.cloudbees.plugins.credentials.common.* | |
import com.cloudbees.plugins.credentials.domains.* | |
import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
import hudson.plugins.sshslaves.*; | |
import hudson.model.* | |
import jenkins.model.* | |
import hudson.security.* |
#!groovy | |
/* | |
* This script configures the Jenkins base URL. | |
*/ | |
import jenkins.model.JenkinsLocationConfiguration | |
JenkinsLocationConfiguration location = Jenkins.instance.getExtensionList('jenkins.model.JenkinsLocationConfiguration')[0] | |
location.url = 'https://jenkins-as-code-poc.devtail.io/' |
du / --max-depth 1 2>&1 | grep -v cannot | sort -Vr -k1,1 | head -n20 |
Use the convenience script approach
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh
Now run docker -v
to verify it works.
#!/usr/bin/env groovy | |
import groovy.json.JsonSlurper | |
// Migrates Terraform resources between modules. | |
// | |
// Resources are read from the source Terraform module, imported into the target module, | |
// then removed from the source module. The resource names can differ between source and target | |
// modules. | |
// | |
// Configure the source and target mappings in a JSON file, e.g. |
GitHub's compare view is available at:
https://github.com/$USER/$REPO/compare/$REV_A...$REV_B
Naturally, $USER
and $REPO
are the owner (user/organization) and repository names, respectively.
$REV{A,B}
are the two sides of the compare view; they can either be a ref in $USER
's repository, i.e. the name of a branch, tag or a commit SHA, or it can be a ref in $OWNER
's fork of the repository by using the format $OWNER:$REF
.
You can get a diff or patch for the result of the compare view by appending .diff
or .patch
to the URL, respectively.
#!/usr/bin/env bash | |
# Example: | |
# ./find-ecr-image.sh foo/bar mytag | |
if [[ $# -lt 2 ]]; then | |
echo "Usage: $( basename $0 ) <repository-name> <image-tag>" | |
exit 1 | |
fi | |
IMAGE_META="$( aws ecr describe-images --repository-name=$1 --image-ids=imageTag=$2 2> /dev/null )" |
I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.
So it might be really unintuitive at first but lambda functions have three states.
# System configuration | |
--- | |
version: '1' | |
system: | |
defaults: | |
driver: jenkins | |
showJobOutput: false | |
showJobOutcome: true | |
runAsTriggerUser: false |