Setup "dataspectsSystem"

From FindAndLearn::Cookbook
C1898799575
Jump to: navigation, search



Design

See The Twelve-Factor App

CanBeInstalled From https://github.com/dataspects/dataspectsSystem.git

[email protected]:~$ git clone https://github.com/dataspects/dataspectsSystem.git

SetupMethod "Dockerized in VirtualBox VM"

HasQualityAssuredBy dataspectsNonLinuxTeam

Step 1: Install VirtualBox and Vagrant

Step 2: Build vagrantized/dockerized dataspectsSystem

On Linux/Windows/Mac
[email protected]:~/dataspectsSystem$ vagrant up

Edit hosts file

Add these lines to /etc/hosts:

127.0.0.1 wikidataspectssystem
127.0.0.1 wikidataspectssystem_clone

Visit dockerized dataspectsSystem

http://wikidataspectssystem:80

Visit vagrantized/dockerized dataspectsSystem

http://wikidataspectssystem:8080

CanBeInstalled Manually

Ubuntu

  • Have your Docker credentials ready to pull Docker images from https://hub.docker.com/u/dataspects
  • Create /usr/local/dataspects/docker-compose.yml
  • Clone your Go customization repository to /usr/local/dataspects/go
  • Clone your Ruby customization repository to /usr/local/dataspects/ruby
  • Clone your UI customization repository to /usr/local/dataspects/ui
    • public
    • views

CanBeDeveloped Yes

  • Elasticsearch results relevance (indexing + querying)
    • requestTypes: mainRequest, predicateRequest, entityTyoeRequest, actionRequest
  • Results display and interaction design (faceting, drilldown)
    • Helper: uncomment link(rel='stylesheet', href='/css/dataspects-meta.css') in dataspects-ui/views/layout.pug
  • DataspectsMediaWikiIndexer

MustBeMaintained Yes

Step 1: Check your Docker server's resources

  • apt update && apt upgrade
  • User "docker"
    • sudo privileges
  • RAM
  • Disk space
  • SSH
  • docker ps -a
    • /root/.ssh/authorized_keys
  • Certificates
    • Let's Encrypt Expirations

Step 2: Check your Docker server for docker-compose.yml files

[email protected]:~$ find / -iname docker-compose.yml

Step 3: Check for and perform Docker image upgrades

  1. Check currently run versions by [email protected]:~/your_dataspects_system_instance_folder$ grep image: docker-compose.yml
  2. Check registries for newer tags:
  3. Edit docker-compose.yml
  4. Run docker-compose stop && docker-compose up --detach

Step 4: Websites/Apps

  • Backups
    • Crontab
    • docker ps -a
    • Destinations