uoregon-libraries / aspace_publisher

0 stars 0 forks source link

AspacePublisher

ApacePublisher is small server built with the Golang Echo framework that automates pushing metadata from ArchivesSpace to other services, currently ArchivesWest and OCLC. Future workflows will include OregonDigital and Alma.

Usage

The ids listed as a parameter refer to the final component in the ArchivesSpace URI, e.g. in the case of a resource: /repositories/2/resources/3476, the id is 3476. Endpoints:

Local development

Running directly on local system

Docker

NOTE for local development: connecting to the UO ArchivesSpace API requires being on the VPN.

Staging:

Docker (required) as above, with one additional step, run: register-app . (generates docker-compose.staging.yml) docker compose -f docker-compose.staging.yml up server

Production:

  1. go build
  2. scp the executable to the server
  3. if needed, edit /etc/aspace-pub.env
  4. sudo systemctl stop aspace-pub
  5. move executable to /usr/local/aspace-pub
  6. sudo systemctl start aspace-pub

logging: journalctl -fu aspace_publisher

NOTE this service is only reachable from campus or while on the VPN.