aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/netconf-pnp-simulator/engine/Dockerfile
diff options
context:
space:
mode:
authorebo <eliezio.oliveira@est.tech>2020-03-01 23:41:37 +0000
committerMorgan Richomme <morgan.richomme@orange.com>2020-03-04 07:39:01 +0000
commit080e04538cbaff52dc46c0b3208b9f60f3479ba7 (patch)
tree741a3030db7a39887416eec377820d56514ceb3f /test/mocks/netconf-pnp-simulator/engine/Dockerfile
parent76c43bfd668d4f112a3845c631459643e405304a (diff)
Fixed the SSH configuration of user 'netconf'
The actual SSH configuration is stored in Sysrepo and not as ordinary ~netconf/.ssh files. Issue-ID: INT-1124 Change-Id: I7e16e09a20ac6f2d52c8958550603935b6790283 Signed-off-by: ebo <eliezio.oliveira@est.tech>
Diffstat (limited to 'test/mocks/netconf-pnp-simulator/engine/Dockerfile')
-rw-r--r--test/mocks/netconf-pnp-simulator/engine/Dockerfile8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/mocks/netconf-pnp-simulator/engine/Dockerfile b/test/mocks/netconf-pnp-simulator/engine/Dockerfile
index 5432b646a..426606953 100644
--- a/test/mocks/netconf-pnp-simulator/engine/Dockerfile
+++ b/test/mocks/netconf-pnp-simulator/engine/Dockerfile
@@ -142,7 +142,6 @@ RUN set -eux \
&& apk add \
libcurl \
libev \
- openssh-keygen \
pcre \
protobuf-c \
# v0.9.3 has somes bugs as warned in libnetconf2/CMakeLists.txt:237
@@ -162,13 +161,6 @@ RUN adduser --system --disabled-password --gecos 'Netconf User' netconf
ENV HOME=/home/netconf
VOLUME $HOME/.local/share/virtualenvs
-# generate ssh keys for netconf user
-RUN set -eux \
- && mkdir -p $HOME/.cache \
- && mkdir -p $HOME/.ssh \
- && ssh-keygen -t dsa -P '' -f $HOME/.ssh/id_dsa \
- && cat $HOME/.ssh/id_dsa.pub > $HOME/.ssh/authorized_keys
-
EXPOSE 830
COPY supervisord.conf /etc/supervisord.conf