mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-10-03 23:38:31 +00:00
no swupd state data removing in 1st build stage
During the 1st stage build of multi-stage build, when run swupd os-install, the swupd state data are saved to /swupd_state, which will not be copied to the target. So we do not need to remove swupd state data. Signed-off-by: Liu, Jianjun <jianjun.liu@intel.com>
This commit is contained in:
committed by
Liu, Jianjun
parent
3259d3bab3
commit
8710d447d3
@@ -15,8 +15,7 @@ RUN source /os-release && \
|
||||
mkdir /install_root \
|
||||
&& swupd os-install -V ${VERSION_ID} \
|
||||
--path /install_root --statedir /swupd-state \
|
||||
--bundles=cassandra,python2-basic,which,su-exec --no-boot-update \
|
||||
&& rm -rf /install_root/var/lib/swupd/*
|
||||
--bundles=cassandra,python2-basic,which,su-exec --no-boot-update
|
||||
|
||||
# For some Host OS configuration with redirect_dir on,
|
||||
# extra data are saved on the upper layer when the same
|
||||
|
||||
+1
-2
@@ -15,8 +15,7 @@ RUN source /os-release && \
|
||||
mkdir /install_root \
|
||||
&& swupd os-install -V ${VERSION_ID} \
|
||||
--path /install_root --statedir /swupd-state \
|
||||
--bundles=sudo,curl,scm-server,httpd --no-boot-update \
|
||||
&& rm -rf /install_root/var/lib/swupd/*
|
||||
--bundles=sudo,curl,scm-server,httpd --no-boot-update
|
||||
|
||||
# For some Host OS configuration with redirect_dir on,
|
||||
# extra data are saved on the upper layer when the same
|
||||
|
||||
+1
-2
@@ -15,8 +15,7 @@ RUN source /os-release && \
|
||||
mkdir /install_root \
|
||||
&& swupd os-install -V ${VERSION_ID} \
|
||||
--path /install_root --statedir /swupd-state \
|
||||
--bundles=httpd --no-boot-update \
|
||||
&& rm -rf /install_root/var/lib/swupd/*
|
||||
--bundles=httpd --no-boot-update
|
||||
|
||||
# For some Host OS configuration with redirect_dir on,
|
||||
# extra data are saved on the upper layer when the same
|
||||
|
||||
+1
-2
@@ -17,8 +17,7 @@ RUN source /os-release && \
|
||||
mkdir /install_root \
|
||||
&& swupd os-install -V ${VERSION_ID} \
|
||||
--path /install_root --statedir /swupd-state \
|
||||
--bundles=mariadb,su-exec --no-boot-update \
|
||||
&& rm -rf /install_root/var/lib/swupd/*
|
||||
--bundles=mariadb,su-exec --no-boot-update
|
||||
|
||||
# For some Host OS configuration with redirect_dir on,
|
||||
# extra data are saved on the upper layer when the same
|
||||
|
||||
@@ -15,8 +15,7 @@ RUN source /os-release && \
|
||||
mkdir /install_root \
|
||||
&& swupd os-install -V ${VERSION_ID} \
|
||||
--path /install_root --statedir /swupd-state \
|
||||
--bundles=memcached,su-exec --no-boot-update \
|
||||
&& rm -rf /install_root/var/lib/swupd/*
|
||||
--bundles=memcached,su-exec --no-boot-update
|
||||
|
||||
# For some Host OS configuration with redirect_dir on,
|
||||
# extra data are saved on the upper layer when the same
|
||||
|
||||
+1
-2
@@ -15,8 +15,7 @@ RUN source /os-release && \
|
||||
mkdir /install_root \
|
||||
&& swupd os-install -V ${VERSION_ID} \
|
||||
--path /install_root --statedir /swupd-state \
|
||||
--bundles=nginx --no-scripts \
|
||||
&& rm -rf /install_root/var/lib/swupd/*
|
||||
--bundles=nginx --no-scripts
|
||||
|
||||
# For some Host OS configuration with redirect_dir on,
|
||||
# extra data are saved on the upper layer when the same
|
||||
|
||||
+1
-2
@@ -11,8 +11,7 @@ RUN source /usr/lib/os-release \
|
||||
&& mkdir /install_root \
|
||||
&& swupd os-install -V ${VERSION_ID} \
|
||||
--path /install_root --statedir /swupd-state \
|
||||
--bundles=os-core --no-boot-update \
|
||||
&& rm -rf /install_root/var/lib/swupd/*
|
||||
--bundles=os-core --no-boot-update
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /install_root /
|
||||
|
||||
+1
-2
@@ -15,8 +15,7 @@ RUN source /os-release && \
|
||||
mkdir /install_root \
|
||||
&& swupd os-install -V ${VERSION_ID} \
|
||||
--path /install_root --statedir /swupd-state \
|
||||
--bundles=redis-native,findutils,su-exec --no-boot-update \
|
||||
&& rm -rf /install_root/var/lib/swupd/*
|
||||
--bundles=redis-native,findutils,su-exec --no-boot-update
|
||||
|
||||
# For some Host OS configuration with redirect_dir on,
|
||||
# extra data are saved on the upper layer when the same
|
||||
|
||||
Reference in New Issue
Block a user