-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switching to a bare-based image will reduce the overall image size and reduces attack surface area. ``ddptool`` is not statically built, so it still depends on ``/lib`` and ``/lib64``, which is why we're adding ``base-files``. The image is expected to run a bash script as the entrypoint. We can no longer use ensure_image_contains_paths to check if files exist in the rock images, since they are now bare-based. Instead, we can use ensure_image_contains_paths_bare, which checks the image layers instead. Because of this, we need sufficient permissions to check the ``/var/lib/docker`` folder.
- Loading branch information
1 parent
62e0929
commit cddad67
Showing
3 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ description: | | |
license: Apache-2.0 | ||
version: 3.6.2 | ||
|
||
base: [email protected] | ||
base: bare | ||
build-base: [email protected] | ||
run-user: _daemon_ | ||
|
||
|
@@ -34,6 +34,13 @@ services: | |
entrypoint-service: install-cni | ||
|
||
parts: | ||
add-base-files: | ||
plugin: nil | ||
stage-packages: | ||
- base-files | ||
- bash | ||
- coreutils | ||
|
||
build-deps: | ||
plugin: nil | ||
build-snaps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters