Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GitHub Issue: Islandora/documentation#1224
Depends on the branch - Islandora/Crayfish-Commons#26
What does this Pull Request do?
This PR recreates the Houdini microservice using Symfony/flex.
I will work on a PR for claw-playbook and ansible-role-crayfish
What's new?
Changes to the symfony/flex framework.
To configure the firewall you do that in
config/packages/security.yaml
To configure logging you do that in
config/packages/monolog.yaml
To configure crayfish commons you do that in
config/packages/crayfish_commons.yaml
How should this be tested?
Currently I was testing by:
cd ./Houdini
composer install
php ./bin/console server:start
Get the host and port, then ensure your
crayfish_commons.yaml
has the correct settings, including the location to the examplesyn-settings.xml
curl -i -H"Accept: image/png" -H"Apix-Ldp-Resource: <fedora url>" -H"X-Islandora-Args: -resize 100x>" http://localhost:<symfony port>/convert
-> 401 Unauthorizedcurl -i -H"Accept: image/png" -H"Apix-Ldp-Resource: <fedora url>" -H"X-Islandora-Args: -resize 100x>" -H"Authorization: Bearer bob" http://localhost:<symfony port>/convert
-> 403 Forbiddencurl -o test.png -H"Accept: image/png" -H"Apix-Ldp-Resource: <fedora url>" -H"X-Islandora-Args: -resize 100x>" -H"Authorization: Bearer islandora" http://localhost:<symfony port>/convert
-> view the resized image in test.pngInterested parties
@Islandora-CLAW/committers