Skip to content

Commit

Permalink
fix(make_release): create the build directory as non-root
Browse files Browse the repository at this point in the history
Unless we call `ensure_build_dir`, the build directory will be created
inside the Docker container as root and subsequent builds will fail. Fix
this by making sure exists before building with proper permissions.

(cherry picked from commit 63749ec)

Signed-off-by: Babis Chalios <bchalios@amazon.es>
  • Loading branch information
roypat authored and bchalios committed Sep 2, 2024
1 parent e58dbc0 commit d3b02e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/devtool
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ cmd_build() {
}

function cmd_make_release {
ensure_build_dir
run_devctr \
--user "$(id -u):$(id -g)" \
--workdir "$CTR_FC_ROOT_DIR" \
Expand Down

0 comments on commit d3b02e0

Please sign in to comment.