File: Dockerfile

package info (click to toggle)
rally-openstack 3.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,928 kB
  • sloc: python: 53,131; sh: 262; makefile: 38
file content (18 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM xrally/xrally:4.1.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
COPY . /rally/xrally_openstack
WORKDIR /rally/xrally_openstack

# to install package system-wide, we need to temporary switch to root user
USER root
# ensure that we have latest ca-certs
RUN apt update && apt install --reinstall ca-certificates --yes
# ensure that we have all system dependencies installed
RUN pip3 install --no-cache-dir -U bindep && DEBIAN_FRONTEND=noninteractive apt install --yes $(bindep -b | tr '\n' ' ') && apt clean
# disabling cache since we do not expect to install other packages
RUN pip3 install . --no-cache-dir --constraint ./upper-constraints.txt

# switch back to rally user for avoid permission conflicts
USER rally