Skip to content

UCSCLibrary/digital_collections_dev_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Prerequisites

  • Docker

Setting up your development environment

Clone repositories and set up directory structure

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 docker

Edit private configuration files

All 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.

Start Docker and check for errors

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.

Initialize database

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 PRIVILEGES

Log in to a repl on the dev site

If 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.

About

Repository for docker-compose scripts used to develop our hyrax-based dams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •