Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
147 lines (92 sloc) 3.81 KB

Abstruse CI Prerequisites

If you pick to run Abstruse CI from Docker Image you have already everything needed. This document is for users installing from npm or running from source.

Table of contents

Prerequisites

  • Node.JS
  • sqlite3
  • Docker

Ubuntu 17.10

  1. Install Node.JS

There are many ways installing Node.JS on Ubuntu. We will use approach where you can later update, uninstall or use another version of Node.JS easily.

First, make sure you have build-essential and libssl-dev installed.

sudo apt-get install build-essential libssl-dev -y

After you ran previous command and it has done with its work successfully its time to install nvm.

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash

This will install nvm in your $HOME directory under ~/.nvm. When it is done, run the following.

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

This will load nvm in your current bash/zsh session. Now its finally time to install Node.JS.

nvm install node

When command is done you now need to have latest version of Node.JS running on your system. You can check if it was successful with following commands.

node -v
npm -v
  1. Install sqlite3

Installing sqlite3 database on Ubuntu is easy as.

sudo apt-get install sqlite3 -y

Check if installation was successful with running sqlite3 command.

  1. Install Docker CE

There are also many ways of installing Docker on Ubuntu, the most convenient way is to run.

curl -fsSL get.docker.com -o get-docker.sh
chmod +x get-docker.sh
sudo ./get-docker.sh

After script is done with its work add your user to the docker group. This will allow you running Docker containers with your user and not only root. janez stands for your username.

sudo usermod -aG docker janez

After this you need to open a new terminal where groups are populated again. There's no other way than opening new terminal/tab.

You can check if your user is in docker group with running.

id

If docker group is listed, you are on a good way. If not, check previous commands again. Finally, start the Docker instance with running.

sudo /etc/init.d/docker start

You now have successfully all prerequisites installed and running!

MacOS

This guide presumes you have brew command available. If not, quickly install it with.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

...it also presumes that you have CommandLineTools installed.

xcode-select --install
  1. Install Node.JS

There are other ways of installing Node.JS on MacOS, we will use more convenient one.

brew install node
  1. Install sqlite3

Also, for sqlite3, we will use similar approach and use brew again.

brew install sqlite3
  1. Install Docker

To install Docker on MacOS, download it from here and open Docker.dmg file. You will be guided through the installation and really there is not something that you can miss.

Windows

  1. Install Node.JS

Download Node.JS from https://nodejs.org/en/download/ and run installation. Installation will guide you through installation process.

  1. Install sqlite3

Download sqlite3 precompiled for Windows https://sqlite.org/2017/sqlite-tools-win32-x86-3210000.zip, unzip it and copy files under C:\Windows (or any other directory available in $PATH).

Try running sqlite3.exe command from CMD prompt to make sure installation was successful.

  1. Install Docker CE

Download Docker for Windows at https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe and run the file. Installation will guide you through the process and once installed you have everything ready for AbstruseCI!

You can’t perform that action at this time.