Last active
January 8, 2022 02:23
-
-
Save hkoba/61ba5c5bcbc3393f6dd8963a70d54012 to your computer and use it in GitHub Desktop.
buildah unshare + tclsh
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
RUN buildah unshare tclsh << [list apply {{container} { | |
source ./utils.tcl | |
set mntDir [@RUN buildah mount $container] | |
set prefix sysroot | |
foreach dir [lgrep-match $prefix/* [git-submodule-list .]] { | |
set destDir $mntDir/[regsub ^$prefix $dir {}] | |
git-clone-submodule-as-workdir $dir $destDir | |
} | |
}} $container] | |
RUN buildah unshare tclsh << [list apply {{container} { | |
source ./utils.tcl | |
set mntDir [@RUN buildah mount $container] | |
set argv [list $mntDir] | |
source ./populate.tcl | |
}} $container] | |
Author
hkoba
commented
Jan 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment