Download the repo
git clone https://github.com/EUDAT-B2STAGE/http-api.git myb2safe
cd myb2safe && git checkout b2safe_development
-
change passwords
IRODS_PASSWORD
andALCHEMY_PASSWORD
inprojects/b2safe/project_configuration.yaml
-
start only postgresql and open the interface:
# start sql server
rapydo --project b2safe --mode simple_sql start
# start sqladmin
rapydo --project b2safe --mode simple_sql interfaces sqlalchemy
# open interface
open http://localhost/adminer?pgsql=psqldb.dockerized.io&username=rods&db=ICAT&ns=public&select=user
# insert your Password
# copy your dump inside the container
docker cp README.md b2safe_postgres_1:/tmp/
# open a shell and load the dump
docker exec -it b2safe_postgres_1 ash
$ psql -U rods ...
-
Docker mount a collection into
icat
container- modify
projects/b2safe/confs/debug.yml
- add
YOUR_DATA_PATH
andYOUR_IRULES_PATH
in “Extra volumes”
- add
- modify
-
start irods
rapydo --project b2safe start
- !IMPORTANT! Check if irods gives error because ICAT already exists
Configure irods server to mount the collection of YOUR_DATA_PATH
# open a shell
rapydo --project b2safe shell icat
# become irods admin
$ berods
# mount
imcoll ... YOUR_DATA_PATH
# restart
/var/lib/irods/irodsctl restart
# still inside icat container!
# copy your rules into /etc/irods/
cp YOUR_IRULES_PATH/*.re /etc/irods/
Now B2SAFE is up and running
Another node! Follow: Start-up the project | http-api
Configure the file projects//b2stage/project_configuration.yaml
and set:
- ALCHEMY_PASSWORD
- IRODS_HOST
- IRODS_AUTHSCHEME: credentials
- IRODS_USER
- IRODS_PASSWORD
- IRODS_ZONE
and start it like explained in: MODES | http-api
To do
The schema for this discussion: https://www.dropbox.com/s/q67met0vnpy27lc/20171103_115931.jpg?dl=0