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

no gemini #197

Merged
merged 4 commits into from
Mar 12, 2021
Merged

no gemini #197

merged 4 commits into from
Mar 12, 2021

Conversation

dannylamb
Copy link
Member

@dannylamb dannylamb commented Mar 11, 2021

GitHub Issue: playbook analog of Islandora-Devops/isle-dc#132

What does this Pull Request do?

Deploys islandora sans gemini

How should this be tested?

  • Pull in this PR
  • rm -rf roles/external
  • Assuming you're testing locally, youll want to set these configs in inventory/vagrant/group_vars/crayfish.yml to localhost. If you're testing remotely keeping it is fine, the IP will work. But if you're local, you get 127.0.0.1 which doesn't quite work. Drupal thinks its localhost and the string matching in recast will fail. So TL;DR do this:
crayfish_fedora_base_url: "localhost:8080/fcrepo/rest"
crayfish_drupal_base_url: "localhost:{{ apache_listen_port }}"
  • vagrant up
  • Go make content and follow its "Fedora URI" link to Fedora, confirm the
  • Use Recast on some of your content and confirm it turns drupal urls into fedora urls:
vagrant@islandora8:~$ curl -H "Authorization: Bearer islandora" -H "Apix-Ldp-Resource: http://localhost:8080/fcrepo/rest/73/63/a8/93/7363a893-67ce-41aa-8d18-a4b8323d4171" localhost:8000/recast/replace
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix pcdm: <http://pcdm.org/models#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dc: <http://purl.org/dc/terms/> .

<http://localhost:8080/fcrepo/rest/73/63/a8/93/7363a893-67ce-41aa-8d18-a4b8323d4171>
  a fedora:Container, <http://purl.org/coar/resource_type/c_c513>, fedora:Resource, ldp:BasicContainer, pcdm:Object, ldp:RDFSource, ldp:Container ;
  fedora:lastModifiedBy "bypassAdmin" ;
  schema:dateModified "2021-03-11T15:34:37+00:00"^^xsd:dateTime ;
  schema:author <http://localhost:8000/user/1> ;
  schema:sameAs <http://localhost:8000/node/2> ;
  schema:dateCreated "2021-03-11T15:33:55+00:00"^^xsd:dateTime ;
  dc:extent "1 item" ;
  fedora:createdBy "bypassAdmin" ;
  fedora:lastModified "2021-03-11T15:34:38.683Z"^^xsd:dateTime ;
  fedora:created "2021-03-11T15:34:38.683Z"^^xsd:dateTime ;
  pcdm:memberOf <http://localhost:8080/fcrepo/rest/36/8a/e0/e2/368ae0e2-649f-48c6-b7c3-537fc4d00565> ;
  dc:title "An Item"@en .

Interested parties

@Islandora-Devops/committers

@elizoller
Copy link
Member

i'll give this a whirl since i can't get recast to work when i manually updated the components in vagrant

@elizoller
Copy link
Member

I'm in business!!!!!

@elizoller
Copy link
Member

curl -H "Authorization: Bearer islandora" -H "Apix-Ldp-Resource: http://localhost:8080/fcrepo/rest/5c/2d/1b/67/5c2d1b67-fb46-4584-9737-990130614edd" localhost:8000/recast/replace
returned

@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix pcdm: <http://pcdm.org/models#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ns0: <http://id.loc.gov/vocabulary/relators/> .
@prefix dc: <http://purl.org/dc/terms/> .

<http://localhost:8080/fcrepo/rest/5c/2d/1b/67/5c2d1b67-fb46-4584-9737-990130614edd>
  a fedora:Container, <http://purl.org/coar/resource_type/c_c513>, fedora:Resource, ldp:BasicContainer, pcdm:Object, ldp:RDFSource, ldp:Container ;
  fedora:lastModifiedBy "bypassAdmin" ;
  schema:dateModified "2021-03-11T20:16:41+00:00"^^xsd:dateTime ;
  schema:author <http://localhost:8000/user/1> ;
  ns0:prv <http://localhost:8080/fcrepo/rest/71/0e/26/0a/710e260a-f0bc-4d39-ae6a-d1f5b9d20031>, <http://localhost:8080/fcrepo/rest/6e/25/24/2c/6e25242c-cbe6-43aa-9b6b-ece655c1db14> ;
  schema:sameAs <http://localhost:8000/node/5> ;
  schema:dateCreated "2021-03-11T20:16:41+00:00"^^xsd:dateTime ;
  ns0:pht <http://localhost:8080/fcrepo/rest/e2/67/5e/50/e2675e50-1a57-4eed-9462-265cdb595984> ;
  dc:date "2018-05-01", "2018-05-01"^^xsd:date ;
  dc:extent "1 item" ;
  fedora:createdBy "bypassAdmin" ;
  fedora:lastModified "2021-03-11T20:16:47.904Z"^^xsd:dateTime ;
  fedora:created "2021-03-11T20:16:47.904Z"^^xsd:dateTime ;
  dc:subject <http://localhost:8080/fcrepo/rest/bb/5d/7e/18/bb5d7e18-022a-42cc-8b1b-2142e4ec4021> ;
  dc:description "A neon sign on a multi-colored wall that reads \"This Must Be The Place\""@en ;
  dc:title "This Must Be The Place"@en .

@dannylamb
Copy link
Member Author

This is good to go once islandora-deprecated/ansible-role-crayfish#37 is merged

Copy link
Member

@elizoller elizoller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed working playbook previously with all the no-gemini branches attached

@elizoller elizoller merged commit 42cf3fb into dev Mar 12, 2021
@rosiel rosiel deleted the no-gemini branch August 30, 2021 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants