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>
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>
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>
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>
To help analyze the container image size by layers, assume
each container image be comprised of:
Layer 1: clearlinux:latest
Layer 2: swupd update
Other layers: the container configurations
With this, we can continue to optimize layer size accordingly.
Signed-off-by: Qi Zheng <qi.zheng@intel.com>
This link should be more stable and always provide the latest
information about swupd command-line options.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
Use postgres instead of postgresql for the image name to align with the
Docker official library upstream.
Signed-off-by: George T Kramer <george.t.kramer@intel.com>