Created
April 27, 2020 19:20
-
-
Save jeniferh/9695fd440327495dbc3d365206a4986b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM docker.io/library/centos:8 | |
RUN curl -s -o /etc/yum.repos.d/pbench.repo https://gist.githubusercontent.com/jeniferh/6d44d33e0a77843caf72e78d1a802adf/raw/b39247272a101bf971ecb0f42a8d224778eb77d2/pbench-8.repo | |
RUN sed -i -e "s/enabled=0/enabled=1/" /etc/yum.repos.d/CentOS-PowerTools.repo | |
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm | |
RUN dnf install -y hostname iproute procps-ng iputils openssh-server openssh-clients rsync perf pbench-agent pbench-sysstat pbench-uperf pbench-fio pbench-linpack | |
RUN source /etc/profile.d/pbench-agent.sh | |
RUN sed -i -e "s/.*PermitRootLogin.*/PermitRootLogin yes ##/" /etc/ssh/sshd_config | |
RUN sed -i -e "s/.*Port .*/Port 2022 ##/" /etc/ssh/sshd_config | |
RUN ssh-keygen -A |
Hi @portante, with the new pbench-agent-all-centos-8
image, I no longer need to dnf install those packages, and ended up putting the sshd_config and ssh-keygen steps in the Openshift pod definition itself, that way I no longer have to maintain my own image/Dockerfile. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jeniferh, does this work for you?