Skip to content

Instantly share code, notes, and snippets.

@eschen42
Last active March 5, 2019 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eschen42/30edadf1db59d5c91737a610e6c1a1e5 to your computer and use it in GitHub Desktop.
Save eschen42/30edadf1db59d5c91737a610e6c1a1e5 to your computer and use it in GitHub Desktop.
Local installation of bibbox without using Vagrant

Installing bibbox locally - notes to self

Ensure locale is en_US.UTF-8 UTF-8

If the output of the locale command does not include the line

LC_ALL=en_US.UTF-8

then you may need to do the following:

apt-get -y install locales 
echo 'en_US.UTF-8 UTF-8'>> /etc/locale.gen && /usr/sbin/locale-gen
cat > /etc/profile.d/locale_en_US.sh << .
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
export LC_ALL=en_US.UTF-8
.

Ensure some baseline package support

Install some package assumed to be present by the installation scripts

apt-get -y install apt-utils
apt-get -y install sudo wget apache2 git postgresql

Invoke the installer with the FQDN

Now you should be ready to invoke the installer. For the -url option, specify either the hostname or the FQDN (fully qualified domain name, e.g, myhost.somedomain.foo). Note that the installation uses apache2 virtual hosts, so bibbox-application specific subdomanes may be prepended to this name when links are sent to the user's Internet browser. For the next example, my bibbox instance is named tanner, so I invoke the installer as follows (see https://bibbox.readthedocs.io/en/latest/installation-source/ for further detail):

# Run these commands as root.
# Ensure that /opt/ exists
if [ ! -d /opt ]; then mkdir /opt; fi
# Get the installer
git clone https://github.com/bibbox/kit-eb3kit.git /opt/bibbox-install
# Make the scripts executable
chmod +x /opt/bibbox-install/*.sh
# Check that this PR has been merged; or make the change locally:
#    https://github.com/bibbox/kit-eb3kit/pull/17
# Now install
/opt/bibbox-install/install-bibbox-local.sh -url tanner

For my example, after the installation is complete I can browse bibbox at http://tanner:80.

If you need to start over, I wrote a little script to back out the installation:

#!/bin/bash
apache2ctl -S
docker stop sys-bibbox-sync-domain sys-bibbox-sync-technical sys-activities-api sys-activities-redis
# for docker_swab_orphans, see https://gist.github.com/eschen42/86a185ef14dfc2701f2eeb66300e50ea#file-docker_swab_orphans
/root/docker_swab_orphans
service uwsgi stop
service liferay stop
service nginx stop
service bibbox stop
service postgresql stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment