Intended to house utilities, shortcuts and tools likely to span projects.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
keygen/populate_keys.py <path_to_default_config> --ouput <path_to_desired_config>
pip install -r requirements.dev.txt
py.test keygen/tests.py
cp default.env .env
docker-compose up --detach
For clean slate, stop the service and remove the volume, then restart:
docker-compose down
docker volume ls
docker volume rm <volume_name>
docker-compose up --detach
Example to import content from eproms-test
system. Set environment
variables to match configuration, defaults in system-services.yaml
:
export PGUSER=postgres
export PGDATABASE=portaldb
export PGPASSWORD=redacted
export PGHOST=localhost
confirm naked psql
functions, then execute import from named host:
HOST=eproms-test.cirg.washington.edu
ssh $HOST pgdump-${HOST} | psql --dbname $PGDATABASE