Common utility tasks for Concourse CI.
Download fly
from a target Concourse instance.
fly/support/fetch.sh [options] <base_url> [fly_path]
Options:
--insecure
: Don't validate TLS certificates.
Arguments:
base_url
: The URL to the Concourse instance.fly_path
: The directory in which to installfly
. Default:/usr/local/bin
.
Log into Concourse version 4.x
using fly
.
echo <password> | fly/support/login_4x.sh <base_url> <username> <fly_target> [team]
Arguments:
base_url
: The URL to the Concourse instance.username
: The local username with which to login.fly_target
: The name of the target (the-t
option) with which to login.team
: The name of the team (the-n
option) with which to login.
Configure the container for git use. Sets the user.name
and user.email
properties,
globally, and installs an SSH private key.
git/support/configure.sh
Variables:
GIT_USER
: Required. Theuser.name
property value.GIT_EMAIL
: Required. Theuser.email
property value.GIT_PRIVATE_KEY
: Optional. The SSH private key contents with which to populate the~/.ssh/id_rsa
file.STRICT_HOST_KEY_CHECKING
: Optional. Default:no
. The value of theStrictHostKeyChecking
ssh_config entry to apply for all hosts.
Run a command, supplied through the COMMAND
parameter, and output the resulting volume.
COMMAND
: The command to execute.DIR
: The directory in which to run theCOMMAND
, relative to the inputvolume
.
Recursively list the contents of a volume.
DIR
: The directory to list. Defaults to the inputvolume
.
MIT © Troy Kinsella