당신은 127.0.0.1:8080에서 웹에서 운영 체제에 맞는 명령 줄 fly를 다운로드 할 수 있습니다.
Kubernetes로 (권장)
concourse-chart를 사용하여 Kubernetes(예: minikube)에 쉽게 concourse를 배포할 수 있습니다.
brewinstallhelmhelmrepoaddconcoursehttps://concourse-charts.storage.googleapis.com/helminstallconcourse-releaseconcourse/concourse# concourse-release will be the prefix name for the concourse elements in k8s# After the installation you will find the indications to connect to it in the console# If you need to delete ithelmdeleteconcourse-release
concourse env를 생성한 후, 비밀을 생성하고 concourse 웹에서 실행 중인 SA에 K8s 비밀에 대한 액세스 권한을 부여할 수 있습니다:
각 작업 계획의 단계는 독립적인 컨테이너에서 실행됩니다. 컨테이너 내에서 원하는 작업을 실행할 수 있습니다. (예: 테스트 실행, bash 스크립트 실행, 이미지 빌드 등) 따라서, 다섯 개의 단계가 있는 작업이 있다면 Concourse는 각 단계마다 하나의 컨테이너를 생성합니다.
따라서, 각 단계가 실행되는 컨테이너의 유형을 지정할 수 있습니다.
간단한 파이프라인 예제
jobs:- name:simpleplan:- task:simple-taskprivileged:trueconfig:# Tells Concourse which type of worker this task should run onplatform:linuximage_resource:type:registry-imagesource:repository:busybox# images are pulled from docker hub by defaultrun:path:shargs:- -cx- |sleep 1000echo "$SUPER_SECRET"params:SUPER_SECRET:((super.secret))
fly-ttutorialset-pipeline-ppipe-name-chello-world.yml# pipelines are paused when first createdfly-ttutorialunpause-pipeline-ppipe-name# trigger the job and watch it run to completionfly-ttutorialtrigger-job--jobpipe-name/simple--watch# From another consolefly-ttutorialintercept--jobpipe-name/simple
파이프라인 흐름을 확인하려면 127.0.0.1:8080을 확인하세요.
출력/입력 파이프라인이 있는 Bash 스크립트
한 작업의 결과를 파일에 저장하고, 이를 출력으로 지정한 다음 다음 작업의 입력을 이전 작업의 출력으로 지정할 수 있습니다. Concourse는 이전 작업의 디렉토리를 새 작업에 마운트하여 이전 작업에서 생성된 파일에 액세스할 수 있도록 합니다.
트리거
작업을 수동으로 실행할 필요 없이, 프로그램을 실행할 때마다 실행되도록 할 수도 있습니다: