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>
With su-exec, make sure the SIGTERM upon docker stop
could be received by the running program thus causing
a clean stop/exit.
Signed-off-by: Qi Zheng <qi.zheng@intel.com>
Currently this isn't actively being worked on so having it being
tested just causes false positives due to timeouts building the
container. Look at adding it back once the build time can be reduced.
Squashing all RUN commands together to ensure they create a single
docker layer resulting in a smaller overall image size.
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
single docker layer. Adding a new RUN command to remove files
will result in the files not being visible in the container, but
users still carry the full weight of the "deleted" files.
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
clearlinux/cgit is based on clearlinux/httpd, so it's better
to build it based on clearlinux/httpd's clearlinux version,
to avoid the dependenc that both clearlinux/os-core and
clearlinux/httpd must be the same version. Also to reduce
the container size further.
Signed-off-by: Liu, Jianjun <jianjun.liu@intel.com>
The redis on docker hub disabled protected mode in default.
To make clear redis be compatible, disable the protected mode
in default as well.
Signed-off-by: Qi Zheng <qi.zheng@intel.com>
When removing the duplicated file and directory via rm -d,
if it's a non-empty directory, it will prompt the warning
message that the directory could not be removed becuase it
is not empty. This is as expectation, as there are other
files under the same diretory and we need to keep them.
Hide these warning message to avoid confusion.
Signed-off-by: Liu, Jianjun <jianjun.liu@intel.com>
Convert golang, node, openjdk, perl, php, python,
rabbitmq, ruby and tensorflow containers to be based
on the minimal os-core container, using a multistage
build technique to add additional Clear Linux content.
Signed-off-by: Liu, Jianjun <jianjun.liu@intel.com>
Convert elasticsearch, haproxy, iperf and flink container
to be based on the minimal os-core container, using a
multistage build technique to add additional Clear Linux
content.
Signed-off-by: Liu, Jianjun <jianjun.liu@intel.com>
For some Host OS configuration with redirect_dir on,
extra data are saved on the upper layer when the same
file exists on different layers. To minimize docker
image size, remove the overlapped files before copy,
when cgit, httpd, mariadb, memcached, nginx and
postgres.
Signed-off-by: Liu, Jianjun <jianjun.liu@intel.com>
For some Host OS configuration with redirect_dir on,
extra data are saved on the upper layer when the same
file exists on different layers. To minimize docker
image size, remove the overlapped files before copy.
Signed-off-by: Liu, Jianjun <jianjun.liu@intel.com>
Convert postgres container to be based on the minimal os-core
container, using a multistage build technique to add additional
Clear Linux content.
Signed-off-by: Liu, Jianjun <jianjun.liu@intel.com>
Convert mariadb container to be based on the minimal os-core
container, using a multistage build technique to add additional
Clear Linux content.
Signed-off-by: Rusty Lynch<rusty.lynch@intel.com>
Convert memcached container to be based on the minimal os-core
container, using a multistage build technique to add additional
Clear Linux content.
Signed-off-by: Rusty Lynch<rusty.lynch@intel.com>
Convert nginx container to be based on the minimal os-core
container, using a multistage build technique to add additional
Clear Linux content.
Signed-off-by: Rusty Lynch<rusty.lynch@intel.com>
Convert httpd and cgit containers to utilize the minimal os-core
container, using a multistage build technique to add additional
Clear Linux content.
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
Convert redis container to be based on the minimal os-core
container, using a multistage build technique to add additional
Clear Linux content.
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
Use a docker multistage build technique to create a container
that only has the os-core bundle, providing the minimal content
required for constructing any Clear Linux base container.
Any containers that use this as a common base and still require
additional Clear Linux content will also need to perform a
multistage build since the os-core container does not include
swupd.
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>