Skip to content

Instantly share code, notes, and snippets.

@topherbullock
Last active June 19, 2019 21:34
Show Gist options
  • Save topherbullock/f56433bb68c9185a026be73026e36880 to your computer and use it in GitHub Desktop.
Save topherbullock/f56433bb68c9185a026be73026e36880 to your computer and use it in GitHub Desktop.
Ye Olde Concourse

Ye Olde Concourse

Running old ( and varying degrees of busted) versions of Concourse.

Vagrant init selected Concourse version

Post-theme-picker

vagrant init concourse/lite --box-version 0.73.0

Theme picker

vagrant init concourse/lite --box-version 0.72.1

Start the Vagrant VM

vagrant up

Download the Fly CLI

curl 'http://192.168.100.4:8080/api/v1/cli?arch=amd64&platform=darwin' -o fly
chmod +x ./fly

Note: Depending on your MacOS version, you may need to run fly in a container... this worked for me on Mojave 10.14.5 (18F203).

Set the states-pipeline

./fly set-pipeline -c ./states-pipeline.yml -p states
## modified from https://github.com/concourse/concourse/blob/master/web/acceptance/fixtures/states-pipeline.yml
---
resources:
- name: some-resource
type: git
source:
uri: https://github.com/concourse/test.git
- name: broken-time
type: time
source: {interval: banana}
- name: impossible-time
type: time
source:
start: 1:00 AM
stop: 1:00 AM
jobs:
- name: passing
plan:
- get: some-resource
- task: pass
config:
platform: linux
image: /var/vcap/packages/busybox
run: {path: 'echo', args: ['i passed']}
- name: erroring
plan:
- get: some-resource
- task: error
config:
platform: linux
image: /var/vcap/packages/busybox
run: {path: 'banana'}
- name: failing
plan:
- get: some-resource
- task: fail
config:
platform: linux
image: /var/vcap/packages/busybox
run:
path: sh
args:
- '-ec'
- |
echo i failed
exit 1
- name: running
plan:
- task: run
config:
platform: linux
image: /var/vcap/packages/busybox
run:
path: sh
args:
- -ec
- |
echo hello
while sleep 1; do
echo looping
done
- name: pending
plan:
- get: impossible-time
- name: broken-resource
plan:
- get: broken-time
- put: broken-time
- name: resource-metadata
plan:
- get: some-resource
- name: unavailable-pinned-input
plan:
- get: impossible-time
version: {time: "2017-08-11T00:13:33.123805549Z"}
- name: unavailable-constrained-input
plan:
- get: impossible-time
passed: [pending]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment