Added tempest user for tempest container

* Currently on using tempest container, everything is running as a
  root user under the container. All the test data when copied from
  container to host, have different permission. In order to consume
  those data we need to change permission. Adding tempest user to
  tempest container fix the issue.

* New user can pass --user 'tempest' with docker run to consume it.

* It does not affect the workflow of tempest container used in tripleo ci.
Change-Id: I719b7b13197bcb1ace607f10448d76ccb1d8cdf7
This commit is contained in:
Chandan Kumar 2018-07-19 17:25:37 +05:30
parent 4628a42fde
commit 452ea1f4a4
2 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% import "macros.j2" as macros with context %}
{{ macros.configure_user(name='tempest') }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set tempest_packages = ['openstack-tempest-all'] %}
@ -52,3 +54,5 @@ RUN chmod 755 /usr/local/bin/kolla_extend_start
{% block tempest_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER tempest

View File

@ -1112,6 +1112,10 @@ USERS = {
'storm-user': {
'uid': 42479,
'gid': 42479,
},
'tempest-user': {
'uid': 42480,
'gid': 42480,
}
}