tools/centos-mirror-tools/Dockerfile
Scott Little c6ebd2feaa Split and move repo data files to yum.repo.d subdirectory.
Place yum repo files into a dedicated subdirectory for ease
of management an copying.

Split repo files by server.  If a server is down, it won't
cause yum to ignore the remaining repos in the file.

Naming convention for 3rd party repos:
  StarlingX_3rd_<munged_server_DNS>.repo

Resulting repo files:
  yum.repos.d/StarlingX-Centos-7.2.repo
  yum.repos.d/StarlingX-Centos-7.3.repo
  yum.repos.d/StarlingX-Centos-7.4.repo
  yum.repos.d/StarlingX-Centos-7.5.repo
  yum.repos.d/StarlingX-EPEL-7.repo
  yum.repos.d/StarlingX_3rd_buildlogs-seed_centos_org.repo
  yum.repos.d/StarlingX_3rd_buildlogs_centos_org.repo
  yum.repos.d/StarlingX_3rd_download_docker_com.repo
  yum.repos.d/StarlingX_3rd_epel_blizoo_mk.repo
  yum.repos.d/StarlingX_3rd_ftp_iij_ad_jp.repo
  yum.repos.d/StarlingX_3rd_ftp_riken_jp.repo
  yum.repos.d/StarlingX_3rd_mirrors_isu_net_sa.repo
  yum.repos.d/StarlingX_3rd_www_rpmfind_net.repo

Story: 2003156
Task: 23291
Change-Id: I2a03076a258c1da791cfc4b8ae9699ab7ab634d9
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-07 16:48:16 -04:00

26 lines
826 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 git \
/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 yum.repos.d/* /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"]