Skip to content

Instantly share code, notes, and snippets.

@kujiy
Created October 17, 2016 00:23
Show Gist options
  • Save kujiy/c0819bd8dbdb30a86fcee77f7b6cf34e to your computer and use it in GitHub Desktop.
Save kujiy/c0819bd8dbdb30a86fcee77f7b6cf34e to your computer and use it in GitHub Desktop.
$ docker exec gitlab-runner bash -c "gitlab-runner -v"
Version: 1.6.1
Git revision: c52ad4f
Git branch: 1-6-stable
GO version: go1.6.3
Built: Mon, 03 Oct 2016 14:47:22 +0000
OS/Arch: linux/amd64
$ docker exec gitlab-runner bash -c "gitlab-runner "
NAME:
gitlab-runner - a GitLab Runner
USAGE:
gitlab-runner [global options] command [command options] [arguments...]
VERSION:
1.6.1 (c52ad4f)
AUTHOR(S):
Kamil Trzciński <[email protected]>
COMMANDS:
exec execute a build locally
list List all configured runners
run run multi runner service
register register a new runner
install install service
uninstall uninstall service
start start service
stop stop service
restart restart service
status get status of a service
run-single start single runner
unregister unregister specific runner
verify verify all registered runners
artifacts-downloader download and extract build artifacts (internal)
artifacts-uploader create and upload build artifacts (internal)
cache-archiver create and upload cache artifacts (internal)
cache-extractor download and extract cache artifacts (internal)
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--debug debug mode [$DEBUG]
--log-level, -l "info" Log level (options: debug, info, warn, error, fatal, panic)
--cpuprofile write cpu profile to file [$CPU_PROFILE]
--help, -h show help
--version, -v print the version
$
$ docker exec gitlab-runner bash -c "gitlab-runner exec docker "
NAME:
exec docker - use docker executor
USAGE:
command exec docker [command options] [arguments...]
OPTIONS:
--executor "docker" Select executor, eg. shell, docker, etc. [$RUNNER_EXECUTOR]
--builds-dir Directory where builds are stored [$RUNNER_BUILDS_DIR]
--cache-dir Directory where build cache is stored [$RUNNER_CACHE_DIR]
--env Custom environment variables injected to build environment [$RUNNER_ENV]
--pre-clone-script Runner-specific command script executed before code is pulled [$RUNNER_PRE_CLONE_SCRIPT]
--pre-build-script Runner-specific command script executed after code is pulled, just before build executes [$RUNNER_PRE_BUILD_SCRIPT]
--shell Select bash, cmd or powershell [$RUNNER_SHELL]
--ssh-user User name [$SSH_USER]
--ssh-password User password [$SSH_PASSWORD]
--ssh-host Remote host [$SSH_HOST]
--ssh-port Remote host port [$SSH_PORT]
--ssh-identity-file Identity file to be used [$SSH_IDENTITY_FILE]
--docker-host Docker daemon address [$DOCKER_HOST]
--docker-cert-path Certificate path [$DOCKER_CERT_PATH]
--docker-tlsverify Use TLS and verify the remote [$DOCKER_TLS_VERIFY]
--docker-hostname Custom container hostname [$DOCKER_HOSTNAME]
--docker-image "php:5.6.26-apache" Docker image to be used [$DOCKER_IMAGE]
--docker-cpuset-cpus String value containing the cgroups CpusetCpus to use [$DOCKER_CPUSET_CPUS]
--docker-dns A list of DNS servers for the container to use [$DOCKER_DNS]
--docker-dns-search A list of DNS search domains [$DOCKER_DNS_SEARCH]
--docker-privileged Give extended privileges to container [$DOCKER_PRIVILEGED]
--docker-cap-add Add Linux capabilities [$DOCKER_CAP_ADD]
--docker-cap-drop Drop Linux capabilities [$DOCKER_CAP_DROP]
--docker-security-opt Security Options [$DOCKER_SECURITY_OPT]
--docker-devices Add a host device to the container [$DOCKER_DEVICES]
--docker-disable-cache Disable all container caching [$DOCKER_DISABLE_CACHE]
--docker-volumes "[/ci:/ci]" Bind mount a volumes [$DOCKER_VOLUMES]
--docker-cache-dir Directory where to store caches [$DOCKER_CACHE_DIR]
--docker-extra-hosts "[gitlab01.com:10.5.0.3]" Add a custom host-to-IP mapping [$DOCKER_EXTRA_HOSTS]
--docker-volumes-from A list of volumes to inherit from another container [$DOCKER_VOLUMES_FROM]
--docker-network-mode "kkc.jp" Add container to a custom network [$DOCKER_NETWORK_MODE]
--docker-links Add link to another container [$DOCKER_LINKS]
--docker-services Add service that is started with container [$DOCKER_SERVICES]
--docker-wait-for-services-timeout "0" How long to wait for service startup [$DOCKER_WAIT_FOR_SERVICES_TIMEOUT]
--docker-allowed-images Whitelist allowed images [$DOCKER_ALLOWED_IMAGES]
--docker-allowed-services Whitelist allowed services [$DOCKER_ALLOWED_SERVICES]
--docker-pull-policy "never" Image pull policy: never, if-not-present, always [$DOCKER_PULL_POLICY]
--parallels-base-name VM name to be used [$PARALLELS_BASE_NAME]
--parallels-template-name VM template to be created [$PARALLELS_TEMPLATE_NAME]
--parallels-disable-snapshots Disable snapshoting to speedup VM creation [$PARALLELS_DISABLE_SNAPSHOTS]
--virtualbox-base-name VM name to be used [$VIRTUALBOX_BASE_NAME]
--virtualbox-base-snapshot Name or UUID of a specific VM snapshot to clone [$VIRTUALBOX_BASE_SNAPSHOT]
--virtualbox-disable-snapshots Disable snapshoting to speedup VM creation [$VIRTUALBOX_DISABLE_SNAPSHOTS]
--cache-type Select caching method: s3, to use S3 buckets [$CACHE_TYPE]
--cache-s3-server-address S3 Server Address [$S3_SERVER_ADDRESS]
--cache-s3-access-key S3 Access Key [$S3_ACCESS_KEY]
--cache-s3-secret-key S3 Secret Key [$S3_SECRET_KEY]
--cache-s3-bucket-name S3 bucket name [$S3_BUCKET_NAME]
--cache-s3-bucket-location S3 location [$S3_BUCKET_LOCATION]
--cache-s3-insecure Use insecure mode (without https) [$S3_CACHE_INSECURE]
--machine-idle-nodes "0" Maximum idle machines [$MACHINE_IDLE_COUNT]
--machine-idle-time "0" Minimum time after node can be destroyed [$MACHINE_IDLE_TIME]
--machine-max-builds "0" Maximum number of builds processed by machine [$MACHINE_MAX_BUILDS]
--machine-machine-driver The driver to use when creating machine [$MACHINE_DRIVER]
--machine-machine-name The template for machine name (needs to include %s) [$MACHINE_NAME]
--machine-machine-options Additional machine creation options [$MACHINE_OPTIONS]
--kubernetes-host Optional Kubernetes master host URL (auto-discovery attempted if not specified) [$KUBERNETES_HOST]
--kubernetes-cert-file Optional Kubernetes master auth certificate [$KUBERNETES_CERT_FILE]
--kubernetes-key-file Optional Kubernetes master auth private key [$KUBERNETES_KEY_FILE]
--kubernetes-ca-file Optional Kubernetes master auth ca certificate [$KUBERNETES_CA_FILE]
--kubernetes-image Default docker image to use for builds when none is specified [$KUBERNETES_IMAGE]
--kubernetes-namespace Namespace to run Kubernetes jobs in [$KUBERNETES_NAMESPACE]
--kubernetes-privileged Run all containers with the privileged flag enabled [$KUBERNETES_PRIVILEGED]
--kubernetes-cpus The CPU allocation given to build containers [$KUBERNETES_CPUS]
--kubernetes-memory The amount of memory allocated to build containers [$KUBERNETES_MEMORY]
--kubernetes-service-cpus The CPU allocation given to build service containers [$KUBERNETES_SERVICE_CPUS]
--kubernetes-service-memory The amount of memory allocated to build service containers [$KUBERNETES_SERVICE_MEMORY]
--timeout "0" Job execution timeout (in seconds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment