diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3233d8b975..8965fcddba 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -17,8 +17,8 @@ Changelog .. Release notes for existing releases are MUTABLE! If there is something that was missed or can be improved, feel free to change it! -[unreleased] ------------- +[3.0.0] - 2020-03-23 +-------------------- Added ~~~~~ @@ -26,6 +26,11 @@ Added * CI for covering unit and functional tests against Python 3.8 environment. Everything works, so we have proved Python 3.8 support +* Add CI job for testing installation of Rally at Centos 8. + +* Updating a *latest* tag of `docker image + `_ on every merged commit. + Changed ~~~~~~~ diff --git a/DOCKER_README.md b/DOCKER_README.md index 584ffd124b..dd437c7c38 100644 --- a/DOCKER_README.md +++ b/DOCKER_README.md @@ -17,7 +17,7 @@ additional plugins: # for rally user is used. # # Tags of the image are the same as releases of xRally/Rally - FROM xrally/xrally:2.1.0 + FROM xrally/xrally:3.0.0 # "rally" user (which is selected by-default) is owner of "/rally" directory, # so there is no need to call chown or switch the user @@ -26,7 +26,8 @@ additional plugins: # to install package system-wide, we need to temporary switch to root user USER root - RUN pip install . + # disabling cache since we do not expect to install other packages + RUN pip3 install . --no-cache-dir # switch back to rally user for avoid permission conflicts USER rally @@ -39,8 +40,8 @@ details) First of all, you need to pull the container. We suggest to use the last tagged version: - # pull the 2.1.0 image (the latest release at the point of writing the note) - $ docker pull xrally/xrally:2.1.0 + # pull the 3.0.0 image (the latest release at the point of writing the note) + $ docker pull xrally/xrally:3.0.0 **WARNING: never attach folders and volumes to `/rally` inside the container. It can break everything.** @@ -56,7 +57,7 @@ docker volumes or mount the directory. * use docker volumes. It is the easiest way. You just need to do something like: $ docker volume create --name rally_volume - $ docker run -v rally_volume:/home/rally/.rally xrally/xrally:2.1.0 env create --name "foo" + $ docker run -v rally_volume:/home/rally/.rally xrally/xrally:3.0.0 env create --name "foo" * mount outer directory inside the container diff --git a/Dockerfile b/Dockerfile index 3119dc8eca..f45677e1d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM ubuntu:18.04 RUN sed -i s/^deb-src.*// /etc/apt/sources.list RUN apt-get update && apt-get install --yes sudo python3-dev python3-pip vim git-core && \ + apt clean && \ pip3 install --upgrade pip && \ useradd -u 65500 -m rally && \ usermod -aG sudo rally && \ @@ -12,14 +13,11 @@ RUN apt-get update && apt-get install --yes sudo python3-dev python3-pip vim git COPY ./ /rally/source WORKDIR /rally/source -RUN pip3 install . --constraint upper-constraints.txt && \ - pip3 install pymysql && \ - pip3 install psycopg2-binary && \ +RUN pip3 install . --constraint upper-constraints.txt --no-cache-dir && \ + pip3 install pymysql psycopg2-binary --no-cache-dir && \ mkdir -p /etc/rally && \ echo "[database]" > /etc/rally/rally.conf && \ echo "connection=sqlite:////home/rally/.rally/rally.db" >> /etc/rally/rally.conf -# Cleanup pip -RUN rm -rf /root/.cache/ COPY ./etc/motd_for_docker /etc/motd RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' >> /etc/bash.bashrc