ALM-agent includes the following prerequisites.
Supported Operating System
Instances must run on a supported version of Linux.
If your server configuration design requires services to access the public Internet (e.g. GitHub, DockerHub, etc..), verify that your instances have outbound Internet access first.
Instances should have Docker installed.
Instances should have Git installed.
There are two ways to installing ALM Agent:
Using a precompiled binary
Installing from source
ALM-agent is distributed as a binary package. To install ALM-agent, you can download it from this link.
ALM-agent is packaged as a tgz archive. After downloading ALM-agent, untgz the package. ALM-agent runs as a single binary named
$ mkdir -p /opt/mobingi/alm-agent /opt/mobingi/etc$ wget https://download.labs.mobingi.com/alm-agent/develop/current/alm-agent.tgz$ tar xvzf alm-agent.tgz -C /opt/mobingi/alm-agent$ ln -sf /opt/mobingi/alm-agent/v* /opt/mobingi/alm-agent/current
We prepare Vagrantfile to compile from source. You will need VirtualBox and Vagrant installed. You can compile in virtual machine.
$ git clone https://github.com/mobingi/alm-agent$ cd alm-agent$ vagrant up default$ vagranth ssh defaultvagrant $ cd /home/vagrant/src/github.com/mobingi/alm-agent/vagrant $ make build
After installing ALM-agent, verify the installation works and check that
alm-agent is available.
alm-agent you should see the help output similar to this:
$ alm-agentNAME:alm-agentUSAGE:alm-agent [global options] command [command options] [arguments...]VERSION:v0.3.1504270893COMMANDS:register initialize alm-agent and start containersensure start or update containersstop stop active containernoop run without container actions.help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:--autoupdate, -U auto update before run--disablereport, -N Do not send crash report to rollbar.--provider Provider, -P Provider set Provider (default: "aws")--verbose, -V show debug logs--help, -h show help--version, -v print the version