
story: 2007474 task: 39178 Depends-on: https://review.opendev.org/#/c/712862/ Change-Id: Ib383cd77da5ef7393ed2281861cccffd03986850 Signed-off-by: Yu Chengde <yu.chengde@99cloud.com>
30 lines
679 B
Docker
30 lines
679 B
Docker
# Expected build arguments:
|
|
# RELEASE: centos release
|
|
# REPO_OPTS: yum options to enable StarlingX repo
|
|
#
|
|
ARG RELEASE=7.5.1804
|
|
FROM centos:${RELEASE}
|
|
|
|
ARG REPO_OPTS
|
|
|
|
# The stx.repo file must be generated by the build tool first
|
|
COPY stx.repo /
|
|
|
|
RUN set -ex ;\
|
|
sed -i '/\[main\]/ atimeout=120' /etc/yum.conf ;\
|
|
mv /stx.repo /etc/yum.repos.d/ ;\
|
|
yum upgrade --disablerepo=* ${REPO_OPTS} -y ;\
|
|
yum install --disablerepo=* ${REPO_OPTS} -y \
|
|
qemu-img \
|
|
openssh-clients \
|
|
python3 \
|
|
python3-pip \
|
|
python3-wheel \
|
|
rh-python36-mod_wsgi \
|
|
;\
|
|
rm -rf \
|
|
/var/log/* \
|
|
/tmp/* \
|
|
/var/tmp/*
|
|
|