diff options
| author | fumingwei <[email protected]> | 2024-05-10 14:32:41 +0800 |
|---|---|---|
| committer | fumingwei <[email protected]> | 2024-05-10 14:32:41 +0800 |
| commit | d5ead1d01d74ab1f8d35c3d2c37dc6d609e6b36b (patch) | |
| tree | e8b50b35e227490a54e7c1e6593b093929945617 /tools | |
| parent | 6283d773cecebc4ed236d1ff1db9dc2fc0d4437f (diff) | |
bugfix:Fix yum repo epel files exist bug.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/build_container_images.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build_container_images.sh b/tools/build_container_images.sh index dffe2e84..283a628f 100644 --- a/tools/build_container_images.sh +++ b/tools/build_container_images.sh @@ -40,7 +40,7 @@ function build_image() ${CODE_TOOTS_DIR}/ansible-HAL-CONTAINER ${PROFILE_ID}-${component_name} ${CODE_PROJECT_DIR} /tmp/empty/container /tmp/yum-RockyLinux-8.conf ${OS_RELEASE_VER} ${container_name} #clean install fine in container - buildah run ${container_name} -- bash -c "yum clean all -y; yum -c /tmp/yum-RockyLinux-8.conf clean all -y" + buildah run ${container_name} -- bash -c "yum clean all -y; yum -c /tmp/yum-RockyLinux-8.conf clean all -y; rm -rf /var/cache/yum/x86_64/8" buildah run ${container_name} -- bash -c "cp /tmp/ks-script-* /; cp /tmp/hosts.bak /etc/hosts; rm -rf /tmp/*; mv /ks-script-* /tmp" ## |
