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 \
  1. Get apt-key for Docker repo
   curl -fsSL | sudo apt-key add -
  1. Add Docker's repo to sources.list
   sudo add-apt-repository "deb [arch=amd64] zesty edge"

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

sudo add-apt-repository \
"deb [arch=amd64] \
$(lsb_release -cs) \
  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

Environment="HTTP_PROXY=http://proxyhost:port/" "NO_PROXY=localhost,"
# 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

   mkdir reportportal
cd reportportal
# get the docker-compose file
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 --> ReportPortal login page will open.

If you are behind a proxy you need to add 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 --> ReportPortal loginpage will open


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


Helpful links (video tutorial)

Part 1

Part 2