Dockerfile.ubuntu20.base #2

  • //
  • guest/
  • perforce_software/
  • sdp/
  • dev/
  • test/
  • docker/
  • Dockerfile.ubuntu20.base
  • View
  • Commits
  • Open Download .zip Download (982 B)
FROM ubuntu:20.04
MAINTAINER Robert Cowham "rcowham@perforce.com"

RUN apt-get -y update; \
    echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections; \
    echo  "postfix postfix/mailname string `hostname`" | debconf-set-selections; \
    echo "postfix postfix/main_mailer_type string 'No configuration'" | debconf-set-selections; \
    apt-get install -y postfix; \
    apt-get install -y apt-utils; \
    apt-get install -y mailutils; \
    apt-get install -y openssh-server; \
    apt-get install -y wget; \
    apt-get install -y python3.5; \
    apt-get install -y python3.5-dev; \
    apt-get install -y python3-pip; \
    apt-get install -y libssl-dev; \
    apt-get install -y sudo; \
    apt-get autoremove; \
    apt-get clean

RUN pip3 install p4python==2020.1.2056111 testinfra

# Some tools needed for testing.
RUN apt-get install -y curl

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

# Change User Description Committed
#4 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.
#3 28844 C. Thomas Tyler SDP Test Suite: Adjusted Docker image Python install to use
perforce-p4python3 package from package.perforce.com.

#review-28845
#2 27141 Robert Cowham Get Ubuntu 20.04 tests working
#1 27002 C. Thomas Tyler Updated ubuntu tests to add needed utilities, and change from
testing Ubuntu 16.04 to 20.04.  Changed 'centos' to imply cento7
rather than centos6 (which we shoud drop soon).
//guest/perforce_software/sdp/dev/test/docker/Dockerfile.ubuntu.base
#8 25264 Robert Cowham Fix Dockerfile error
#7 25263 Robert Cowham Fix Centos permissions
Fix ubuntu ssh
#6 25149 Robert Cowham Changes to docker files as part of prep for multi-container work
Centos6 & 7 now install python 3.6 from ISU Community as pre-built
Refer to p4python==17.2 to avoid need to compile
Changes to test infrastructure only
#5 20723 Robert Cowham P4Python 16.1 now requires SSL - so include in the base packages.
Note that the versions installed are probably not latest (still security holes) so fine for testing but not production!
#4 19046 Robert Cowham Avoid warnings.
Fix pip3 install of p4python.
#3 19045 Robert Cowham Add docker file for Centos7
Refactor to move common stuff to a shell script.
#2 19040 Robert Cowham Tweaks to Docker files.
Ubuntu uses packages for Python 3.4.
Centos doesn't yet.
#1 19017 Robert Cowham Ubuntu basic docker working
//guest/perforce_software/sdp/dev/test/docker/Dockerfile.base
#1 19013 Robert Cowham Initial docker file