Skip to main content

Deploy on Ubuntu OS

Provided by @Tset Noitamotuahe. The article might be outdated. Do not hesitate to contribute and send us a pull request with updates. We appreciate your help!

Follow below steps if you like to have ReportPortal running on Ubuntu Zesty (17.04) with the latest Docker-CE version 17.05 and Docker-Compose 1.14

  1. Enable apt transport over HTTPS
   sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
  1. Get apt-key for Docker repo
   curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  1. Add Docker's repo to sources.list
   sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty edge"

ToDo: 3. check if there is a stable version of Docker-CE for Zesty

sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
  1. Install Docker-CE
   sudo apt update
sudo apt install docker-ce

PROXY SETTINGS for Docker (you'll probably need this @work)

   mkdir -p /etc/systemd/system/docker.service.d
sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf

http-proxy.conf content

   [Service]
Environment="HTTP_PROXY=http://proxyhost:port/" "NO_PROXY=localhost,127.0.0.1"
# ALTERNATIV - if you are behind HTTPS proxy instead of just HTTP:
# https-proxy.conf
# Environment="HTTPS_PROXY=http://proxyhost:port/"
  1. Restart Docker
   sudo systemctl daemon-reload
sudo systemctl restart docker
# TEST: systemctl show --property=Environment docker
# >>> Environment=HTTP_PROXY=http://proxyhost:port/
  1. Check that Docker is installed correctly
   sudo docker run hello-world
# hello-world images will be download and run
# your will see output e.g. "Hello from Docker! ... "
  1. DOCKER-COMPOSE installation from PIP v3.x (Python PIP 2.7 is deprecated 01/01/2020)
   sudo apt install python3-pip
sudo pip3 install docker-compose

Also you can use the official installation guide

  1. REPORTPORTAL INSTALLATION
   mkdir reportportal
cd reportportal
# get the docker-compose file
wget https://raw.githubusercontent.com/reportportal/reportportal/master/docker-compose.yml
docker-compose up

This will take some time cause several images will be downloaded ... go grab a coffee :) After download is completed and containers started open another terminal and run docker ps to check that all containers from previous step are up and running.

  1. Check that ReportPortal is running In the VM opten browser to 0.0.0.0:8080 --> ReportPortal login page will open.
note

If you are behind a proxy you need to add 0.0.0.0 to the NO_PROXY (no_proxy) ENV.
After setting the port forwarding like explained in video PART 2 (link below) open browser on your host machine to localhost:8080 or 127.0.0.1:8080 --> ReportPortal loginpage will open

OPTIONAL

If you don't like to write 'sudo' before each docker-command do this but be aware of possible security issue with that!

   sudo groupadd docker
sudo usermod -aG docker $USER

>>> RESTART VM!

Helpful links (video tutorial)

Part 1

Part 2