diff options
| author | Zuul <zuul@review.opendev.org> | 2020-02-28 13:49:11 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-02-28 13:49:11 +0000 |
| commit | 544894731ce5b4cceb6de9bf169520c581a6b41b (patch) | |
| tree | 876379cf714a5f50f21fda1289665a21d3de4b16 /docker/nova/nova-ssh | |
| parent | c2102c4223f3facabf73bc72c40d7b92a4a6a3e4 (diff) | |
| parent | 2bb38f156bbdd86aaa535af36af6eec69c4c443c (diff) | |
| download | kolla-544894731ce5b4cceb6de9bf169520c581a6b41b.tar.gz kolla-544894731ce5b4cceb6de9bf169520c581a6b41b.zip | |
Merge "CentOS 8: Allow SSH access to keystone_ssh and nova_ssh" into stable/train
Diffstat (limited to 'docker/nova/nova-ssh')
| -rw-r--r-- | docker/nova/nova-ssh/Dockerfile.j2 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/docker/nova/nova-ssh/Dockerfile.j2 b/docker/nova/nova-ssh/Dockerfile.j2 index a032cb6e7..3d0ebd04d 100644 --- a/docker/nova/nova-ssh/Dockerfile.j2 +++ b/docker/nova/nova-ssh/Dockerfile.j2 @@ -11,7 +11,15 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'openssh-server' ] %} -{% if base_package_type == 'deb' %} +{% if base_package_type == 'rpm' %} + +{% if distro_package_manager == 'dnf' %} +# NOTE(mgoddard): The centos:8 image contains a /run/nologin file, which +# prevents SSH access to it. +RUN rm -f /run/nologin +{% endif %} + +{% elif base_package_type == 'deb' %} RUN mkdir -p /var/run/sshd \ && chmod 0755 /var/run/sshd |
