Dockerfile.rocky9.base #1

  • //
  • guest/
  • perforce_software/
  • sdp/
  • dev/
  • test/
  • docker/
  • Dockerfile.rocky9.base
  • View
  • Commits
  • Open Download .zip Download (753 B)
FROM rockylinux:9.0
MAINTAINER Robert Cowham "rcowham@perforce.com"

RUN dnf update -y; \
    dnf install -y bc; \
    dnf install -y cronie; \
    dnf install -y curl; \
    dnf install -y diffutils; \
    dnf install -y file; \
    dnf install -y findutils; \
    dnf install -y perl; \
    dnf install -y procps-ng; \
    dnf install -y rsync; \
    dnf install -y sudo; \
    dnf install -y tar; \
    dnf install -y which; \
    dnf install -y wget

RUN dnf install -y openssh-server openssh-clients passwd; \
    dnf clean all; \
    ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''; \
    ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''

# Some tools needed for testing or useful for interactive test inspection.
RUN dnf install -y vim

# Change User Description Committed
#5 31035 Robert Cowham Fix podman iles for systemd with rocky9
#4 30879 Robert Cowham Update tests to use systemctl (remove hack) and fix some env problems.
#3 30864 C. Thomas Tyler Reverting to older mechanisn by re-adding Dockerfile.rocky9.base and
Dockerfile.rocky9.sdp files, but keeping the Dockerfile.rocky9 file
in place as the path forward. The intent is to see if the old
mechanism still works.

Modified run_docker_tests.sh so it'll use the old 2-image mechanism
if the *{os}.base and *.{os}.sdp files are found. Otherwise, if
the {os} file is found, it'll use that.  So both old and new styles
are supported until fully deprecate one for the other.
#2 30845 Robert Cowham Base the podman/docker image on rocky9-ubi-init to get systemd
This supports systemd within the container if run under podman instead of docker
Remove centos7 docker files
#1 30356 C. Thomas Tyler Added Rocky 9 and Ubuntu 22 to test suite.

Dropped CentOS 6.

Changed default OS for tests from CentOS 7 to Rocky 9.

Adapted to using podman for the test suite.

Reduced minimum disk space requirement for testing
from 1G to 10M.

To be revisited:
* Disabled OOM killer defenese feature and systemd due to
compatibility issues with the test environment.
* Disabled systemd by moving systemctl aside

Enhanced build_docker_image.sh; added '-clean' option and added
support for more platforms.

Updated OS-specific packages as needed for all platforms, e.g.
adding 'file' and 'rsync' utils as needed in Docker definitions.

Added minimum performance recommendations for test containers in
config.

Updated env.sh utilities.

This change test on:
[X] centos7
[X] rocky8
[X] rocky9
[X] ubuntu20
[X] ubuntu22

#review-30357 @robert_cowham

TO DO:
* This builds using the official SDP test suite run manually on
Tom's laptop. Next step: Get it working on our shiny new Jenkins
Rocky 9 server machine.