A Concourse resource for the apache directory index
Shell
Switch branches/tags
Nothing to show
Clone or download
Latest commit 09dcf40 May 4, 2018
Permalink
Failed to load latest commit information.
scripts Remove -u flag Oct 30, 2017
Dockerfile Support longer versions instead of just semver Aug 18, 2017
LICENSE Add license file Mar 31, 2017
README.md Add Docker badges May 4, 2018

README.md

Apache Directory Index Resource

Docker Build Status Docker Pulls

A Concourse resource for the Apache Directory Index.

Source Configuration

resource_types:
- name: apache-directory-index
  type: docker-image
  source:
    repository: mastertinner/apache-directory-index-resource

resources:
- name: tomcat-8
  type: apache-directory-index
  source:
    directory: https://archive.apache.org/dist/tomcat/tomcat-8/
    folder_pattern: v$VERSION
    file_pattern: bin/apache-tomcat-$VERSION.tar.gz
  • directory is the path of where the your versioned folders reside
  • folder_pattern describes the pattern of how the folders are named (use $VERSION as a placeholder for the version)
  • file_pattern describes the pattern of where the file resides and how it's named (use $VERSION as a placeholder for the version)

Important: Your version needs to follow the version_pattern defined in <scripts/check> (e.g. 1.2.3-beta.4).

Behavior

check: Check for new versions

Checks if there are new versions of the source.

in: Download a version

Places the following files in the destination:

  • (filename): The file fetched from the directory index
  • url: Contains the URL of the downloaded file
  • version: The version identified in the file name

Example

jobs:
- name: download-tomcat-8
  plan:
  - get: tomcat-8
    trigger: true