This project installs the necessary services (dockers) to run a full electronic laboratory book. A deployed version can be found at www.c6h6.org.
$ yum update -y
$ yum install epel-release -y
$ yum install git docker docker-compose -y
$ curl -sL https://rpm.nodesource.com/setup_10.x | bash -
$ yum install -y nodejs
https://www.rootusers.com/how-to-enable-or-disable-selinux-in-centos-rhel-7/
Follow the guide to configure Docker to use the proxy: https://docs.docker.com/engine/admin/systemd/#/http-proxy
$ systemctl start docker
$ systemctl enable docker
$ mkdir /usr/local/docker
$ cd /usr/local/docker
$ curl -L https://github.com/cheminfo/roc-eln-docker/archive/master.tar.gz | tar xz
$ mv roc-eln-docker-master roc-eln-docker
$ cd roc-eln-docker
Mandatory configuration options have the value REPLACEME
If LDAP configuration is needed, edit rest-on-couch/home/ldap.js
.
Copy the visualizer config to rest-on-couch/home/visualizer
:
$ cd rest-on-couch/home
$ curl -L https://github.com/cheminfo/roc-visualizer-config/archive/master.tar.gz | tar xz
$ mv roc-visualizer-config-master visualizer
Copy the ELN config to rest-on-couch/home/eln
:
$ cd rest-on-couch/home
$ curl -L https://github.com/cheminfo/roc-eln-config/archive/master.tar.gz | tar xz
$ mv roc-eln-config-master eln
$ cd eln
$ npm i
Copy the printer config to rest-on-couch/home/printers
:
$ cd rest-on-couch/home
$ curl -L https://github.com/cheminfo/roc-printers-config/archive/master.tar.gz | tar xz
$ mv roc-printers-config-master printers
docker-compose pull
docker-compose up -d --build
Please take care than in some case docker-compose is installed in /usr/bin/docker-compose
instaad of
/usr/local/bin/docker-compose
$ ln -s $(realpath docker-eln-app.service) /etc/systemd/system/docker-eln-app.service
$ systemctl daemon-reload
$ systemctl enable docker-eln-app.service # start after system boot
systemctl start docker-eln-app.service
systemctl stop docker-eln-app.service