feat: Allow running container as non-root UID/GID for ownership issues (docker) (#433)

Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua>
Co-authored-by: MaxymVlasov <MaxymVlasov@users.noreply.github.com>
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
This commit is contained in:
John Schutz 2022-09-07 07:19:52 -05:00 committed by GitHub
commit abc2570e42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 143 additions and 6 deletions

View file

@ -414,6 +414,9 @@ function create_tmp_file_tf {
mv "$tmp_file" "$tmp_file.tf"
tmp_file_tf="$tmp_file.tf"
# mktemp creates with no group/other read permissions
chmod a+r "$tmp_file_tf"
echo "$CONTENT_MAIN_TF" > "$tmp_file_tf"
}