2018-06-08 22:00:53 +00:00
|
|
|
## mirror download container
|
|
|
|
|
|
|
|
FROM centos:7.4.1708
|
|
|
|
|
2018-06-20 19:11:07 +00:00
|
|
|
WORKDIR /localdisk
|
|
|
|
|
2018-06-08 22:00:53 +00:00
|
|
|
#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"
|
|
|
|
|
2018-06-20 19:11:07 +00:00
|
|
|
#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
|
2018-06-08 22:00:53 +00:00
|
|
|
|
2018-07-03 21:41:51 +00:00
|
|
|
RUN yum install -y epel-release sudo vim-enhanced net-tools git \
|
2018-06-20 19:11:07 +00:00
|
|
|
/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
|
2018-06-08 22:00:53 +00:00
|
|
|
|
|
|
|
COPY StarlingX.repo /etc/yum.repos.d
|
2018-06-21 22:32:58 +00:00
|
|
|
COPY StarlingX_3rd.repo /etc/yum.repos.d
|
2018-06-08 22:00:53 +00:00
|
|
|
COPY rpm-gpg-keys/* /etc/pki/rpm-gpg/
|
|
|
|
|
|
|
|
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
|
|
|
|
|
2018-06-20 19:11:07 +00:00
|
|
|
ENTRYPOINT ["/bin/bash"]
|