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

https://github.com/netresearch/composer-resource

Resource for Concourse CI to monitor updates in composer
https://github.com/netresearch/composer-resource

composer concourse-ci concourse-resource monitoring

Last synced: 2 months ago
JSON representation

Resource for Concourse CI to monitor updates in composer

Awesome Lists containing this project

README

          

=================================================
Concourse CI composer dependency monitor resource
=================================================

Docker image: https://hub.docker.com/r/netresearch/composer-resource

.. image:: https://www.drupal.org/files/styles/grid-3-2x/public/project-images/logo-composer-transparent3.png?itok=3wl5Mi6v
:alt: Composer
:height: 100px
:align: left

----
Idea
----

- https://content.pivotal.io/blog/developing-a-custom-concourse-resource
- https://concoursetutorial.com/miscellaneous/docker-images/
- https://concourse-ci.org/implementing-resources.html

Steps
-----

1. Install the project dependencies ``composer install``
2. Check for outdated ``composer outdated -D -m -f json --no-interaction --no-ansi``

Build
=====

.. code-block:: bash

docker build -t registry.netresearch.de/blugento/support/composer-resource .
docker push registry.netresearch.de/blugento/support/composer-resource

Debug
=====

.. code-block:: bash

docker run -it registry.netresearch.de/blugento/support/composer-resource sh

Testing
=======

1. ``composer install -d /tests``
2. ``composer outdated -D -m -f json --no-interaction --no-ansi -d /tests``
2. ``composer update --dry-run -d /tests``

------------------
Setup the pipeline
------------------

login to concourse::

fly -t box-blugento-support login -n blugento-support --concourse-url=https://ci.netresearch.de

set pipeline for app build::

fly set-pipeline -t box-blugento-support -p composer-resource:test -c tests/pipeline.yml -n

debug jobs::

fly -t box-blugento-support hijack -j base-community/test