Open kulla opened 6 years ago
I just see, that allure is only available on the LTS versions of Ubuntu. Is this intentional?
The same with Debian Stretch.
They don't support unstable ubuntu versions, but you can workaround this if you don't care, just change line in repo lists:
sudo vim /etc/apt/sources.list.d/qameta-ubuntu-allure-artful.list
instead of:
deb http://ppa.launchpad.net/qameta/allure/ubuntu artful main
paste:
deb http://ppa.launchpad.net/qameta/allure/ubuntu xenial main
Eventually I installed it manually by command (its docker)
RUN apt-get update && apt-get install -y default-jre
RUN 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
Unable to resolve this issue. Tried workaround suggested: the file is empty and second command did not run on my terminal. Please help.
Eventually I installed it manually by command (its docker)
RUN apt-get update && apt-get install -y default-jre
RUN 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
wow, perfect! Thank you! working so good :)
I am trying to do the same thing for the newer version but it is not so easy ;)
The following command installs Allure but now I am struggling with adding allure to PATH.
RUN curl -o allure-commandline-2.12.0.tgz -Ls http://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.12.0/allure-commandline-2.12.0.tgz && \ tar -zxvf allure-commandline-2.12.0.tgz -C /opt/ && ln -s /opt/allure-commandline-2.12.0/bin/allure /usr/bin/allure
I made something like that:
RUN curl -o allure-commandline-2.12.0.tgz -Ls http://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.12.0/allure-commandline-2.12.0.tgz && \ tar -zxvf allure-commandline-2.12.0.tgz -C /opt/ && ln -s /opt/allure-commandline-2.12.0/bin/allure /usr/bin/allure
ENV PATH="$PATH:/opt/allure-2.12.0/bin"
RUN allure --version
Works perfectly :)
The following worked for me on Debian 10
RUN apt update && \
mkdir -p /usr/share/man/man1 && \
apt install -y default-jre && \
dpkg --configure -a
RUN curl -o allure-2.7.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.7.0/allure-2.7.0.tgz && \
tar -zxvf allure-2.7.0.tgz -C /opt/ && \
ln -s /opt/allure-2.7.0/bin/allure /usr/bin/allure && \
allure --version
The following worked for me on Debian 10
RUN apt update && \ mkdir -p /usr/share/man/man1 && \ apt install -y default-jre && \ dpkg --configure -a RUN curl -o allure-2.7.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.7.0/allure-2.7.0.tgz && \ tar -zxvf allure-2.7.0.tgz -C /opt/ && \ ln -s /opt/allure-2.7.0/bin/allure /usr/bin/allure && \ allure --version
I get this error message
tar: Error opening archive: Unrecognized archive format on debian buster
Eventually I installed it manually by command (its docker)
RUN apt-get update && apt-get install -y default-jre
RUN 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
wow, perfect! Thank you! working so good :)
I am trying to do the same thing for the newer version but it is not so easy ;)
The following command installs Allure but now I am struggling with adding allure to PATH.
RUN curl -o allure-commandline-2.12.0.tgz -Ls http://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.12.0/allure-commandline-2.12.0.tgz && \ tar -zxvf allure-commandline-2.12.0.tgz -C /opt/ && ln -s /opt/allure-commandline-2.12.0/bin/allure /usr/bin/allure
thanks a lot. besides,i have to change http://repo.maven.....
into https://repo.maven.....
for Allure
I made something like that:
RUN curl -o allure-commandline-2.12.0.tgz -Ls http://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.12.0/allure-commandline-2.12.0.tgz && \ tar -zxvf allure-commandline-2.12.0.tgz -C /opt/ && ln -s /opt/allure-commandline-2.12.0/bin/allure /usr/bin/allure
ENV PATH="$PATH:/opt/allure-2.12.0/bin"
RUN allure --version
Works perfectly :) thanks a lot! It helps me with Ubuntu 20.04 and Allure 2.19 but extracting to /opt works only with
sudo
and looks like\
in&& \ tar
is is redundant.
I tried to follow the installation process mentioned at https://docs.qameta.io/allure/#_installing_a_commandline with the commands
However, after
sudo apt-get update
I get the following error:Thus, I cannot install allure at Ubuntu 17.10.