diff options
author | Mark Beierl <mbeierl@vmware.com> | 2019-12-20 17:02:00 -0500 |
---|---|---|
committer | Mark Beierl <mbeierl@vmware.com> | 2019-12-23 15:51:38 +0000 |
commit | 9082fd1ca4e896ec5625eaa8223fd068b0134883 (patch) | |
tree | 742131a8909bf7e98411f31762d4f8dbbf92d48c /docker/storperf-workloadagent/Dockerfile | |
parent | 8d97778672f843cd79ac9862b5fe8c13ef31091f (diff) |
Add Agent Port
Allows the port number to be added to the IP addresses used
for initiating worklaods. This is done specifically for
containerized workload where the exposed port might need to be
specified per workload agent to allow multiple agents to run
on the same host.
STORPERF-270
Change-Id: If011e686d89e5667509ca57e25f05fba1ed52ed1
Signed-off-by: Mark Beierl <mbeierl@vmware.com>
(cherry picked from commit 24aeda6b73bfa9c31dee8454fdc49bbdb5e1c81b)
Diffstat (limited to 'docker/storperf-workloadagent/Dockerfile')
-rw-r--r-- | docker/storperf-workloadagent/Dockerfile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docker/storperf-workloadagent/Dockerfile b/docker/storperf-workloadagent/Dockerfile new file mode 100644 index 0000000..e6662a9 --- /dev/null +++ b/docker/storperf-workloadagent/Dockerfile @@ -0,0 +1,37 @@ +############################################################################## +# Copyright (c) 2019 VMware and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +# Docker container for workload +# +# Purpose: docker image for Storperf to control as a synthetic workload +# +# Maintained by Mark Beierl +# Build: +# $ docker build -t opnfv/storperf-workloadagent:tag . +# + +ARG ARCH=x86_64 +ARG ALPINE_VERSION=v3.10 +FROM multiarch/alpine:$ARCH-$ALPINE_VERSION + +RUN apk add --no-cache --upgrade \ + logrotate \ + openssh-client \ + openssh-server \ + sudo + +RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/g' /etc/ssh/sshd_config +RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config + +RUN echo "root ALL=(ALL) ALL" >> /etc/sudoers +RUN ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa +RUN ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa + +RUN echo root:password | chpasswd + +CMD /usr/sbin/sshd -D -e
\ No newline at end of file |