Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cloudlena/apache-directory-index-resource

A Concourse resource for the apache directory index
https://github.com/cloudlena/apache-directory-index-resource

apache-directory-index concourse-ci concourse-resource docker

Last synced: about 2 months ago
JSON representation

A Concourse resource for the apache directory index

Awesome Lists containing this project

README

        

# Apache Directory Index Resource

[![Docker Build](https://img.shields.io/docker/cloud/build/mastertinner/apache-directory-index-resource.svg?style=flat-square)](https://hub.docker.com/r/mastertinner/apache-directory-index-resource)
![Docker Pulls](https://img.shields.io/docker/pulls/mastertinner/apache-directory-index-resource.svg?style=flat-square)

A Concourse resource for the Apache Directory Index.

## Source Configuration

```yaml
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
expand: true
```

- `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)
- `expand` if true the the downloaded file will be expanded into the `expanded` directory.

_Important_: Your version needs to follow the `version_pattern` defined in (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
- `expanded`: The expanded file contents

## Example

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