purge_servers # to start from scratch (stops and removes everything)
build_dev # build the images (ensures correct solr config for this branch)
run_servers # starts the db and solr containers
reset_solr_state # (wait for solr to start 1st) clears the local indexer state
migrate_db # run the db migrations
run_aspace # run all the aspace apps (or run_api etc.)
Repeat these steps whenever necessary to completely start over with a fresh db and solr. This set of steps should be highly consistent in providing a working dev environment.
If the servers are running and you want to keep the current db containers:
reset_solr_dev_container # stops and removes solr, rebuilds then runs it
reset_solr_state # (wait for solr to start 1st) clears the local indexer state
ArchivesSpace can also still be running when this is done.
@brianzelip running the dev env includes the demo (accessibility) db now, so some data should already be there!
https://github.com/archivesspace/archivesspace/blob/master/docker-compose-dev.yml#L14-L15
There should be some docs for running with no database or a different database. The easiest (though kind of lame) way to do it right now is:
Stop everything.
Temporarily delete
./build/mysql_db_fixtures/accessibility.sql.gz
(for no database) or to copy a file over it (for a different database).Start everything back up again.
(Don't accidentally commit the delete / update of the accessibility db file!)