Setup "dataspectsSystem"

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



Design[edit | edit source]

See The Twelve-Factor App

CanBeInstalled From https://github.com/dataspects/dataspectsSystem.git[edit | edit source]

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

SetupMethod "Dockerized in VirtualBox VM"[edit | edit source]

HasQualityAssuredBy dataspectsNonLinuxTeam

Step 1: Install VirtualBox and Vagrant[edit | edit source]

Step 2: Build vagrantized/dockerized dataspectsSystem[edit | edit source]

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

Edit hosts file[edit | edit source]

Add these lines to /etc/hosts:

127.0.0.1 wikidataspectssystem
127.0.0.1 wikidataspectssystem_clone

Visit dockerized dataspectsSystem[edit | edit source]

http://wikidataspectssystem:80

Visit vagrantized/dockerized dataspectsSystem[edit | edit source]

http://wikidataspectssystem:8080

CanBeInstalled Manually[edit | edit source]

Ubuntu[edit | edit source]

  • 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[edit | edit source]

Develop dataspectsSystem

MustBeMaintained Yes[edit | edit source]

Step 1: Check your Docker server's resources[edit | edit source]

  • 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[edit | edit source]

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

Step 3: Check for and perform Docker image upgrades[edit | edit source]

  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[edit | edit source]

  • Backups
    • Crontab
    • docker ps -a
    • Destinations