forked from inveniosoftware/invenio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.inveniorc
22 lines (19 loc) · 917 Bytes
/
.inveniorc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
# Kickstart Invenio 1 demo instance.
export INVENIO_SRCDIR=/vagrant
export [email protected]
export INVENIO_WEB_DSTDIR=/opt/invenio
export INVENIO_WEB_HOST=192.168.50.10
export INVENIO_WEB_USER=www-data
export INVENIO_MYSQL_HOST=192.168.50.11
export INVENIO_MYSQL_DBNAME=invenio1
export INVENIO_MYSQL_DBUSER=invenio1
export INVENIO_MYSQL_DBPASS=dbpass123
# Now you can use kickstart scripts, for example:
#
# vagrant up --no-parallel
# vagrant ssh web -c 'source .inveniorc && /vagrant/scripts/create-instance.sh'
# vagrant ssh web -c 'source .inveniorc && /vagrant/scripts/populate-instance.sh'
# firefox http://192.168.50.10/record/1
# vagrant ssh web -c 'source .inveniorc && sudo -u www-data /opt/invenio/bin/inveniocfg --run-unit-tests'
# vagrant ssh web -c 'source .inveniorc && sudo -u www-data /opt/invenio/bin/inveniocfg --run-regression-tests --yes-i-know'