diff --git a/Docker_files/ocsci_container/Containerfile.ci b/Docker_files/ocsci_container/Containerfile.ci index e77dfc37f82..79a57039a96 100644 --- a/Docker_files/ocsci_container/Containerfile.ci +++ b/Docker_files/ocsci_container/Containerfile.ci @@ -36,8 +36,13 @@ RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/s && mv kubectl /usr/local/bin/ RUN curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz | tar -C /usr/local/bin -zxvf - oc +COPY /Docker_files/ocsci_container/centos.repo /etc/yum.repos.d/ +COPY /Docker_files/ocsci_container/google-chrome.repo /etc/yum.repos.d/ -RUN dnf install -y --nodocs python38 git jq rsync make \ +# Install EPEL repos +# RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-8.noarch.rpm + +RUN dnf install -y --nodocs --setopt=install_weak_deps=False python38 git jq rsync make google-chrome \ && dnf clean all \ && rm -rf /var/cache/yum /var/cache/dnf /var/lib/dnf/repos /var/log/dnf.librepo.log /var/log/dnf.log /var/log/dnf.rpm.log /var/log/hawkey.log /var/cache/ldconfig \ && curl -sL https://github.com/mikefarah/yq/releases/download/v4.32.2/yq_linux_amd64.tar.gz | tar -C /usr/local/bin -zxvf - ./yq_linux_amd64 \ @@ -45,4 +50,7 @@ RUN dnf install -y --nodocs python38 git jq rsync make \ COPY --from=BUILDER "${OCS_CI_DIR}" "${OCS_CI_DIR}" +RUN groupadd -r tester && useradd -r -g tester tester +USER tester + CMD [ "run-ci", "--help" ] diff --git a/Docker_files/ocsci_container/centos.repo b/Docker_files/ocsci_container/centos.repo new file mode 100644 index 00000000000..79a669bd03a --- /dev/null +++ b/Docker_files/ocsci_container/centos.repo @@ -0,0 +1,13 @@ +[appstream] +name=CentOS-$releasever - AppStream +baseurl=http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/ +gpgcheck=1 +enabled=1 +gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Official + +[baseos] +name=CentOS-$releasever - BaseOS +baseurl=http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os +gpgcheck=1 +enabled=1 +gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Official diff --git a/Docker_files/ocsci_container/google-chrome.repo b/Docker_files/ocsci_container/google-chrome.repo new file mode 100644 index 00000000000..3103e30c71d --- /dev/null +++ b/Docker_files/ocsci_container/google-chrome.repo @@ -0,0 +1,6 @@ +[google-chrome] +name=google-chrome +baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch +enabled=1 +gpgcheck=1 +gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub