Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load Crayfish Microservices into Api-X #739

Open
dannylamb opened this issue Oct 24, 2017 · 1 comment
Open

Load Crayfish Microservices into Api-X #739

dannylamb opened this issue Oct 24, 2017 · 1 comment
Labels
Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also

Comments

@dannylamb
Copy link
Contributor

We need to curl in the three following commands in both https://github.com/Islandora-CLAW/claw_vagrant and https://github.com/Islandora-Devops/claw-playbook.

curl -i -X POST -H "Authorization: Bearer islandora" -H "Content-Type: text/plain" -d "http://localhost:8000/houdini/convert" "http://localhost:8081/services//apix:load"
curl -i -X POST -H "Authorization: Bearer islandora" -H "Content-Type: text/plain" -d "http://localhost:8000/houdini/identify" "http://localhost:8081/services//apix:load"
curl -i -X POST -H "Authorization: Bearer islandora" -H "Content-Type: text/plain" -d "http://localhost:8000/hypercube/" "http://localhost:8081/services//apix:load"

These will load our services into Api-X.

For https://github.com/Islandora-CLAW/claw_vagrant, jam them at the end of this file: https://github.com/Islandora-CLAW/claw_vagrant/blob/master/scripts/post-install.sh

For https://github.com/Islandora-CLAW/claw_vagrant and https://github.com/Islandora-Devops/claw-playbook, we'll require idempotency. So we'll need to check if they're already loaded. You can do so by issuing a GET (or HEAD) request for each service in the service registry. If you get 200, you need to skip. If 404, you need to load.

The URLs to look for are:

@whikloj
Copy link
Member

whikloj commented Mar 13, 2018

I'm not sure if this is due to a failure in claw-playbook, but the API-X load service is currently at http://127.0.0.1:32080/load which is the default

@kstapelfeldt kstapelfeldt added Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also and removed Ansible labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also
Projects
Development

No branches or pull requests

3 participants