b8b6e52783
The source for Tar Compressed files includes Git repositories to be handled inside the container. Ask Yum to install via our Dockerfile. Change-Id: Ide346ca2baaf532b26a977c009275d7fd0d78268 Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
27 lines
867 B
Docker
27 lines
867 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 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"]
|