Skip to content
This repository has been archived by the owner on Apr 26, 2019. It is now read-only.

gocd/docker-gocd-agent

Repository files navigation

GoCD Agent Docker image

This repository is the parent repository for the following docker images

Usage

The build process uses the Rakefile to build different tasks. There are three tasks that you could build: all images, specific image, and publish the docker images.

The URL for environment variable GOCD_AGENT_DOWNLOAD_URL is under the Zip tab from this download webpage.

1. Building all images

GOCD_VERSION=X.Y.Z \
GOCD_AGENT_DOWNLOAD_URL=https://download.gocd.io/binaries/X.Y.Z-PPPP/generic/go-agent-X.Y.Z-PPPP.zip \
rake build_image [--trace]

2. Building a specific image

List all targets

GOCD_VERSION=X.Y.Z \
GOCD_AGENT_DOWNLOAD_URL=https://download.gocd.io/binaries/X.Y.Z-PPPP/generic/go-agent-X.Y.Z-PPPP.zip \
rake -T build_image

Build a specific image, ubuntu 16.04, gocd version 17.3.0

GOCD_VERSION=17.3.0 \
GOCD_AGENT_DOWNLOAD_URL=https://download.gocd.io/binaries/17.3.0-4704/generic/go-agent-17.3.0-4704.zip \
rake gocd-agent-ubuntu-16.04:build_image

3. Publishing all docker images

GOCD_VERSION=X.Y.Z GOCD_AGENT_DOWNLOAD_URL=https://download.gocd.io/binaries/X.Y.Z-PPPP/generic/go-agent-X.Y.Z-PPPP.zip
rake publish [--trace]

Note: Image will be removed from machine post push. To disable auto cleanup add env CLEAN_IMAGES=false

License

Copyright 2018 ThoughtWorks, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.