Skip to content

Commit f5b52b8

Browse files
Update linuxkit version; Add Host filesystem to hook-docker (#271)
## Description <!--- Please describe what this PR is going to change --> `linuxkit` 1.6.0 is available for use. This has at least one useful feature related to ISO building that is needed. Also, make the linuxkit version configurable. Add Host filesystem mount to hook-docker. This is helpful for Action images that might need access to root Host filesystem locations. For example, when using https://github.com/jaypipes/ghw in an Action. ghw needs access to udev data that only exists in the Host filesystem. ## Why is this needed <!--- Link to issue you have raised --> Fixes: # ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## How are existing users impacted? What migration steps/scripts do we need? <!--- Fixes a bug, unblocks installation, removes a component of the stack etc --> <!--- Requires a DB migration script, etc. --> ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [ ] provided instructions on how to upgrade
2 parents 4840514 + 08d996c commit f5b52b8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ declare -g HOOK_LK_CONTAINERS_OCI_BASE="${HOOK_LK_CONTAINERS_OCI_BASE:-"quay.io/
4040
declare -g SKOPEO_IMAGE="${SKOPEO_IMAGE:-"quay.io/skopeo/stable:v1.17.0"}" # See https://quay.io/repository/skopeo/stable?tab=tags&tag=latest
4141

4242
# See https://github.com/linuxkit/linuxkit/releases
43-
declare -g -r LINUXKIT_VERSION_DEFAULT="1.5.3" # LinuxKit version to use by default; each flavor can set its own too
43+
declare -g -r LINUXKIT_VERSION_DEFAULT="${LINUXKIT_VERSION:-"1.6.0"}" # LinuxKit version to use by default; each flavor can set its own too
4444

4545
# Directory to use for storing downloaded artifacts: LinuxKit binary, shellcheck binary, etc.
4646
declare -g -r CACHE_DIR="${CACHE_DIR:-"cache"}"

linuxkit-templates/hook.template.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ services:
176176
- /var/run/docker:/var/run
177177
- /var/run/images:/var/lib/docker
178178
- /var/run/worker:/worker
179+
- /:/host_root
179180
runtime:
180181
mkdir:
181182
- /var/run/images

0 commit comments

Comments
 (0)