maelvls dev blog

maelvls dev blog

Systems software engineer. I write mostly about Kubernetes and Go. About

22 Apr2020

Setting Up Concourse

# Make sure I use the same version as the server.
% fly -t main sync

# Login.
% fly login -t main -c https://concourse.k.maelvls.dev/
logging in to team 'main'

navigate to the following URL in your browser:

  https://concourse.k.maelvls.dev/login?fly_port=53932

or enter token manually:
target saved

Can -t main be remembered by default like contexts and namespaces with kubectl config set-context? See:

  • issue 213:
  • issue 1933:

    Could fly remember the target? Either with FLY_TARGET env var or setting a default in ~/.flyrc?

    Response: The -t flag is intentionally stateless and must be explicitly added to each command. This reduces the risk of accidentally running a command against the wrong environment when you have multiple targets defined.

OK. I hate that kind of stubborness.

% cat <<EOF > pipeline.yml
---
resources:
  - name: concourse-docs-git
    type: git
    icon: github-circle
    source:
      uri: https://github.com/concourse/docs
jobs:
  - name: job
    public: true
    plan:
      - get: concourse-docs-git
        trigger: true
      - task: list-files
        config:
          inputs:
            - name: concourse-docs-git
          platform: linux
          image_resource:
            type: registry-image
            source: { repository: busybox }
          run:
            path: ls
            args: ["-la", "./concourse-docs-git"]
EOF
fly -t main set-pipeline -pmaster -c pipeline.yml

Configuring gdn server": On Linux, the concourse binary is packaged alongside a gdn binary. This binary is used for running Guardian, which is a Garden backend implementation which runs containers via runc (the same technology underlying tools like Docker).

📝 Edit this page