diff options
| -rw-r--r-- | docker/tempest/Dockerfile.j2 | 4 | ||||
| -rwxr-xr-x | kolla/common/config.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/docker/tempest/Dockerfile.j2 b/docker/tempest/Dockerfile.j2 index 18d753a31..8c01b70af 100644 --- a/docker/tempest/Dockerfile.j2 +++ b/docker/tempest/Dockerfile.j2 @@ -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 diff --git a/kolla/common/config.py b/kolla/common/config.py index 97fa1eddd..0a9258d0a 100755 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -1112,6 +1112,10 @@ USERS = { 'storm-user': { 'uid': 42479, 'gid': 42479, + }, + 'tempest-user': { + 'uid': 42480, + 'gid': 42480, } } |
