-
Notifications
You must be signed in to change notification settings - Fork 1
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. The whereabouts image is supposed to install the binaries on the host it's running on. For this, it runs a bash script, which is why we still need a few stage packages. Note that the helm chart uses pgrep in a readiness / liveness probe. 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. Adds an extra sanity check during the integration tests, making sure that there is no error reported in Pebble while starting the service.
- Loading branch information
1 parent
2fe3070
commit fa34a05
Showing
6 changed files
with
36 additions
and
6 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ description: | | |
license: Apache-2.0 | ||
version: 0.5.4 | ||
|
||
base: [email protected] | ||
base: bare | ||
build-base: [email protected] | ||
|
||
platforms: | ||
|
@@ -33,6 +33,12 @@ parts: | |
source-type: git | ||
source-tag: v${CRAFT_PROJECT_VERSION} | ||
source-depth: 1 | ||
stage-packages: | ||
- bash | ||
- coreutils | ||
- sed | ||
# Needed for pgrep, which is used as a liveness / readiness probe. | ||
- procps | ||
build-snaps: | ||
- go/1.16/stable | ||
build-environment: | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ description: | | |
license: Apache-2.0 | ||
version: 0.6.1 | ||
|
||
base: [email protected] | ||
base: bare | ||
build-base: [email protected] | ||
|
||
platforms: | ||
|
@@ -33,6 +33,12 @@ parts: | |
source-type: git | ||
source-tag: v${CRAFT_PROJECT_VERSION} | ||
source-depth: 1 | ||
stage-packages: | ||
- bash | ||
- coreutils | ||
- sed | ||
# Needed for pgrep, which is used as a liveness / readiness probe. | ||
- procps | ||
build-snaps: | ||
- go/1.19/stable | ||
build-environment: | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ description: | | |
license: Apache-2.0 | ||
version: 0.6.3 | ||
|
||
base: [email protected] | ||
base: bare | ||
build-base: [email protected] | ||
|
||
platforms: | ||
|
@@ -33,6 +33,12 @@ parts: | |
source-type: git | ||
source-tag: v${CRAFT_PROJECT_VERSION} | ||
source-depth: 1 | ||
stage-packages: | ||
- bash | ||
- coreutils | ||
- sed | ||
# Needed for pgrep, which is used as a liveness / readiness probe. | ||
- procps | ||
build-snaps: | ||
- go/1.20/stable | ||
build-environment: | ||
|
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
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