tools/centos-mirror-tools/Dockerfile
Felipe de Jesus Ruiz Garcia 391f1e41bf Adding StarlingX_3rd.repo sourcelist for 3rd pkgs
For the mirror creation:
3rd packages in rpms_from_3rd_parties.lst file are downloaded
through urls with wget tool. Mostly times, some 3rd packages are missed
because the url download changes or the package is remove on the server.

Some servers that provide 3rd packages also works as Yum repository;
Taking advantage of this, Yumdownloader can handle the 3rd downloads
by adding these serves from rpms_from_3rd_parties.lst as Yum repos.

This have many advantages, for example:
if package A is download from server A is not available,
yumdownloader automatly can search the Package A the other servers.

In this way, the url is not required to download the 3rd package.
The file rpms_from_centos_3rd_parties.lst contains the name packages
that can be downloaded from Yum repos.

Change-Id: If1581b718e64b13ff6fd1484dd6af7b3889abb61
Signed-off-by: Felipe de Jesus Ruiz Garcia <felipe.de.jesus.ruiz.garcia@intel.com>
2018-06-27 21:07:36 -05:00

27 lines
863 B
Docker

## mirror download container
FROM centos:7.4.1708
WORKDIR /localdisk
#ENV http_proxy "http://your.actual_http_proxy.com:your_port"
#ENV https_proxy "https://your.actual_https_proxy.com:your_port"
#ENV ftp_proxy "http://your.actual_ftp_proxy.com:your_port"
#RUN echo "proxy=$http_proxy" >> /etc/yum.conf && \
# echo -e "export http_proxy=$http_proxy\nexport https_proxy=$https_proxy\n\
#export ftp_proxy=$ftp_proxy" >> /root/.bashrc
RUN yum install -y epel-release sudo vim-enhanced net-tools \
/usr/bin/yumdownloader rpm-build rpm-sign deltarpm wget bind \
bind-utils && rm /etc/yum.repos.d/CentOS-Sources.repo \
/etc/yum.repos.d/epel.repo
COPY StarlingX.repo /etc/yum.repos.d
COPY StarlingX_3rd.repo /etc/yum.repos.d
COPY rpm-gpg-keys/* /etc/pki/rpm-gpg/
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
ENTRYPOINT ["/bin/bash"]