[FIX]Oraclelinux 7 : replace fedora EPEL with OL EPEL

This commit is contained in:
Fabien BOURGEOIS 2024-09-12 10:30:26 +02:00
parent a2b5eb16e7
commit 372be99c23
3 changed files with 8 additions and 8 deletions

View File

@ -4,8 +4,8 @@ LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
ENV SOURCE="/var/lib/docker/volumes" DEST="/var/backups/" ENV SOURCE="/var/lib/docker/volumes" DEST="/var/backups/"
RUN yum -y install gettext rsync ssh cronie && \ RUN yum -y install gettext rsync ssh cronie && \
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \ yum -y install oracle-epel-release-el7 && \
yum --enablerepo=epel -y install sshpass && \ yum -y install sshpass && \
yum clean all yum clean all
# Avoid overlayfs bug with tail # Avoid overlayfs bug with tail

View File

@ -9,8 +9,8 @@ LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
# Fonts # Fonts
COPY pkgs/odoo8c7/*.rpm ./ COPY pkgs/odoo8c7/*.rpm ./
RUN yum -y groupinstall "Development Tools" && yum -y install zlib-devel bzip2-devel openssl openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libpcap-devel xz-devel git mercurial libpng libjpeg libXext curl xorg-x11-font-utils fontconfig python-virtualenv libevent-devel libxml2-devel libxslt-devel openldap-devel openjpeg-devel freetype-devel libjpeg-turbo-devel libtiff-devel kernel-devel && \ RUN yum -y groupinstall "Development Tools" && yum -y install zlib-devel bzip2-devel openssl openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libpcap-devel xz-devel git mercurial libpng libjpeg libXext curl xorg-x11-font-utils fontconfig python-virtualenv libevent-devel libxml2-devel libxslt-devel openldap-devel openjpeg-devel freetype-devel libjpeg-turbo-devel libtiff-devel kernel-devel && \
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \ yum -y install oracle-epel-release-el7 && \
yum --enablerepo=epel -y install nodejs npm python-pip && \ yum -y install nodejs npm python2-pip && \
yum -y install https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm && \ yum -y install https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm && \
npm install -g less@2 less-plugin-clean-css@1.5.1 && \ npm install -g less@2 less-plugin-clean-css@1.5.1 && \
yum install -y ./*.rpm && \ yum install -y ./*.rpm && \

View File

@ -1,11 +1,11 @@
FROM centos:7 FROM oraclelinux:7
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>" LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
# EPEL for PIP # EPEL for PIP
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \ RUN yum -y install oracle-epel-release-el7 && \
yum --enablerepo=epel -y install python-pip && \ yum -y install python2-pip && \
yum clean all && \ yum clean all && \
pip install --no-cache-dir odoorpc==0.8.0 pip install --no-cache-dir --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org odoorpc==0.8.0
# Useradd # Useradd
RUN useradd odoo -m -s /bin/bash RUN useradd odoo -m -s /bin/bash