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: 22 days ago
JSON representation
A Concourse resource for the apache directory index
- Host: GitHub
- URL: https://github.com/cloudlena/apache-directory-index-resource
- Owner: cloudlena
- License: other
- Created: 2017-01-23T15:59:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-10T22:39:29.000Z (over 1 year ago)
- Last Synced: 2025-04-01T23:39:02.901Z (4 months ago)
- Topics: apache-directory-index, concourse-ci, concourse-resource, docker
- Language: Shell
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apache Directory Index Resource
[](https://hub.docker.com/r/mastertinner/apache-directory-index-resource)
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-resourceresources:
- 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
```