This repository contains docker files and auxiliary packages necessary to set up and run a development environment for UCSC's DAMS. We have set up this docker environment purely to create a flexible platform independent development solution; this docker setup is not currently used for deployment or for any production environments.
- Docker
git clone [email protected]:UCSCLibrary/ucsc-library-digital-collections.git hyrax
git clone [email protected]:UCSCLibrary/digital_collections_dev_docker.git docker
git clone [email protected]:UCSCLibrary/bulkops.git bulk_ops
git clone [email protected]:UCSCLibrary/scoobysnacks.git scooby_snacks
git clone [email protected]:UCSCLibrary/samvera_hls.git samvera_hls
wget https://github.com/harvard-lts/fits/releases/download/1.5.0/fits-1.5.0.zip
unzip fits-1.5.0.zip
fits-1.5.0 fits
rm fits-1.5.0.zip
mkdir dams_ingest
mkdir dams_derivatives
cd dockerAll configuration is done in .env.development. Currently defaults can be found in .env, but items in .env.development can be used to override these values.
In the original docker terminal, enter docker-compose up to completely start the docker stack. Hopefully everything will come online succesfully. Navigate to http://localhost:3000 to view the site if it works.
docker exec -it mysql bash
mysql -u hyrax_user -pMY_PASSWORD_FROM_ENV
create database hyrax_dev
create database hyrax_test
CREATE USER 'hyrax_user'@'%' IDENTIFIED BY 'potentialmidday';
CREATE USER 'hyrax_user'@'localhost' IDENTIFIED BY 'potentialmidday';
grant all privileges on *.* to 'hyrax_user'@'%'
grant all privileges on *.* to 'hyrax_user'@'localhost'
FLUSH PRIVILEGESIf you need a repl on the dev site, first log in to the webapp container: docker exec -it hycruz bash. Then you can just enter repl to activate a shortcut I created to set the bundle parameters correctly and start the repl.