Probably this is similar to any other installation issues, but I tried many options and no luck…
I am trying to install Allure Report on Ubuntu 18.04 (Docker image):
sudo apt-get install allure
I see that application is already instaled:
allure is already the newest version (0.5.0.0-1).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
However, I cannot run it by typing: allure.
I tried:
whereis allure
but also – no luck.
Another command which I tried doesn't look really helpful:
selenium@ebb17170c6ad:/$ dpkg -L allure
/.
/usr
/usr/games
/usr/games/Allure
/usr/share
/usr/share/doc
/usr/share/doc/allure
/usr/share/doc/allure/CREDITS
/usr/share/doc/allure/changelog.Debian.gz
/usr/share/doc/allure/copyright
and another one…
selenium@ebb17170c6ad:/$ sudo find / -name allure
find: ‘/proc/1/map_files’: Permission denied
find: ‘/proc/1482/map_files’: Permission denied
/usr/share/doc/allure
Can you please give me a piece of advice on how to manage that?
The workaround is to download the file and install, below is a command for that, however I thought there is an easier way with the help of apt install 😉
curl -o allure-2.6.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.6.0/allure-2.6.0.tgz && tar -zxvf allure-2.6.0.tgz -C /opt/ && ln -s /opt/allure-2.6.0/bin/allure /usr/bin/allure && allure --version
Thanks in advance
Best Answer
Download and install the latest Allure version as .tgz archive.
You mentioned in the question that you are using an Ubuntu 18.04 Docker image, but there is also a dedicated Allure Docker Service image.
This docker container allows you to see up-to-date reports simply mounting your allure-results directory in the container. Every time new results appear (generated for your tests), Allure Docker Service will detect those changes and it will generate a new report automatically (optional: send results / generate reports through the API), which you will see by refreshing your web browser.