<commit_before>
# A test project for playing with concourse

This playground is intended to create a [CD](http://guide.agilealliance.org/guide/cd.html) pipeline.

The following requirements the pipeline must address:

1. use [Concourse CI](https://concourse-ci.org/)
2. build a Java executable jar file
3. optional: include a version number in the final file to run
4. build a docker image
   * optional: tag docker image version (same as above)
5. publish a docker image

## Java, Maven, evtl. Spring Boot

## Usage

```
# build java project
mvn package

# prepare vagrant box
vagrant init concourse/lite
vagrant up

# upload pipeline
fly -t local set-pipeline -p concourse-java-maven-test-prj -c ./pipeline.yml
```

### Where do I get 'fly' from?

As stated in the official [fly documentation](https://concourse-ci.org/fly.html),
you can download or update your fly installation from any Concourse CI installation.

With your vagrant image running, your Concourse CI should be accessible via http://192.168.100.4:8080/.
Just download fly from there.

Get a list of configured targets via

```
>>> fly targets

name   url                        expiry
local  http://192.168.100.4:8080  n/a

```<commit_msg>add more usage help for fly<commit_after>
# A test project for playing with concourse

This playground is intended to create a [CD](http://guide.agilealliance.org/guide/cd.html) pipeline.

The following requirements the pipeline must address:

1. use [Concourse CI](https://concourse-ci.org/)
2. build a Java executable jar file
3. optional: include a version number in the final file to run
4. build a docker image
   * optional: tag docker image version (same as above)
5. publish a docker image

## Java, Maven, evtl. Spring Boot

## Usage

```
# build java project
mvn package

# prepare vagrant box
vagrant init concourse/lite
vagrant up

# upload pipeline
fly -t local set-pipeline -p concourse-java-maven-test-prj -c ./pipeline.yml
```

### Where do I get 'fly' from?

As stated in the official [fly documentation](https://concourse-ci.org/fly.html),
you can download or update your fly installation from any Concourse CI installation.

With your vagrant image running, your Concourse CI should be accessible via http://192.168.100.4:8080/.
Just download fly from there.

First, add your local running Concourse CI as target
```
fly -t local login -c "http://192.168.100.4:8080/"
```


Get a list of configured targets via
```
>>> fly targets

name   url                        expiry
local  http://192.168.100.4:8080  n/a
```
{'fraction_non_alphanumeric': 0.09645669291338582, 'fraction_numerical': 0.031496062992125984, 'mean_word_length': 3.5783783783783782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2158569', 'n_tokens_mistral': 825, 'n_tokens_neox': 739, 'n_words': 326}