Skip to content

Instantly share code, notes, and snippets.

@jeniferh
Created April 27, 2020 19:20
Show Gist options
  • Save jeniferh/9695fd440327495dbc3d365206a4986b to your computer and use it in GitHub Desktop.
Save jeniferh/9695fd440327495dbc3d365206a4986b to your computer and use it in GitHub Desktop.
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
@portante
Copy link

@jeniferh, does this work for you?

@jeniferh
Copy link
Author

jeniferh commented Jan 4, 2021

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