This playground is intended to create a CD pipeline.
The following requirements the pipeline must address:
- use Concourse CI
- build a Java executable jar file
- optional: include a version number in the final file to run
- build a docker image
- optional: tag docker image version (same as above)
- publish a docker image
# 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
As stated in the official fly documentation, 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