Docker Installation

If you are installing with RPMs, SKIP THIS PAGE

VM Host

To install PWA, you will need a VM with any OS that supports Docker, such as CentOS7

Minimum resource requirements are..

  • 4-6 CPUs
  • 4G memory
  • 16G disk

Docker Engine

Read the official docker installation doc for more information. For CentOS 7, the Docker version from the CentOS Extras repo will work. For CentOS 6, the CentOS version might work, or you might need to try the version from the Docker repo.

For CentOS7 as root:

yum install -y docker

Before you start the docker engine, you might want to add any VM specific configuration. For example, your VM might be using /usr/local as a primary partition for your VM. If so, you should have something like following..

mkdir /etc/docker

/etc/docker/daemon.json

{
        "graph": "/usr/local/docker"
}

Enable & start the docker engine.

$ systemctl enable docker
$ systemctl start docker

You should install logrotate for docker container log

/etc/logrotate.d/docker-container

/var/lib/docker/containers/*/*.log {
  rotate 7
  daily
  compress
  size=1M
  missingok
  delaycompress
  copytruncate
}

Sample Configuration

This guide assumes you have already pulled down the sample PWA config and extracted it like this (you should have done this during the Install step; if not, do it now:

wget https://github.com/perfsonar/psconfig-web/raw/master/deploy/docker/psconfig-web.sample.tar.gz
sudo tar -C /etc -xvf psconfig-web.sample.tar.gz psconfig-web && sudo tar -C /usr/local/sbin --strip-components=1 -xvf psconfig-web.sample.tar.gz scripts

Other Topics

Reference

Meshconfig parameters http://docs.perfsonar.net/config_mesh.html