diff --git a/setup/circleci-docker-compose.yml b/setup/circleci-docker-compose.yml new file mode 100644 index 00000000..97ceef9c --- /dev/null +++ b/setup/circleci-docker-compose.yml @@ -0,0 +1,32 @@ +# vim:ts=2:sts=2:sw=2:et +# +# Author: Hari Sekhon +# Date: 2021-12-13 18:59:29 +0000 (Mon, 13 Dec 2021) +# +# https://github.com/HariSekhon/bash-tools +# +# License: see accompanying Hari Sekhon LICENSE file +# +# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish +# +# https://www.linkedin.com/in/HariSekhon +# + +# https://circleci.com/docs/2.0/runner-installation-docker/ + +# Set up runner token: +# +# circleci runner resource-class create / "description" --generate-token +# +# eg. +# +# circleci runner resource-class create harisekhon/docker "Docker Runner" --generate-token + +version: '2.2' + +services: + circleci: + image: circleci/runner:launch-agent + environment: + CIRCLECI_API_TOKEN: $CIRCLECI_API_TOKEN # use the token output by the 'runner resource-class create' command above + CIRCLECI_RESOURCE_CLASS: ${CIRCLECI_RESOURCE_CLASS:-harisekhon/docker} # /